diff --git a/about/vercel.json b/about/vercel.json new file mode 100644 index 00000000000..152b4b0612f --- /dev/null +++ b/about/vercel.json @@ -0,0 +1,8 @@ +{ + "redirects": [ + { + "source": "/careers", + "destination": "https://boards.greenhouse.io/supabase" + } + ] +} \ No newline at end of file diff --git a/studio/README.md b/studio/README.md index df0df945274..75b21cd1395 100644 --- a/studio/README.md +++ b/studio/README.md @@ -84,7 +84,7 @@ When simulating clicks on these components, do the following: import userEvent from '@testing-library/user-event' userEvent.click('Hello world') -// for Popovers +// for Dropdowns import clickDropdown from 'tests/helpers' clickDropdown('Hello world') ``` diff --git a/studio/components/interfaces/Billing/EnterpriseRequest.tsx b/studio/components/interfaces/Billing/EnterpriseRequest.tsx index d5275ecf393..8fe599509d9 100644 --- a/studio/components/interfaces/Billing/EnterpriseRequest.tsx +++ b/studio/components/interfaces/Billing/EnterpriseRequest.tsx @@ -7,6 +7,7 @@ import { post } from 'lib/common/fetch' import { useStore } from 'hooks' import { API_URL } from 'lib/constants' import { UpdateSuccess } from '.' +import BackButton from 'components/ui/BackButton' interface Props { onSelectBack: () => void @@ -21,7 +22,9 @@ const EnterpriseRequest: FC = ({ onSelectBack }) => { const [isSuccessful, setIsSuccessful] = useState(false) const initialValues = { - name: `${profile?.first_name} ${profile?.last_name}`, + name: `${profile?.first_name ? profile?.first_name : ''} ${ + profile?.last_name ? profile.last_name : '' + }`, email: profile?.primary_email, company: '', message: '', @@ -81,43 +84,37 @@ const EnterpriseRequest: FC = ({ onSelectBack }) => { enterTo="transform opacity-100 translate-x-0" >
-
-
- -
-
-

Customised plans tailored for your business needs

-

- Let us know a few details and we’ll be in contact with you! -

-
-
- {({ isSubmitting }: { isSubmitting: boolean }) => ( -
-
- - - -
- - -
- )} -
+ onSelectBack()} /> +
+

Customised plans tailored for your business needs

+

+ Let us know a few details and our team will get back to you as soon as possible. +

+
+ {({ isSubmitting }: { isSubmitting: boolean }) => ( +
+
+ + + +
+ + +
+ )} +
) diff --git a/studio/components/interfaces/Billing/PaymentSummaryPanel/PaymentSummaryPanel.tsx b/studio/components/interfaces/Billing/PaymentSummaryPanel/PaymentSummaryPanel.tsx index dadc77db12a..03f47eddfd6 100644 --- a/studio/components/interfaces/Billing/PaymentSummaryPanel/PaymentSummaryPanel.tsx +++ b/studio/components/interfaces/Billing/PaymentSummaryPanel/PaymentSummaryPanel.tsx @@ -1,7 +1,14 @@ import { FC } from 'react' -import { Listbox, IconLoader, Button, IconPlus, IconAlertCircle } from '@supabase/ui' +import { + Listbox, + IconLoader, + Button, + IconPlus, + IconAlertCircle, + IconCreditCard, +} from '@supabase/ui' -import { useStore } from 'hooks' +import { useFlag, useStore } from 'hooks' import { STRIPE_PRODUCT_IDS } from 'lib/constants' import { SubscriptionPreview } from '../Billing.types' import { getProductPrice } from '../Billing.utils' @@ -48,6 +55,11 @@ const PaymentSummaryPanel: FC = ({ onConfirmPayment, isSubmitting, }) => { + /** + * Feature flags + */ + const nativeBilling = useFlag('nativeBilling') + const { ui } = useStore() const projectRegion = ui.selectedProject?.region @@ -66,14 +78,14 @@ const PaymentSummaryPanel: FC = ({ return (

Payment Summary

{/* Subscription details */}
-

Selected subscription

+

Selected subscription

{getPlanName(currentPlan)} @@ -93,46 +105,54 @@ const PaymentSummaryPanel: FC = ({

{/* Add on details */} - {projectRegion !== 'af-south-1' && ( -
-

Selected add-ons

- {currentComputeSize === undefined && selectedComputeSize === undefined && ( -

No add-ons selected

- )} - {currentComputeSize !== undefined && ( -
-

- {currentComputeSize.name} -

-

- ${(getProductPrice(currentComputeSize).unit_amount / 100).toFixed(2)} -

+ {nativeBilling && ( + <> + {projectRegion !== 'af-south-1' && ( +
+

Selected add-ons

+ {currentComputeSize === undefined && selectedComputeSize === undefined && ( +

No add-ons selected

+ )} + {currentComputeSize !== undefined && ( +
+

+ {currentComputeSize.name} +

+

+ ${(getProductPrice(currentComputeSize).unit_amount / 100).toFixed(2)} +

+
+ )} + {isChangingComputeSize && ( +
+

{selectedComputeSize.name}

+

+ ${(getProductPrice(selectedComputeSize).unit_amount / 100).toFixed(2)} +

+
+ )} + {isChangingComputeSize && ( +
+ } + title="Changing your compute size" + description="It will take up to 2 minutes for changes to take place, and your project will be unavailable during that time" + /> +
+ )}
)} - {isChangingComputeSize && ( -
-

{selectedComputeSize.name}

-

- ${(getProductPrice(selectedComputeSize).unit_amount / 100).toFixed(2)} -

-
- )} - {isChangingComputeSize && ( -
- } - title="Changing your compute size" - description="It will take up to 2 minutes for changes to take place, and your project will be unavailable during that time" - /> -
- )} -
+ )}
@@ -152,12 +172,12 @@ const PaymentSummaryPanel: FC = ({

Retrieving payment methods

) : paymentMethods.length === 0 ? ( -
-
- -

No saved payment methods

+
+
+ +

No saved payment methods

-
@@ -204,6 +224,8 @@ const PaymentSummaryPanel: FC = ({ loading={isSubmitting} disabled={isSubmitting || isLoadingPaymentMethods || !hasChangesToPlan} onClick={() => onConfirmPayment()} + block + size="medium" > Confirm payment diff --git a/studio/components/interfaces/Billing/PaymentSummaryPanel/PaymentTotal.tsx b/studio/components/interfaces/Billing/PaymentSummaryPanel/PaymentTotal.tsx index 07e55f10521..e3a252ddedb 100644 --- a/studio/components/interfaces/Billing/PaymentSummaryPanel/PaymentTotal.tsx +++ b/studio/components/interfaces/Billing/PaymentSummaryPanel/PaymentTotal.tsx @@ -71,7 +71,7 @@ const PaymentTotal: FC = ({ {amountDueImmediately < 0 ? (

A total of ${Math.abs(amountDueImmediately).toFixed(2)} will be returned on{' '} - + {billingDate.toLocaleDateString('en-US', { day: 'numeric', month: 'long', @@ -84,7 +84,7 @@ const PaymentTotal: FC = ({

This amount {!isSpendCapEnabled && !isBillingToday && '+ usage fees '}will be charged on{' '} - + {billingDate.toLocaleDateString('en-US', { day: 'numeric', month: 'long', diff --git a/studio/components/interfaces/Billing/PlanSelection/PlanSelection.tsx b/studio/components/interfaces/Billing/PlanSelection/PlanSelection.tsx index 51167104083..3495972be9f 100644 --- a/studio/components/interfaces/Billing/PlanSelection/PlanSelection.tsx +++ b/studio/components/interfaces/Billing/PlanSelection/PlanSelection.tsx @@ -25,10 +25,15 @@ const PlanSelection: FC = ({ visible, tiers, currentPlan, onSelectPlan })

Change your project's subscription

{/* FE will make a call to fetch all plans first at the page level */} - +
+ +
- + See detailed comparisons across plans diff --git a/studio/components/interfaces/Billing/PlanSelection/Plans/PlanCTAButton.tsx b/studio/components/interfaces/Billing/PlanSelection/Plans/PlanCTAButton.tsx index 31e3075039b..eba3cd14451 100644 --- a/studio/components/interfaces/Billing/PlanSelection/Plans/PlanCTAButton.tsx +++ b/studio/components/interfaces/Billing/PlanSelection/Plans/PlanCTAButton.tsx @@ -59,7 +59,13 @@ const PlanCTAButton: FC = ({ plan, currentPlan, onSelectPlan }) => { return (
-
diff --git a/studio/components/interfaces/Billing/PlanSelection/Plans/Plans.Constants.ts b/studio/components/interfaces/Billing/PlanSelection/Plans/Plans.Constants.ts new file mode 100644 index 00000000000..8437a7cb14c --- /dev/null +++ b/studio/components/interfaces/Billing/PlanSelection/Plans/Plans.Constants.ts @@ -0,0 +1,71 @@ +import { STRIPE_PRODUCT_IDS } from 'lib/constants' + +/** + * @mildtomato same plan metadata is also in /www website + * would be good if this constant was shared across apps + * + * https://github.com/supabase/supabase/blob/master/studio/components/interfaces/Billing/PlanSelection/Plans/Plans.Constants.ts + */ +export const PRICING_META = { + [STRIPE_PRODUCT_IDS.FREE]: { + name: 'Free', + href: '#', + priceMonthly: 0, + warning: 'Limit of 2 free projects', + description: 'Perfect for passion projects & simple websites.', + features: [ + 'Up to 500MB database & 1GB file storage', + 'Up to 2GB bandwidth', + 'Up to 50MB file uploads', + 'Social OAuth providers', + 'Up to 500K Edge Function invocations', + '1-day log retention', + 'Community support', + ], + additional: 'Free projects are paused after 1 week of inactivity.', + + cta: 'Get Started', + }, + [STRIPE_PRODUCT_IDS.PRO]: { + name: 'Pro', + href: '#', + from: true, + priceMonthly: 25, + warning: '+ additional use', + description: 'For production applications with the option to scale.', + features: [ + '8GB database & 100GB file storage', + '50GB bandwith', + '3GB file uploads', + 'Social OAuth providers', + '2M Edge Function invocations', + 'Daily backups', + '7-day log retention', + 'No project pausing', + 'Email support', + ], + scale: 'Additional fees apply for usage and storage beyond the limits above.', + shutdown: '', + preface: 'Everything below included in the base plan', + additional: 'Need more? Turn off your spend cap to Pay As You Grow ', + cta: 'Get Started', + }, + Enterprise: { + name: 'Enterprise', + href: '/contact/enterprise', + description: 'For large-scale applications managing serious workloads.', + features: [ + `Point in time recovery`, + `Designated Support manager & SLAs`, + `Enterprise OAuth providers`, + `SSO/ SAML`, + `SOC2`, + `Custom contracts & invoicing`, + `On-premise support`, + `24×7×365 premium enterprise support`, + ], + scale: '', + shutdown: '', + cta: 'Contact Us', + }, +} diff --git a/studio/components/interfaces/Billing/PlanSelection/Plans/Plans.tsx b/studio/components/interfaces/Billing/PlanSelection/Plans/Plans.tsx index 9864997d34c..ec9151ccf62 100644 --- a/studio/components/interfaces/Billing/PlanSelection/Plans/Plans.tsx +++ b/studio/components/interfaces/Billing/PlanSelection/Plans/Plans.tsx @@ -1,9 +1,9 @@ -import { FC } from 'react' -import { Badge } from '@supabase/ui' - +import { IconCheck } from '@supabase/ui' import { STRIPE_PRODUCT_IDS } from 'lib/constants' +import { FC } from 'react' import { StripeProduct } from '../..' import PlanCTAButton from './PlanCTAButton' +import { PRICING_META } from './Plans.Constants' interface Props { plans: any[] @@ -23,84 +23,127 @@ const AnimatedGradientBackground = () => ( const CurrentSubscriptionBanner = () => (

Current plan

) +/** + * JSX below for the mapped plans is also very similar to www/pages/pricing + * TO DO: move to use shared components for these + * + * https://github.com/supabase/supabase/blob/master/www/pages/pricing/index.tsx + */ + const Plans: FC = ({ plans, currentPlan, onSelectPlan }) => { return ( -
+ <> {plans.map((plan) => { const isCurrentPlan = plan.id === currentPlan?.prod_id || (plan.id === STRIPE_PRODUCT_IDS.PRO && currentPlan?.prod_id === STRIPE_PRODUCT_IDS.PRO) || (plan.id === STRIPE_PRODUCT_IDS.PRO && currentPlan?.prod_id === STRIPE_PRODUCT_IDS.PAYG) - const pointers = plan.metadata.features.split('\\n').map((x: string) => x.trim()) return ( -
- {/* [Joshen] Trying some animations here to make Pro pop, on the fence tbh */} - {plan.id === STRIPE_PRODUCT_IDS.PRO && } - - {/* Label to show current subscription (Pro and PAYG are treated as the same plan on the UI) */} - {isCurrentPlan && } - -
-
-

{plan.name}

- {plan.isPopular && Popular} +
+ {plan.id === STRIPE_PRODUCT_IDS.PRO && ( +
+
-

{plan.description}

-
- {plan.prices.length === 0 ? ( -

Contact us

- ) : ( -
-

${plan.prices[0].unit_amount / 100}

-

/month

+ )} +
+ {isCurrentPlan && } +
+ + {PRICING_META[plan.id].name} + +
+
+ {PRICING_META[plan.id].priceMonthly !== undefined ? ( + <> +
+ {PRICING_META[plan.id].from && ( + From + )} +
+ ${PRICING_META[plan.id].priceMonthly} + /mo +
+
+ + ) : ( + Contact Us + )} +
+ {PRICING_META[plan.id].warning && ( +
+ {PRICING_META[plan.id].warning} +
+ )} +
+
+
+ +
+

{PRICING_META[plan.id].description}

+
+ -
    - {pointers.map((pointer: string, idx: number) => ( -
  • -
    - - - -
    -
    - {pointer} -
    -
  • - ))} -
-
) })} -
+ ) } diff --git a/studio/components/interfaces/Billing/ProUpgrade/ProUpgrade.tsx b/studio/components/interfaces/Billing/ProUpgrade/ProUpgrade.tsx index 11d2cd2b900..94f488f200d 100644 --- a/studio/components/interfaces/Billing/ProUpgrade/ProUpgrade.tsx +++ b/studio/components/interfaces/Billing/ProUpgrade/ProUpgrade.tsx @@ -2,7 +2,7 @@ import { FC, useEffect, useState } from 'react' import { Transition } from '@headlessui/react' import { Badge, Button, IconArrowLeft, IconHelpCircle, Toggle, Modal } from '@supabase/ui' -import { useStore } from 'hooks' +import { useFlag, useStore } from 'hooks' import { post, patch } from 'lib/common/fetch' import { API_URL } from 'lib/constants' import { getURL } from 'lib/helpers' @@ -18,6 +18,7 @@ import { SubscriptionPreview } from '../Billing.types' import UpdateSuccess from '../UpdateSuccess' import { formatComputeSizes } from '../AddOns/AddOns.utils' import { formSubscriptionUpdatePayload } from './ProUpgrade.utils' +import BackButton from 'components/ui/BackButton' // Do not allow compute size changes for af-south-1 @@ -36,6 +37,11 @@ const ProUpgrade: FC = ({ isLoadingPaymentMethods, onSelectBack, }) => { + /** + * Feature flags + */ + const nativeBilling = useFlag('nativeBilling') + const { ui } = useStore() const { addons } = products @@ -151,39 +157,37 @@ const ProUpgrade: FC = ({ className="w-full flex items-start justify-between" > <> -
-
-
- -
+
+
+ onSelectBack()} />
-

Change your project's subscription

+

Change your project's subscription

- {!isManagingProSubscription ? ( -
-

- Welcome to Pro -

+

+ {!isManagingProSubscription ? ( + <> +

+ Welcome to Pro +

+

Your new subscription will begin immediately after payment

-

-
- ) : ( -
-

- Managing your Pro plan -

+ + ) : ( + <> +

+ Managing your Pro plan +

+

Your billing cycle will reset after payment

- -
- )} -
+ + )} +
+

Enable spend cap

@@ -195,7 +199,7 @@ const ProUpgrade: FC = ({ />

- If disabled, additional resources will be charged on a per-usage basis + If enabled, additional resources will not be charged on a per-usage basis

= ({ onChange={() => setIsSpendCapEnabled(!isSpendCapEnabled)} />
- {projectRegion !== 'af-south-1' && ( + {nativeBilling && projectRegion !== 'af-south-1' && ( <> = ({
-
+
= ({ const { ui } = useStore() const isOrgOwner = ui.selectedOrganization?.is_owner - const nativeBilling = useFlag('nativeBilling') + // const nativeBilling = useFlag('nativeBilling') const subscriptionStats = useSubscriptionStats() const isPayg = subscription?.tier.prod_id === STRIPE_PRODUCT_IDS.PAYG @@ -65,28 +64,20 @@ const Subscription: FC = ({

{subscription?.tier.name ?? '-'}

- {nativeBilling ? ( -
- - {!isOrgOwner && ( -

- Only the organization owner can amend subscriptions -

- )} -
- ) : ( - - )} +
+ + {!isOrgOwner && ( +

+ Only the organization owner can amend subscriptions +

+ )} +
{paid && (
diff --git a/studio/components/interfaces/Billing/Subscription/UpgradeButton.tsx b/studio/components/interfaces/Billing/Subscription/UpgradeButton.tsx index d39467cfcf3..1a8af78ba64 100644 --- a/studio/components/interfaces/Billing/Subscription/UpgradeButton.tsx +++ b/studio/components/interfaces/Billing/Subscription/UpgradeButton.tsx @@ -11,7 +11,8 @@ import { CancellationReasons } from './SubcriptionCancellation.constants' /** * Generates a Stripe Billing Portal link for a project. - * To be deprecate after native billing is completely rolled out + * This is now deprecated since 180422 since we have native billing + * Feel free to delete this file if we'd reckon we no longer need this fallback * * @param {Object} props.projectRef Project Ref * @param {Boolean} props.paid Tier name diff --git a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DatabaseApiSelectionRender.tsx b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DatabaseApiSelectionRender.tsx index 77dce2e1979..6a2f17437eb 100644 --- a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DatabaseApiSelectionRender.tsx +++ b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DatabaseApiSelectionRender.tsx @@ -16,8 +16,8 @@ const DatabaseApiSelectionRender = ({ log }: any) => { const DetailedRow = ({ label, value }: { label: string; value: string | React.ReactNode }) => { return (
- {label} - {value} + {label} + {value}
) } diff --git a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DatabasePostgresSelectionRender.tsx b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DatabasePostgresSelectionRender.tsx index 55594056a29..07edb226c26 100644 --- a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DatabasePostgresSelectionRender.tsx +++ b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DatabasePostgresSelectionRender.tsx @@ -12,8 +12,8 @@ const DatabasePostgresSelectionRender = ({ log }: any) => { const DetailedRow = ({ label, value }: { label: string; value: string | React.ReactNode }) => { return (
- {label} - {value} +

{label}

+

{value}

) } @@ -23,12 +23,9 @@ const DatabasePostgresSelectionRender = ({ log }: any) => {
Event message -
+
+ {log.event_message} +
diff --git a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DefaultSelectionRenderer.tsx b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DefaultSelectionRenderer.tsx index 9377bde687e..b8fced65f14 100644 --- a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DefaultSelectionRenderer.tsx +++ b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DefaultSelectionRenderer.tsx @@ -13,8 +13,8 @@ const DefaultSelectionRenderer = ({ log }: any) => { }) => { return (
- {label} - + {label} + {value}
@@ -33,7 +33,11 @@ const DefaultSelectionRenderer = ({ log }: any) => { return (
{label} - +
 {
     
{Object.entries(log).map(([key, value], index) => { return ( -
+
{value && typeof value === 'object' ? ( ) : ( diff --git a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/FunctionInvocationSelectionRender.tsx b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/FunctionInvocationSelectionRender.tsx index 3a18152dc3c..8f5bc84e5dc 100644 --- a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/FunctionInvocationSelectionRender.tsx +++ b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/FunctionInvocationSelectionRender.tsx @@ -23,8 +23,8 @@ const FunctionInvocationSelectionRender = ({ log }: any) => { }) => { return (
- {label} - + {label} + {value}
diff --git a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/FunctionLogsSelectionRender.tsx b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/FunctionLogsSelectionRender.tsx index c4ed2901af8..6c291df94d1 100644 --- a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/FunctionLogsSelectionRender.tsx +++ b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/FunctionLogsSelectionRender.tsx @@ -16,8 +16,12 @@ const FunctionLogsSelectionRender = ({ log }: any) => { }) => { return (
- {label} - + {label} + {value}
@@ -28,12 +32,9 @@ const FunctionLogsSelectionRender = ({ log }: any) => { <>
Event message -
+
+ {log.event_message} +
diff --git a/studio/components/interfaces/Settings/Logs/LogTable.tsx b/studio/components/interfaces/Settings/Logs/LogTable.tsx index 77881e18329..710616fe345 100644 --- a/studio/components/interfaces/Settings/Logs/LogTable.tsx +++ b/studio/components/interfaces/Settings/Logs/LogTable.tsx @@ -204,23 +204,20 @@ const LogTable = ({ return ( <>
{!queryType && (
@@ -248,9 +245,7 @@ const LogTable = ({
)} -
+
diff --git a/studio/components/layouts/BillingLayout.tsx b/studio/components/layouts/BillingLayout.tsx index 2e84a2fc94e..b0ae2569529 100644 --- a/studio/components/layouts/BillingLayout.tsx +++ b/studio/components/layouts/BillingLayout.tsx @@ -15,32 +15,34 @@ const BillingLayout: FC = ({ children }) => {
{/* Header */} -
- - - +
+ + + -
-

{ui.selectedOrganization?.name}

- - - - - -

{ui.selectedProject?.name}

+
+

Customize your plan

+
+
+

{ui.selectedOrganization?.name}

+ + + + + +

{ui.selectedProject?.name}

+
diff --git a/studio/components/ui/BackButton.tsx b/studio/components/ui/BackButton.tsx new file mode 100644 index 00000000000..7210e6fa3f3 --- /dev/null +++ b/studio/components/ui/BackButton.tsx @@ -0,0 +1,13 @@ +import { Button, IconArrowLeft } from '@supabase/ui' + +export function BackButton({ onClick }: { onClick: () => void }) { + return ( +
+ +
+ ) +} + +export default BackButton diff --git a/studio/lib/constants/infrastructure.ts b/studio/lib/constants/infrastructure.ts index 04b34ce9650..da1d6c4efaf 100644 --- a/studio/lib/constants/infrastructure.ts +++ b/studio/lib/constants/infrastructure.ts @@ -105,10 +105,10 @@ export const PROJECT_STATUS = { RESTORING: 'RESTORING', } -export const STRIPE_PRODUCT_IDS = { - FREE: process?.env?.NEXT_PUBLIC_STRIPE_FREE_TIER_ID, - PRO: process?.env?.NEXT_PUBLIC_STRIPE_PRO_TIER_ID, - PAYG: process?.env?.NEXT_PUBLIC_STRIPE_PAYG_TIER_ID, +export const STRIPE_PRODUCT_IDS: { [x: string]: string } = { + FREE: process?.env?.NEXT_PUBLIC_STRIPE_FREE_TIER_ID || 'prod_Ip4vqwv3EJ7Mi0', + PRO: process?.env?.NEXT_PUBLIC_STRIPE_PRO_TIER_ID || 'prod_IsRLOp58Z7V4XN', + PAYG: process?.env?.NEXT_PUBLIC_STRIPE_PAYG_TIER_ID || 'prod_JlTbw91xcM6NY4', } export const DEFAULT_MINIMUM_PASSWORD_STRENGTH = 4 diff --git a/studio/pages/project/[ref]/functions/index.tsx b/studio/pages/project/[ref]/functions/index.tsx index a26d86f81f9..7f787c5db85 100644 --- a/studio/pages/project/[ref]/functions/index.tsx +++ b/studio/pages/project/[ref]/functions/index.tsx @@ -76,40 +76,40 @@ const EmptyFunctions = () => { // comment: 'Link this project', // }, { - command: 'supabase functions new hello', - description: ' creates a function stub at ./functions/hello/hello.ts', + command: 'supabase functions new hello-world', + description: ' creates a function stub at ./functions/hello-world/index.ts', jsx: () => { return ( <> - supabase functions new hello + supabase functions new hello-world ) }, comment: 'Create a function', }, { - command: `supabase functions deploy hello --project-ref ${ref}`, - description: 'Deploys function at ./functions/hello/index.ts', + command: `supabase functions deploy hello-world --project-ref ${ref}`, + description: 'Deploys function at ./functions/hello-world/index.ts', jsx: () => { return ( <> - supabase functions deploy hello --project-ref{' '} - {ref} + supabase functions deploy hello-world + --project-ref {ref} ) }, comment: 'Deploy your function', }, { - command: `curl -L -X POST 'https://${ref}.functions.supabase.co/hello' -H 'Authorization: Bearer ${ + command: `curl -L -X POST 'https://${ref}.functions.supabase.co/hello-world' -H 'Authorization: Bearer ${ anonKey ?? '[YOUR ANON KEY]' }' --data '{"name":"Functions"}'`, - description: 'Invokes the hello function', + description: 'Invokes the hello-world function', jsx: () => { return ( <> curl -L -X POST 'https://{ref} - .functions.supabase.co/hello' -H 'Authorization: Bearer [YOUR ANON KEY]'{' '} + .functions.supabase.co/hello-world' -H 'Authorization: Bearer [YOUR ANON KEY]'{' '} {`--data '{"name":"Functions"}'`} ) diff --git a/studio/pages/project/[ref]/settings/billing/update/index.tsx b/studio/pages/project/[ref]/settings/billing/update/index.tsx index eb2f26ffdca..0251e7c1081 100644 --- a/studio/pages/project/[ref]/settings/billing/update/index.tsx +++ b/studio/pages/project/[ref]/settings/billing/update/index.tsx @@ -106,7 +106,7 @@ const BillingUpdate: NextPage = () => { return ( -
+
- {/* Auth */} + {/* Functions */} +
+ +
+

Edge Functions

+

Server-side Typescript functions, distributed globally.

+
+ +
+ {/* Storage */}
@@ -98,6 +107,16 @@ It provides all the backend services you need to build a product. You can use it
+ {/* Observability */} +
+ +
+

Observability

+

Monitor and debug your infrastucture.

+
+ +
+ {/* */}
diff --git a/web/docs/faq.md b/web/docs/faq.md index 2d6e640eb2c..e9d3b5bdea1 100755 --- a/web/docs/faq.md +++ b/web/docs/faq.md @@ -4,28 +4,36 @@ title: FAQs description: 'Most frequently asked questions regarding Supabase' --- -### Have you built `[Firebase feature]` yet? +### Where do I find support? -We're building as fast as we can! And we are even adding a few things that Firebase doesn't have, as we go. Here are the features we have built: +Choose the support channel relevant for your situation here: [supabase.com/support](https://supabase.com/support) -- A dashboard/UI for spinning up and managing your database in less than one minute. -- User authentication to sign up users and edit access rules on your database. -- Real-time database listeners. -- JavaScript library and APIs. -- Functions (kinda). These exist as database stored procedures, which can be written in SQL, JavaScript, Python, and Java. +### How much does it cost? -### How can you be a Firebase alternative if you're built with a relational database? - -We started Supabase because we love the functionality of Firebase, but we personally experienced the scaling issues that many others experienced. We chose Postgres because it's well-trusted and it has phenomenal scalability. Our goal is to make Postgres as easy to use as Firebase, so that you no longer have to choose between usability and scalability. Also, we're sure that once you start using Postgres, you'll love it more than any other database. +Self-hosting Supabase is free. If you wish to use our cloud-platform, we provide [simple, predictable pricing](/pricing). ### How do I host Supabase? -Supabase is an amalgamation of five open source tools (and growing). Some of these tools are made by Supabase (like our [Realtime Server](https://github.com/supabase/realtime)), some we support indirectly (like [PostgREST](http://postgrest.org/en/v7.0.0/)), and some are third-party tools (like [Kong](https://github.com/Kong/kong)). All of the tools we use in Supabase are MIT, Apache 2.0, or PostgreSQL licensed. You can use the docker-compose script [here](https://github.com/supabase/supabase/tree/master/docker) to build Supabase on your own environment, and find detailed instructions [here](/docs/guides/hosting/overview). +You can use the docker-compose script [here](https://github.com/supabase/supabase/tree/master/docker), and find detailed instructions [here](/docs/guides/hosting/overview). + +Supabase is an amalgamation of open source tools. Some of these tools are made by Supabase (like our [Realtime Server](https://github.com/supabase/realtime)), some we support directly (like [PostgREST](http://postgrest.org/en/v7.0.0/)), and some are third-party tools (like [KonSupabase is an amalgamation open sourceg](https://github.com/Kong/kong)). + +All of the tools we use in Supabase are MIT, Apache 2.0, or PostgreSQL licensed. This is one of the requirements to be considered for the Supabase stack. + +### How can you be a Firebase alternative if you're built with a relational database? + +We started Supabase because we love the functionality of Firebase, but we personally experienced the scaling issues that many others experienced. We chose Postgres because it's well-trusted, with phenomenal scalability. + +Our goal is to make Postgres as easy to use as Firebase, so that you no longer have to choose between usability and scalability. +We're sure that once you start using Postgres, you'll love it more than any other database. ### Do you support `[some other database]`? -At the moment, we only support PostgreSQL. It's unlikely we'll ever move away from Postgres; however, you can [vote on a new database](https://github.com/supabase/supabase/issues/6) if you want us to start development. +We only support PostgreSQL. It's unlikely we'll ever move away from Postgres; however, you can [vote on a new database](https://github.com/supabase/supabase/issues/6) if you want us to start development. ### Do you have a library for `[some other language]`? -We currently have a JavaScript library. You can [vote on a new client library](https://github.com/supabase/supabase/issues/5) for your favorite language. +We officially support [JavaScript](/docs/reference/javascript/supabase-client) and [Dart](/docs/reference/dart/installing). + +You can find community-supported libraries in our [GitHub Community](https://github.com/supabase-community), and you can also help us to identify the most popular languages by [voting for a new client library](https://github.com/supabase/supabase/issues/5). + diff --git a/web/docs/going-into-prod.mdx b/web/docs/going-into-prod.mdx index 6b9aa5b6b3f..2778373f416 100644 --- a/web/docs/going-into-prod.mdx +++ b/web/docs/going-into-prod.mdx @@ -1,10 +1,10 @@ --- id: going-into-prod -title: Going into Prod Checklist +title: 'Production Readiness' description: 'Things to do before making your app publicly available' --- -After developing your project, and deciding it's time to Go Live With Real Users, you should run through this checklist to ensure that your project is: +After developing your project and deciding it's time to Go Live With Real Users, you should run through this checklist to ensure that your project is: - secure - won't falter under the expected load @@ -14,37 +14,37 @@ After developing your project, and deciding it's time to Go Live With Real Users - Ensure RLS is enabled - Tables that do not have RLS enabled with reasonable policies allow any client to access and modify their data. This is unlikely to be what you want in the majority of cases. - - [Learn more about RLS](/docs/guides/auth/row-level-security) + - [Learn more about RLS](/docs/guides/auth/row-level-security). - Enable replication on tables containing sensitive data by enabling Row Level Security (RLS) and setting row security policies: - - Go to the Authentication > Policies page in the Supabase Dashboard to enable RLS and create security policies - - Go to the Database > Replication page in the Supabase Dashboard to manage replication tables -- Enable 2FA on GitHub - - Since your GitHub account gives you administrative rights to your Supabase project, you should protect it with a strong password and 2FA using a U2F key or a TOTP app. -- Ensure email confirmations are enabled in the Auth > Settings page -- Use a custom SMTP server for auth emails so that your users can see that the mails are coming from a trusted domain (preferably the same domain that your app is hosted on). (grab SMTP credentials from any major email provider such as SendGrid, AWS SES, etc.) -- Think hard about how *you* would abuse your service as an attacker, and mitigate -- Review these [common cybersecurity threats](https://auth0.com/docs/security/prevent-threats) + - Go to the Authentication > Policies page in the Supabase Dashboard to enable RLS and create security policies. + - Go to the Database > Replication page in the Supabase Dashboard to manage replication tables. +- Enable 2FA on GitHub. Since your GitHub account gives you administrative rights to your Supabase project, you should protect it with a strong password and 2FA using a U2F key or a TOTP app. +- Ensure email confirmations are enabled in the `Auth > Settings` page. +- Use a custom SMTP server for auth emails so that your users can see that the mails are coming from a trusted domain (preferably the same domain that your app is hosted on). Grab SMTP credentials from any major email provider such as SendGrid, AWS SES, etc. +- Think hard about how *you* would abuse your service as an attacker, and mitigate. +- Review these [common cybersecurity threats](https://auth0.com/docs/security/prevent-threats). ## Performance - Ensure that you have suitable indices to cater to your common query patterns - - [learn more about indexes in postgres](https://www.enterprisedb.com/postgres-tutorials/overview-postgresql-indexes) - - pg_stat_statements can help you [identify hot or slow queries](https://www.virtual-dba.com/blog/postgresql-performance-identifying-hot-and-slow-queries/) + - [Learn more about indexes in Postgres](https://www.enterprisedb.com/postgres-tutorials/overview-postgresql-indexes). + - `pg_stat_statements` can help you [identify hot or slow queries](https://www.virtual-dba.com/blog/postgresql-performance-identifying-hot-and-slow-queries/). - Perform load testing (preferably on a staging env) - - tools like [k6](https://k6.io/) can simulate traffic from many different users -- If you find you require more resources, contact support@supabase.io to upgrade to PAYG for bigger servers + - Tools like [k6](https://k6.io/) can simulate traffic from many different users. +- Upgrade your database if you require more resources. If you need anything beyond what is listed, contact enterprise@supabase.io. +- If you are expecting a surge in traffic (for a big launch), let the team know by sending your Project Ref to us (support@supabase.io) with more details about your launch. We'll keep an eye on your project. ## Availability - Use your own SMTP credentials so that you have full control over the deliverability of your transactional auth emails (see Auth > Settings) - you can grab SMTP credentials from any major email provider such as SendGrid, AWS SES, etc. - - the default rate limit for auth emails provided by Supabase is 30 new users per hour, if doing a major public announcement you will likely require more than this -- If your application is on the free tier and is **not** expected to be queried at least once every 7 days, then it may be paused by Supabase to save on server resources - - you can restore paused projects from the Supabase dashboard - - upgrade to Pro to guarantee that your project will not be paused for inactivity -- Database backups are not available for download on the free tier - - You can set up your own backup systems using tools like [pg_dump](https://www.postgresqltutorial.com/postgresql-backup-database/) or [wal-g](https://github.com/wal-g/wal-g) - - Nightly backups for Pro tier projects are available on the Supabase dashboard for up to 7 days -- upgrading to the Supabase Pro Tier will give you access to email support on support@supabase.io + - The default rate limit for auth emails provided by Supabase is 30 new users per hour, if doing a major public announcement you will likely require more than this. +- If your application is on the free tier and is **not** expected to be queried at least once every 7 days, then it may be paused by Supabase to save on server resources. + - You can restore paused projects from the Supabase dashboard. + - Upgrade to Pro to guarantee that your project will not be paused for inactivity. +- Database backups are not available for download on the free tier. + - You can set up your own backup systems using tools like [pg_dump](https://www.postgresqltutorial.com/postgresql-backup-database/) or [wal-g](https://github.com/wal-g/wal-g). + - Nightly backups for Pro tier projects are available on the Supabase dashboard for up to 7 days. +- Upgrading to the Supabase Pro Tier will give you access to email support on support@supabase.io This checklist is always growing so be sure to check back frequently, and also feel free to suggest additions and amendments by making a PR on [GitHub](https://github.com/supabase/supabase). diff --git a/web/docs/guides/api.mdx b/web/docs/guides/api.mdx index 256da1d3023..7bd540a5550 100644 --- a/web/docs/guides/api.mdx +++ b/web/docs/guides/api.mdx @@ -127,8 +127,8 @@ Every Supabase project has a unique API URL. Your API is secured behind an API g The REST API and the GraphQL API are both accessible through this URL: -- REST: `https://.supabase.com/rest/v1` -- GraphQL: `https://.supabase.com/graphql/v1` +- REST: `https://.supabase.co/rest/v1` +- GraphQL: `https://.supabase.co/graphql/v1` Both of these routes require the `anon` key to be passed through an `apikey` header. @@ -172,7 +172,7 @@ values={[ #### GraphQL -The GraphQL Endpoint that we provide (`https://.supabase.com/rest/v1`) is compatible with any GraphiQL implementation that can pass an `apikey` header. +The GraphQL Endpoint that we provide (`https://.supabase.co/rest/v1`) is compatible with any GraphiQL implementation that can pass an `apikey` header. Some suggested applications: - [paw.cloud](https://paw.cloud) @@ -339,13 +339,13 @@ values={[ ```sql -alter publication supabase_realtime add table products; +alter publication supabase_realtime add table todos; ``` -Now we can listen to any new data that is inserted into the `todo` table: +Now we can listen to any new data that is inserted into the `todos` table: { // Listen to unserts const { data: todos, error } = await supabase .from('todos') - .in('INSERT', handleUpdates) + .on('INSERT', handleUpdates) .subscribe() ``` @@ -432,4 +432,4 @@ select usename,useconfig from pg_shadow where usename = 'authenticator' ; The expected value for `useconfig` should be: ``` ["session_preload_libraries=supautils, safeupdate"] -``` \ No newline at end of file +``` diff --git a/web/docs/guides/database/connecting-to-postgres.mdx b/web/docs/guides/database/connecting-to-postgres.mdx index 23dc620c7d5..fefd58ab362 100644 --- a/web/docs/guides/database/connecting-to-postgres.mdx +++ b/web/docs/guides/database/connecting-to-postgres.mdx @@ -27,13 +27,20 @@ You can use these simple questions to determine which connection method to use: - Are you connecting to your database and then _disconnecting_ immediately (e.g. a serverless environment)? If yes, use a connection pool. -## HTTP API +## API -Supabase provides an auto-updating API. This is the easiest way to get started if you are managing data (fetching, inserting, updating). +Supabase provides an auto-updating [API](/docs/guides/api). This is the easiest way to get started if you are managing data (fetching, inserting, updating). -You cannot manage the database schema -via the API (for security reasons). To do that you can use the dashboard or connect directly to your database. +### Interfaces + +We provides several types of API to suit your preferences and use-case: + +- [REST](/docs/guides/api#rest-api): interact with your database through a REST interface. +- [GraphQL](/docs/guides/api#graphql-api): interact with your database through a GraphQL interface. +- [Realtime](/docs/guides/api#realtime-api): listen to database changes over websockets. + +You cannot manage the database schema via the API (for security reasons). To do that you can use the dashboard or connect directly to your database. ### Finding your API URL @@ -98,7 +105,7 @@ When a client makes a request, PgBouncer "allocates" an available connection to When the client transaction or session is completed the connection is returned to the pool and is free to be used by another client. -![Connection pooling](/img/guides/connection-pool.png) +![Connection pooling](/img/guides/database/connection-pool.png) ### Pool modes diff --git a/web/docs/guides/database/functions.mdx b/web/docs/guides/database/functions.mdx index c3c61c0838b..87cd1cd3c5e 100644 --- a/web/docs/guides/database/functions.mdx +++ b/web/docs/guides/database/functions.mdx @@ -11,12 +11,6 @@ import TabItem from '@theme/TabItem'; Postgres has built-in support for [SQL functions](https://www.postgresql.org/docs/current/sql-createfunction.html). These functions live inside your database, and they can be [used with the API](/docs/reference/javascript/rpc). -## Database vs Edge Functions - -For data-intensive operations we recommend using Database Functions, which are executed within your database, and can be called remotely using the REST and GraphQL API. - -If you are looking for Typescript Functions which are globally deployed, check out [Edge Functions](/docs/guides/functions). - ## Quick demo -## Creating Functions +## Getting started Supabase provides several options for creating database functions. You can use the Dashboard or create them directly using SQL. We provide a SQL editor within the Dashboard, or you can [connect](/docs/guides/database/connecting/connecting-to-postgres) to your database @@ -41,12 +35,84 @@ and run the SQL queries yourself. 3. Enter the SQL to create or replace your Database function. 4. Click "Run" or cmd+enter (ctrl+enter). -## Examples -### Data set +## Simple Functions -For this guide we'll use the following example data: +Let's create a basic Database Function which returns a string "hello world". +```sql +create or replace function hello_world() -- 1 +returns text -- 2 +language sql -- 3 +as $$ -- 4 + select 'hello world'; -- 5 +$$; --6 + +``` + +
+Show/Hide Details + +At it's most basic a function has the following parts: + +1. `create or replace function hello_world()`: The function declaration, where `hello_world` is the name of the function. You can use either `create` when creating a new function or `replace` when replacing an existing function. Or you can use `create or replace` together to handle either. +2. `returns text`: The type of data that the function returns. If it returns nothing, you can `returns void`. +3. `language sql`: The language used inside the function body. This can also be a procedural language: `plpgsql`, `plv8`, `plpython`, etc. +4. `as $$`: The function wrapper. Anything enclosed inside the `$$` symbols will be part of the function body. +5. `select 'hello world';`: A simple function body. The final `select` statement inside a function body will be returned if there are no statements following it. +6. `$$;`: The closing symbols of the function wrapper. + +
+ +
+ +After the Function is created, we have several ways of "executing" the function - either directly inside the database using SQL, or with one of the client libraries. + + + + + +```sql +select hello_world(); +``` + + + + +```js +const { data, error } = supabase + .rpc('hello_world') +``` + +Reference: [rpc()](/docs/reference/javascript/rpc) + + + + +```dart +final res = await supabase + .rpc('hello_world') + .execute(); +``` + +Reference: [rpc()](/docs/reference/dart/rpc) + + + + + + +## Returning data sets + +Database Functions can also return data sets from [Tables](/docs/guides/database/tables) or Views. + +For example, if we had a database with some Star Wars data inside: -### Basic function -A basic example which returns a string "hello world". - -```sql -create or replace function hello_world() -- 1 -returns text -- 2 -language sql -- 3 -as $$ -- 4 - select 'hello world'; -- 5 -$$; --6 - -``` - -
-Show/Hide Details - -At it's most basic a function has the following parts: - -1. `create or replace function hello_world()`: The function declaration, where `hello_world` is the name of the function. You can use either `create` when creating a new function or `replace` when replacing an existing function. Or you can use `create or replace` together to handle either. -2. `returns text`: The type of data that the function returns. If it returns nothing, you can `returns void`. -3. `language sql`: The language used inside the function body. This can also be a procedural language: `plpgsql`, `plv8`, `plpython`, etc. -4. `as $$`: The function wrapper. Anything enclosed inside the `$$` symbols will be part of the function body. -5. `select 'hello world';`: A simple function body. The final `select` statement inside a function body will be returned if there are no statements following it. -6. `$$;`: The closing symbols of the function wrapper. - -
- -#### Execute - - - - - -```sql -select hello_world(); -``` - - - - -```js -const { data, error } = supabase - .rpc('hello_world') -``` - -Reference: [rpc()](/docs/reference/javascript/rpc) - - - - -```dart -final res = await supabase - .rpc('hello_world') - .execute(); -``` - -Reference: [rpc()](/docs/reference/dart/rpc) - - - - - - -### Return table sets - -A basic example which return all the `planets` in our example data set. +We could create a function which returns all the planets: ```sql create or replace function get_planets() @@ -190,8 +185,6 @@ as $$ $$; ``` -#### Execute - Because this function returns a table set, we can also apply filters and selectors. For example, if we only wanted the first planet: @@ -231,16 +222,14 @@ final res = await supabase .execute(); ``` -Reference: [rpc()](/docs/reference/dart/rpc) - -### With parameters +## Passing parameters -A basic example which will insert a new planet into the `planets` and return the new ID. Note that this time we're using the `plpgsql` language. +Let's create a Function to insert a new planet into the `planets` table and return the new ID. Note that this time we're using the `plpgsql` language. ```sql create or replace function add_planet(name text) @@ -259,9 +248,7 @@ end; $$; ``` -#### Execute - -Because this function returns a table set, we can also apply filters and selectors. For example, if we only wanted the `name` of the first planet: +Once again, you can execute this function either inside your database using a `select` query, or with the client libraries: @@ -296,14 +282,81 @@ final res = await supabase .execute(); ``` -Reference: [rpc()](/docs/reference/dart/rpc) - +## Suggestions + +### Database Functions vs Edge Functions + +For data-intensive operations we recommend using [Database Functions](/docs/guides/database/functions), which are executed within your database +and can be called remotely using the [REST and GraphQL API](/docs/guides/database/api). + +For use-cases which require low-latency we recommend [Edge Functions](/docs/guides/functions), which are globally-distributed and can be written in Typescript. + +### Security `definer` vs `invoker` + +Postgres allows you to specify whether you want the function to be executed as the user _calling_ the function (`invoker`), or as the _creator_ of the function (`definer`). For example: + +```sql +create function hello_world() +returns text +language plpgsql +security definer set search_path = public +as $$ +begin + select 'hello world'; +end; +$$; +``` + +It is best practice to use `security invoker` (which is also the default). If you ever use `security invoker`, you _must_ set the `search_path`. +This limits the potential damage if you allow access to schemas which the user executing the function should not have. + ## Resources + +- Official Client libraries: [JavaScript](/docs/reference/javascript/rpc) and [Dart](/docs/reference/dart/rpc) +- Community client libraries: [github.com/supabase-community](https://github.com/supabase-community) - PostgreSQL Official Docs: [Chapter 9. Functions and Operators](https://www.postgresql.org/docs/current/functions.html) - PostgreSQL Reference: [CREATE FUNCTION](https://www.postgresql.org/docs/9.1/sql-createfunction.html) + +## Deep Dive + +### Create Database Functions + + + +### Call Database Functions using JavaScript + + + +### Using Database Functions to call an external API + + diff --git a/web/docs/guides/database/tables.mdx b/web/docs/guides/database/tables.mdx index 0e3c2c0631b..dbdd710c85a 100644 --- a/web/docs/guides/database/tables.mdx +++ b/web/docs/guides/database/tables.mdx @@ -1,6 +1,6 @@ --- id: tables -title: Tables +title: Tables and Data description: Creating and using Postgres tables. --- @@ -8,25 +8,31 @@ import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -In Postgres, data is stored in "tables". -Tables are similar to excel spreadsheets. They contain columns & rows of data. There are a few key differences from a spreadsheet however: +Tables are where you store your data. -- Every column is a strict type of data. When you set up a column, you must define the "data type". -- Tables can be "joined" together. For example you can have a `users` table, which is joined to a `teams` table (because users belong to teams). +Tables are similar to excel spreadsheets. They contain columns and rows. For example, this table has 3 "columns" (`id`, `name`, `description`) and 4 "rows" of data: | `id` | `name` | `description` | | ---- | ---- | ----------- | -| 1 | Toy Story | When a new toy called "Forky" joins Woody and the gang, a road trip alongside old and new friends reveals how big the world can be for a toy. | -| 2 | Monsters, Inc. | In order to power the city, monsters have to scare children so that they scream. However, the children are toxic to monsters. | -| 3 | Finding Nemo | After his son is captured in the Great Barrier Reef and taken to Sydney, a timid clownfish sets out on a journey to bring him home. | -| 4 | WALL-E | In the distant future, a small waste-collecting robot inadvertently embarks on a space journey that will ultimately decide the fate of mankind. | +| 1 | The Phantom Menace | Two Jedi escape a hostile blockade to find allies and come across a young boy who may bring balance to the Force. | +| 2 | Attack of the Clones | Ten years after the invasion of Naboo, the Galactic Republic is facing a Separatist movement. | +| 3 | Revenge of the Sith | As Obi-Wan pursues a new threat, Anakin acts as a double agent between the Jedi Council and Palpatine and is lured into a sinister plan to rule the galaxy. | +| 4 | Star Wars | Luke Skywalker joins forces with a Jedi Knight, a cocky pilot, a Wookiee and two droids to save the galaxy from the Empire's world-destroying battle station. | +There are a few important differences from a spreadsheet, but it's a good starting point if you're new to Relational databases. ## Creating Tables -Supabase provides several options for creating tables. You can use the Table Editor or create them directly using SQL. + +When creating a table, it's best practice to add columns at the same time. + +![Tables and columns](/img/guides/database/tables-columns.png) + +You must define the "data type" of each column when it is created. You can add and remove columns at any time after creating a table. + +Supabase provides several options for creating tables. You can use the Dashboard or create them directly using SQL. We provide a SQL editor within the Dashboard, or you can [connect](/docs/guides/database/connecting/connecting-to-postgres) to your database and run the SQL queries yourself. @@ -34,11 +40,16 @@ and run the SQL queries yourself. + + + ```sh 1. Go to the "Table editor" section. 2. Click "New Table". @@ -49,30 +60,25 @@ values={[ 7. Click "Save". ``` - - ```sql --- Create a table called "todos" with a column to store tasks. - -create table todos ( +create table movies ( id bigint generated by default as identity primary key, - task text check (char_length(task) > 3) + name text, + description text ); ``` +It is best practice to use lowercase and underscores when naming tables. For example: `table_name`, not `Table Name`. -### Tips +## Columns -- It is best practice to use lowercase and underscores when naming tables. For example: `table_name`, not `Table Name`. -- Tables belong to `schemas`. If you don't explicitly pass the schema, Postgres will assume that you want to create the table in the `public` schema. +You must define the "data type" when you create a column. ### Data types @@ -133,3 +139,217 @@ if the default types don't fit your needs. +
+ +You can "cast" columns from one type to another, however there can be some incompatibilities between types. +For example, if you cast a `timestamp` to a `date`, you will lose all the time information that was previously saved. + +### Primary Keys + +A table can have a "primary key" - a unique identifier for every row of data. A few tips for Primary Keys: + + +- It's recommended to create a Primary Key for every table in your database. +- You can use any column as a primary key, as long as it is unique for every row. +- It's common to use a `uuid` type or a numbered `identity` column as your primary key. + +```sql +create table movies ( + id bigint generated always as identity primary key +); +``` + +In the example above, we have: + +1. created a column called `id` +1. assigned the data type `bigint` +1. instructed the database that this should be `generated always as identity`, which means that Postgres will automatically assign a unique number to this column. +1. Becuase it's unique, we can also use it as our `primary key`. + +We could also use `generated by default as identity`, which would allow us to insert our own unique values. + +```sql +create table movies ( + id bigint generated by default as identity primary key +); +``` + +## Loading data + +There are several ways to load data in Supabase. You can load data directly into the database or using the [APIs](/docs/guides/api). +Use the "Bulk Loading" instructions if you are loading large data sets. + +### Basic data loading + + + + +```sql +insert into movies + (name, description) +values + ('The Empire Strikes Back', 'After the Rebels are brutally overpowered by the Empire on the ice planet Hoth, Luke Skywalker begins Jedi training with Yoda.'), + ('Return of the Jedi', 'After a daring mission to rescue Han Solo from Jabba the Hutt, the Rebels dispatch to Endor to destroy the second Death Star.'); +``` + + + + +```sql +const { data, error } = await supabase + .from('movies') + .insert([{ + name: 'The Empire Strikes Back', + description: 'After the Rebels are brutally overpowered by the Empire on the ice planet Hoth, Luke Skywalker begins Jedi training with Yoda.' + }, { + name: 'Return of the Jedi', + description: 'After a daring mission to rescue Han Solo from Jabba the Hutt, the Rebels dispatch to Endor to destroy the second Death Star.' + }]) +``` + + + + +```sql +final res = await supabase + .from('movies') + .insert([{ + name: 'The Empire Strikes Back', + description: 'After the Rebels are brutally overpowered by the Empire on the ice planet Hoth, Luke Skywalker begins Jedi training with Yoda.' + }, { + name: 'Return of the Jedi', + description: 'After a daring mission to rescue Han Solo from Jabba the Hutt, the Rebels dispatch to Endor to destroy the second Death Star.' + }]).execute(); +``` + + + + +### Bulk data loading + +When inserting large data sets it's best to use PostgreSQL's [COPY](https://www.postgresql.org/docs/current/sql-copy.html) command. +This loads data directly from a file into a table. There are several file formats available for copying data: text, csv, binary, JSON, etc. + +For example, if you wanted to load a CSV file into your movies table: + +```csv title="./movies.csv" +"The Empire Strikes Back", "After the Rebels are brutally overpowered by the Empire on the ice planet Hoth, Luke Skywalker begins Jedi training with Yoda." +"Return of the Jedi", "After a daring mission to rescue Han Solo from Jabba the Hutt, the Rebels dispatch to Endor to destroy the second Death Star." +``` + +You would [connect](/docs/guides/database/connecting-to-postgres#direct-connections) to your database directly and load the file with the COPY command: + +```bash +psql -h DATABASE_URL -p 5432 postgres -U postgres \ + -c "COPY movies FROM './movies.csv';" +``` + + +## Joining tables with Foreign Keys + +Tables can be "joined" together using Foreign Keys. + +![Foreign Keys](/img/guides/database/foreign-keys.png) + +This is where the "Relational" naming comes from, as data typically forms some sort of relationship. + +In our "movies" example above, we might want to add a "category" for each movie (for example, "Action", or "Documentary"). +Let's create a new table called `categories` and "link" our `movies` table. + +```sql +create table categories ( + id bigint generated always as identity primary key, + name text -- category name +); + +alter table movies + add column category_id bigint references categories; +``` + +You can also create "many-to-many" relationships by creating a "join" table. +For example if you had the following situations: + +- You have a list of `movies`. +- A movie can have several `actors`. +- An `actor` can perfom in several movies. + + + + +```sql +create table movies ( + id bigint generated by default as identity primary key, + name text, + description text +); + +create table actors ( + id bigint generated by default as identity primary key, + name text +); + +create table performances ( + id bigint generated by default as identity primary key, + movie_id bigint not null references movies, + actor_id bigint not null references actors +); +``` + + + + + + + + + + +## Schemas + +Tables belong to `schemas`. Schemas are a way of organizing your tables, often for security reasons. + +![Schemas and tables](/img/guides/database/schema-tables.png) + +If you don't explicitly pass a schema when creating a table, Postgres will assume that you want to create the table in the `public` schema. + +We can create schemas for organizing tables. For example, we might want a private schema which is hidden from our API: + + +```sql +create schema private; +``` + +Now we can create tables inside the `private` schema: + +```sql +create table salaries ( + id bigint generated by default as identity primary key, + salary bigint not null, + actor_id bigint not null references public.actors +); +``` + +## Resources + +- [Official Docs: Create table](https://www.postgresql.org/docs/current/sql-createtable.html) +- [PostgreSQL Tutorial: Create tables](https://www.postgresqltutorial.com/postgresql-tutorial/postgresql-create-table/) +- [PostgreSQL Tutorial: Add column](https://www.postgresqltutorial.com/postgresql-tutorial/postgresql-add-column/) diff --git a/web/docs/guides/functions.mdx b/web/docs/guides/functions.mdx index ce07d17a72d..03366313814 100644 --- a/web/docs/guides/functions.mdx +++ b/web/docs/guides/functions.mdx @@ -251,12 +251,15 @@ You can find a list of useful [Edge Function Examples](https://github.com/supaba
-## Suggestions and Limitations +## Suggestions -### Database vs Edge Functions +### Database Functions vs Edge Functions + +For data-intensive operations we recommend using [Database Functions](/docs/guides/database/functions), which are executed within your database +and can be called remotely using the [REST and GraphQL API](/docs/guides/database/api). + +For use-cases which require low-latency we recommend [Edge Functions](/docs/guides/functions), which are globally-distributed and can be written in Typescript. -For data-intensive operations we recommend using [Database Functions](/docs/guides/database/functions), which are executed within your database, -and can be called remotely using the [REST and GraphQL API](/docs/guides/database/functions). ### Organizing your Edge Functions @@ -280,7 +283,7 @@ We recommend developing “fat functions”. This means that you should develop We recommend using hyphens to name functions because hyphens are the most URL-friendly of all the naming conventions (snake_case, camelCase, PascalCase). -### Limitations +## Limitations Edge Functions are Experimental. They aren't going away, but there will be breaking changes. diff --git a/web/docs/guides/local-development.mdx b/web/docs/guides/local-development.mdx index 1c7af5b8502..c6c5a6eba8c 100644 --- a/web/docs/guides/local-development.mdx +++ b/web/docs/guides/local-development.mdx @@ -131,7 +131,7 @@ Database changes are managed through "migrations". Database migrations are a com #### Making database changes -For this guild, let's create a table called `employees`, using the "Supabase Studio" link provided. +For this guide, let's create a table called `employees`, using the "Supabase Studio" link provided. :::note diff --git a/web/docs/guides/storage.mdx b/web/docs/guides/storage.mdx index 08ca8beb291..d17525e76e8 100644 --- a/web/docs/guides/storage.mdx +++ b/web/docs/guides/storage.mdx @@ -89,7 +89,7 @@ const { data, error } = await supabase.storage.createBucket('avatars') ```dart void main() async { final client = SupabaseClient('supabaseUrl', 'supabaseKey'); - + final storageResponse = await client .storage .createBucket('avatars'); @@ -143,7 +143,7 @@ const { data, error } = await supabase.storage ```dart void main() async { final client = SupabaseClient('supabaseUrl', 'supabaseKey'); - + // Create file `example.txt` and upload it in `public` bucket final file = File('example.txt'); file.writeAsStringSync('File content'); @@ -198,7 +198,7 @@ const { data, error } = await supabase.storage.from('avatars').download('public/ ```dart void main() async { final client = SupabaseClient('supabaseUrl', 'supabaseKey'); - + final storageResponse = await client .storage .from('public') @@ -302,9 +302,27 @@ For example, if your file is stored in `public/subfolder/avatar.png` it would re ## Accessing objects -For private buckets, you can access objects via the [download](/docs/reference/javascript/storage-from-download) method. This corresponds to `/object/auth/` API endpoint. Alternatively, you can create a publicly shareable URL with an expiry date using the [createSignedUrl](/docs/reference/javascript/storage-from-createsignedurl) method which calls the `/object/sign/` API. -For public buckets, you can access the assets directly without a token or an Authorisation header. The [getPublicUrl](/docs/reference/javascript/storage-from-getpublicurl) helper method returns the full public URL for an asset. This calls the `/object/public/` API endpoint internally. +For private buckets, you can access objects via the [download](/docs/reference/javascript/storage-from-download) method. This corresponds to `/object/auth/` API endpoint. +Alternatively, you can create a publicly shareable URL with an expiry date using the [createSignedUrl](/docs/reference/javascript/storage-from-createsignedurl) method +which calls the `/object/sign/` API. + +For public buckets, you can access the assets directly without a token or an Authorisation header. The [getPublicUrl](/docs/reference/javascript/storage-from-getpublicurl) +helper method returns the full public URL for an asset. This calls the `/object/public/` API endpoint internally. + + +
+Advanced: reverse proxy +The URLs returned are proxied through the API Proxy. They are suffixed by /storage/v1. + +For example, on the hosted Platform they will be + +https://[project_ref].supabase.co/storage/v1/object/public/[id] + +You can access the storage API directly with the same endpoint. See the API docs for a full list of operations available. + +
+ --- @@ -349,6 +367,13 @@ on storage.objects for select using ( auth.uid() = owner ); ``` +## Resources + +- Find the API server on GitHub: [github.com/supabase/storage-api](https://github.com/supabase/storage-api) +- Find the Swagger API Docs online: [supabase.github.io/storage-api](https://supabase.github.io/storage-api) +- Official client libraries documentation: [JavaScript](/docs/reference/javascript/storage-createbucket) and [Dart](/docs/reference/dart/storage-createbucket). +- Community libraries: [github.com/supabase-community](https://github.com/supabase-community) + ## Next steps - Got a question? [Ask here](https://github.com/supabase/supabase/discussions). diff --git a/web/sidebars.js b/web/sidebars.js index 919711c8540..cbd90a2b7c2 100755 --- a/web/sidebars.js +++ b/web/sidebars.js @@ -183,7 +183,7 @@ module.exports = { type: 'category', label: 'Platform', collapsed: false, - items: ['guides/platform/logs'], + items: ['guides/platform/logs', 'going-into-prod'], }, { type: 'category', @@ -214,7 +214,6 @@ module.exports = { collapsed: false, items: [ 'faq', - 'going-into-prod', 'handbook/contributing', 'handbook/supasquad', 'company/terms', diff --git a/web/spec/combined.json b/web/spec/combined.json index eba4d016fc0..f4e30b577b9 100644 --- a/web/spec/combined.json +++ b/web/spec/combined.json @@ -19862,8 +19862,11 @@ } ], "type": { - "type": "literal", - "value": "sms" + "type": "reference", + "id": 783, + "qualifiedName": "MobileOTPType", + "package": "@supabase/gotrue-js", + "name": "MobileOTPType" } } ], @@ -19989,8 +19992,17 @@ } ], "type": { - "type": "literal", - "value": "sms" + "type": "union", + "types": [ + { + "type": "literal", + "value": "sms" + }, + { + "type": "literal", + "value": "phone_change" + } + ] } }, { @@ -48875,7 +48887,7 @@ "originalName": "", "children": [ { - "id": 456, + "id": 466, "name": "\"RealtimeChannel\"", "kind": 1, "kindString": "Module", @@ -48885,7 +48897,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/RealtimeChannel.ts", "children": [ { - "id": 457, + "id": 467, "name": "RealtimeChannel", "kind": 128, "kindString": "Class", @@ -48894,7 +48906,7 @@ }, "children": [ { - "id": 466, + "id": 476, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -48903,7 +48915,7 @@ }, "signatures": [ { - "id": 473, + "id": 483, "name": "new RealtimeChannel", "kind": 16384, "kindString": "Constructor signature", @@ -48912,7 +48924,7 @@ }, "parameters": [ { - "id": 474, + "id": 484, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -48925,7 +48937,7 @@ } }, { - "id": 475, + "id": 485, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -48935,7 +48947,7 @@ "type": { "type": "reflection", "declaration": { - "id": 476, + "id": 486, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -48944,7 +48956,7 @@ }, "indexSignature": [ { - "id": 477, + "id": 487, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -48953,7 +48965,7 @@ }, "parameters": [ { - "id": 478, + "id": 488, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -48984,7 +48996,7 @@ "defaultValue": "{}" }, { - "id": 479, + "id": 489, "name": "socket", "kind": 32768, "kindString": "Parameter", @@ -48993,14 +49005,14 @@ }, "type": { "type": "reference", - "id": 69, + "id": 74, "name": "RealtimeClient" } } ], "type": { "type": "reference", - "id": 457, + "id": 467, "name": "RealtimeChannel" } } @@ -49014,7 +49026,7 @@ ] }, { - "id": 458, + "id": 468, "name": "bindings", "kind": 1024, "kindString": "Property", @@ -49038,7 +49050,7 @@ "defaultValue": "[]" }, { - "id": 462, + "id": 472, "name": "joinPush", "kind": 1024, "kindString": "Property", @@ -49054,12 +49066,12 @@ ], "type": { "type": "reference", - "id": 297, + "id": 307, "name": "Push" } }, { - "id": 461, + "id": 471, "name": "joinedOnce", "kind": 1024, "kindString": "Property", @@ -49080,7 +49092,7 @@ "defaultValue": "false" }, { - "id": 468, + "id": 478, "name": "params", "kind": 1024, "kindString": "Property", @@ -49099,7 +49111,7 @@ "type": { "type": "reflection", "declaration": { - "id": 469, + "id": 479, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -49108,7 +49120,7 @@ }, "indexSignature": [ { - "id": 470, + "id": 480, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -49117,7 +49129,7 @@ }, "parameters": [ { - "id": 471, + "id": 481, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -49147,7 +49159,7 @@ } }, { - "id": 465, + "id": 475, "name": "presence", "kind": 1024, "kindString": "Property", @@ -49163,12 +49175,12 @@ ], "type": { "type": "reference", - "id": 363, + "id": 373, "name": "RealtimePresence" } }, { - "id": 464, + "id": 474, "name": "pushBuffer", "kind": 1024, "kindString": "Property", @@ -49186,14 +49198,14 @@ "type": "array", "elementType": { "type": "reference", - "id": 297, + "id": 307, "name": "Push" } }, "defaultValue": "[]" }, { - "id": 463, + "id": 473, "name": "rejoinTimer", "kind": 1024, "kindString": "Property", @@ -49209,12 +49221,12 @@ ], "type": { "type": "reference", - "id": 30, + "id": 35, "name": "Timer" } }, { - "id": 472, + "id": 482, "name": "socket", "kind": 1024, "kindString": "Property", @@ -49232,12 +49244,12 @@ ], "type": { "type": "reference", - "id": 69, + "id": 74, "name": "RealtimeClient" } }, { - "id": 460, + "id": 470, "name": "state", "kind": 1024, "kindString": "Property", @@ -49259,7 +49271,7 @@ "defaultValue": "CHANNEL_STATES.closed" }, { - "id": 459, + "id": 469, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -49279,7 +49291,7 @@ } }, { - "id": 467, + "id": 477, "name": "topic", "kind": 1024, "kindString": "Property", @@ -49301,7 +49313,7 @@ } }, { - "id": 508, + "id": 518, "name": "canPush", "kind": 2048, "kindString": "Method", @@ -49310,13 +49322,16 @@ }, "signatures": [ { - "id": 509, + "id": 519, "name": "canPush", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, + "comment": { + "shortText": "Returns `true` if the socket is connected and the channel has been joined." + }, "type": { "type": "intrinsic", "name": "boolean" @@ -49326,13 +49341,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 136, + "line": 145, "character": 9 } ] }, { - "id": 552, + "id": 562, "name": "isClosed", "kind": 2048, "kindString": "Method", @@ -49341,7 +49356,7 @@ }, "signatures": [ { - "id": 553, + "id": 563, "name": "isClosed", "kind": 4096, "kindString": "Call signature", @@ -49357,13 +49372,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 249, + "line": 258, "character": 10 } ] }, { - "id": 554, + "id": 564, "name": "isErrored", "kind": 2048, "kindString": "Method", @@ -49372,7 +49387,7 @@ }, "signatures": [ { - "id": 555, + "id": 565, "name": "isErrored", "kind": 4096, "kindString": "Call signature", @@ -49385,99 +49400,6 @@ } } ], - "sources": [ - { - "fileName": "RealtimeChannel.ts", - "line": 252, - "character": 11 - } - ] - }, - { - "id": 556, - "name": "isJoined", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 557, - "name": "isJoined", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "sources": [ - { - "fileName": "RealtimeChannel.ts", - "line": 255, - "character": 10 - } - ] - }, - { - "id": 558, - "name": "isJoining", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 559, - "name": "isJoining", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "sources": [ - { - "fileName": "RealtimeChannel.ts", - "line": 258, - "character": 11 - } - ] - }, - { - "id": 560, - "name": "isLeaving", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 561, - "name": "isLeaving", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], "sources": [ { "fileName": "RealtimeChannel.ts", @@ -49487,7 +49409,100 @@ ] }, { - "id": 529, + "id": 566, + "name": "isJoined", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 567, + "name": "isJoined", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "sources": [ + { + "fileName": "RealtimeChannel.ts", + "line": 264, + "character": 10 + } + ] + }, + { + "id": 568, + "name": "isJoining", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 569, + "name": "isJoining", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "sources": [ + { + "fileName": "RealtimeChannel.ts", + "line": 267, + "character": 11 + } + ] + }, + { + "id": 570, + "name": "isLeaving", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 571, + "name": "isLeaving", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "sources": [ + { + "fileName": "RealtimeChannel.ts", + "line": 270, + "character": 11 + } + ] + }, + { + "id": 539, "name": "isMember", "kind": 2048, "kindString": "Method", @@ -49496,7 +49511,7 @@ }, "signatures": [ { - "id": 530, + "id": 540, "name": "isMember", "kind": 4096, "kindString": "Call signature", @@ -49505,7 +49520,7 @@ }, "parameters": [ { - "id": 531, + "id": 541, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -49527,13 +49542,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 197, + "line": 206, "character": 10 } ] }, { - "id": 532, + "id": 542, "name": "joinRef", "kind": 2048, "kindString": "Method", @@ -49542,7 +49557,7 @@ }, "signatures": [ { - "id": 533, + "id": 543, "name": "joinRef", "kind": 4096, "kindString": "Call signature", @@ -49558,13 +49573,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 201, + "line": 210, "character": 9 } ] }, { - "id": 480, + "id": 490, "name": "list", "kind": 2048, "kindString": "Method", @@ -49573,7 +49588,7 @@ }, "signatures": [ { - "id": 481, + "id": 491, "name": "list", "kind": 4096, "kindString": "Call signature", @@ -49598,7 +49613,7 @@ ] }, { - "id": 501, + "id": 511, "name": "off", "kind": 2048, "kindString": "Method", @@ -49607,7 +49622,7 @@ }, "signatures": [ { - "id": 502, + "id": 512, "name": "off", "kind": 4096, "kindString": "Call signature", @@ -49616,7 +49631,7 @@ }, "parameters": [ { - "id": 503, + "id": 513, "name": "type", "kind": 32768, "kindString": "Parameter", @@ -49629,7 +49644,7 @@ } }, { - "id": 504, + "id": 514, "name": "eventFilter", "kind": 32768, "kindString": "Parameter", @@ -49639,7 +49654,7 @@ "type": { "type": "reflection", "declaration": { - "id": 505, + "id": 515, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -49648,7 +49663,7 @@ }, "indexSignature": [ { - "id": 506, + "id": 516, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -49657,7 +49672,7 @@ }, "parameters": [ { - "id": 507, + "id": 517, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -49679,7 +49694,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 127, + "line": 133, "character": 32 } ] @@ -49696,13 +49711,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 127, + "line": 133, "character": 5 } ] }, { - "id": 493, + "id": 503, "name": "on", "kind": 2048, "kindString": "Method", @@ -49711,7 +49726,7 @@ }, "signatures": [ { - "id": 494, + "id": 504, "name": "on", "kind": 4096, "kindString": "Call signature", @@ -49720,7 +49735,7 @@ }, "parameters": [ { - "id": 495, + "id": 505, "name": "type", "kind": 32768, "kindString": "Parameter", @@ -49733,7 +49748,7 @@ } }, { - "id": 496, + "id": 506, "name": "eventFilter", "kind": 32768, "kindString": "Parameter", @@ -49751,7 +49766,7 @@ { "type": "reflection", "declaration": { - "id": 497, + "id": 507, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -49760,7 +49775,7 @@ }, "indexSignature": [ { - "id": 498, + "id": 508, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -49769,7 +49784,7 @@ }, "parameters": [ { - "id": 499, + "id": 509, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -49794,7 +49809,7 @@ } }, { - "id": 500, + "id": 510, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -49817,13 +49832,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 119, + "line": 125, "character": 4 } ] }, { - "id": 487, + "id": 497, "name": "onClose", "kind": 2048, "kindString": "Method", @@ -49832,16 +49847,19 @@ }, "signatures": [ { - "id": 488, + "id": 498, "name": "onClose", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, + "comment": { + "shortText": "Registers a callback that will be executed when the channel closes." + }, "parameters": [ { - "id": 489, + "id": 499, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -49863,13 +49881,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 111, + "line": 114, "character": 9 } ] }, { - "id": 490, + "id": 500, "name": "onError", "kind": 2048, "kindString": "Method", @@ -49878,16 +49896,19 @@ }, "signatures": [ { - "id": 491, + "id": 501, "name": "onError", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, + "comment": { + "shortText": "Registers a callback that will be executed when the channel encounteres an error." + }, "parameters": [ { - "id": 492, + "id": 502, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -49909,13 +49930,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 115, + "line": 121, "character": 9 } ] }, { - "id": 524, + "id": 534, "name": "onMessage", "kind": 2048, "kindString": "Method", @@ -49924,7 +49945,7 @@ }, "signatures": [ { - "id": 525, + "id": 535, "name": "onMessage", "kind": 4096, "kindString": "Call signature", @@ -49937,7 +49958,7 @@ }, "parameters": [ { - "id": 526, + "id": 536, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -49950,7 +49971,7 @@ } }, { - "id": 527, + "id": 537, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -49963,7 +49984,7 @@ } }, { - "id": 528, + "id": 538, "name": "ref", "kind": 32768, "kindString": "Parameter", @@ -49995,13 +50016,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 193, + "line": 202, "character": 11 } ] }, { - "id": 510, + "id": 520, "name": "push", "kind": 2048, "kindString": "Method", @@ -50010,7 +50031,7 @@ }, "signatures": [ { - "id": 511, + "id": 521, "name": "push", "kind": 4096, "kindString": "Call signature", @@ -50019,7 +50040,7 @@ }, "parameters": [ { - "id": 512, + "id": 522, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -50033,7 +50054,7 @@ } }, { - "id": 513, + "id": 523, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -50046,7 +50067,7 @@ } }, { - "id": 514, + "id": 524, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -50062,7 +50083,7 @@ ], "type": { "type": "reference", - "id": 297, + "id": 307, "name": "Push" } } @@ -50070,13 +50091,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 140, + "line": 149, "character": 6 } ] }, { - "id": 534, + "id": 544, "name": "rejoin", "kind": 2048, "kindString": "Method", @@ -50085,7 +50106,7 @@ }, "signatures": [ { - "id": 535, + "id": 545, "name": "rejoin", "kind": 4096, "kindString": "Call signature", @@ -50094,7 +50115,7 @@ }, "parameters": [ { - "id": 536, + "id": 546, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -50117,13 +50138,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 205, + "line": 214, "character": 8 } ] }, { - "id": 482, + "id": 492, "name": "rejoinUntilConnected", "kind": 2048, "kindString": "Method", @@ -50132,7 +50153,7 @@ }, "signatures": [ { - "id": 483, + "id": 493, "name": "rejoinUntilConnected", "kind": 4096, "kindString": "Call signature", @@ -50154,7 +50175,7 @@ ] }, { - "id": 549, + "id": 559, "name": "replyEventName", "kind": 2048, "kindString": "Method", @@ -50163,7 +50184,7 @@ }, "signatures": [ { - "id": 550, + "id": 560, "name": "replyEventName", "kind": 4096, "kindString": "Call signature", @@ -50172,7 +50193,7 @@ }, "parameters": [ { - "id": 551, + "id": 561, "name": "ref", "kind": 32768, "kindString": "Parameter", @@ -50194,13 +50215,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 245, + "line": 254, "character": 16 } ] }, { - "id": 542, + "id": 552, "name": "send", "kind": 2048, "kindString": "Method", @@ -50209,7 +50230,7 @@ }, "signatures": [ { - "id": 543, + "id": 553, "name": "send", "kind": 4096, "kindString": "Call signature", @@ -50218,7 +50239,7 @@ }, "parameters": [ { - "id": 544, + "id": 554, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -50228,7 +50249,7 @@ "type": { "type": "reflection", "declaration": { - "id": 545, + "id": 555, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -50237,7 +50258,7 @@ }, "indexSignature": [ { - "id": 547, + "id": 557, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -50246,7 +50267,7 @@ }, "parameters": [ { - "id": 548, + "id": 558, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -50267,7 +50288,7 @@ ], "children": [ { - "id": 546, + "id": 556, "name": "type", "kind": 32, "kindString": "Variable", @@ -50277,7 +50298,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 236, + "line": 245, "character": 22 } ], @@ -50292,14 +50313,14 @@ "title": "Variables", "kind": 32, "children": [ - 546 + 556 ] } ], "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 236, + "line": 245, "character": 15 } ] @@ -50322,13 +50343,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 236, + "line": 245, "character": 6 } ] }, { - "id": 484, + "id": 494, "name": "subscribe", "kind": 2048, "kindString": "Method", @@ -50337,7 +50358,7 @@ }, "signatures": [ { - "id": 485, + "id": 495, "name": "subscribe", "kind": 4096, "kindString": "Call signature", @@ -50346,7 +50367,7 @@ }, "parameters": [ { - "id": 486, + "id": 496, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -50362,7 +50383,7 @@ ], "type": { "type": "reference", - "id": 297, + "id": 307, "name": "Push" } } @@ -50376,7 +50397,7 @@ ] }, { - "id": 537, + "id": 547, "name": "trigger", "kind": 2048, "kindString": "Method", @@ -50385,7 +50406,7 @@ }, "signatures": [ { - "id": 538, + "id": 548, "name": "trigger", "kind": 4096, "kindString": "Call signature", @@ -50394,7 +50415,7 @@ }, "parameters": [ { - "id": 539, + "id": 549, "name": "type", "kind": 32768, "kindString": "Parameter", @@ -50407,7 +50428,7 @@ } }, { - "id": 540, + "id": 550, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -50421,7 +50442,7 @@ } }, { - "id": 541, + "id": 551, "name": "ref", "kind": 32768, "kindString": "Parameter", @@ -50453,13 +50474,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 214, + "line": 223, "character": 9 } ] }, { - "id": 521, + "id": 531, "name": "unsubscribe", "kind": 2048, "kindString": "Method", @@ -50468,7 +50489,7 @@ }, "signatures": [ { - "id": 522, + "id": 532, "name": "unsubscribe", "kind": 4096, "kindString": "Call signature", @@ -50476,12 +50497,12 @@ "isExported": true }, "comment": { - "shortText": "Leaves the channel", + "shortText": "Leaves the channel.", "text": "Unsubscribes from server events, and instructs channel to terminate on server.\nTriggers onClose() hooks.\n\nTo receive leave acknowledgements, use the a `receive` hook to bind to the server ack, ie:\nchannel.unsubscribe().receive(\"ok\", () => alert(\"left!\") )\n" }, "parameters": [ { - "id": 523, + "id": 533, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -50497,7 +50518,7 @@ ], "type": { "type": "reference", - "id": 297, + "id": 307, "name": "Push" } } @@ -50505,13 +50526,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 168, + "line": 177, "character": 13 } ] }, { - "id": 515, + "id": 525, "name": "updateJoinPayload", "kind": 2048, "kindString": "Method", @@ -50520,7 +50541,7 @@ }, "signatures": [ { - "id": 516, + "id": 526, "name": "updateJoinPayload", "kind": 4096, "kindString": "Call signature", @@ -50529,7 +50550,7 @@ }, "parameters": [ { - "id": 517, + "id": 527, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -50539,7 +50560,7 @@ "type": { "type": "reflection", "declaration": { - "id": 518, + "id": 528, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -50548,7 +50569,7 @@ }, "indexSignature": [ { - "id": 519, + "id": 529, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -50557,7 +50578,7 @@ }, "parameters": [ { - "id": 520, + "id": 530, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -50579,7 +50600,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 155, + "line": 164, "character": 28 } ] @@ -50596,13 +50617,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 155, + "line": 164, "character": 19 } ] }, { - "id": 562, + "id": 572, "name": "isEqual", "kind": 2048, "kindString": "Method", @@ -50613,7 +50634,7 @@ }, "signatures": [ { - "id": 563, + "id": 573, "name": "isEqual", "kind": 4096, "kindString": "Call signature", @@ -50622,7 +50643,7 @@ }, "parameters": [ { - "id": 564, + "id": 574, "name": "obj1", "kind": 32768, "kindString": "Parameter", @@ -50632,7 +50653,7 @@ "type": { "type": "reflection", "declaration": { - "id": 565, + "id": 575, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -50641,7 +50662,7 @@ }, "indexSignature": [ { - "id": 566, + "id": 576, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -50650,7 +50671,7 @@ }, "parameters": [ { - "id": 567, + "id": 577, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -50672,7 +50693,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 266, + "line": 275, "character": 9 } ] @@ -50680,7 +50701,7 @@ } }, { - "id": 568, + "id": 578, "name": "obj2", "kind": 32768, "kindString": "Parameter", @@ -50690,7 +50711,7 @@ "type": { "type": "reflection", "declaration": { - "id": 569, + "id": 579, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -50699,7 +50720,7 @@ }, "indexSignature": [ { - "id": 570, + "id": 580, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -50708,7 +50729,7 @@ }, "parameters": [ { - "id": 571, + "id": 581, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -50730,7 +50751,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 267, + "line": 276, "character": 9 } ] @@ -50747,7 +50768,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 265, + "line": 274, "character": 24 } ] @@ -50758,54 +50779,54 @@ "title": "Constructors", "kind": 512, "children": [ - 466 + 476 ] }, { "title": "Properties", "kind": 1024, "children": [ - 458, - 462, - 461, 468, - 465, - 464, - 463, 472, - 460, - 459, - 467 + 471, + 478, + 475, + 474, + 473, + 482, + 470, + 469, + 477 ] }, { "title": "Methods", "kind": 2048, "children": [ - 508, - 552, - 554, - 556, - 558, - 560, - 529, - 532, - 480, - 501, - 493, - 487, - 490, - 524, - 510, - 534, - 482, - 549, + 518, + 562, + 564, + 566, + 568, + 570, + 539, 542, - 484, - 537, - 521, - 515, - 562 + 490, + 511, + 503, + 497, + 500, + 534, + 520, + 544, + 492, + 559, + 552, + 494, + 547, + 531, + 525, + 572 ] } ], @@ -50823,7 +50844,7 @@ "title": "Classes", "kind": 128, "children": [ - 457 + 467 ] } ], @@ -50836,7 +50857,7 @@ ] }, { - "id": 68, + "id": 73, "name": "\"RealtimeClient\"", "kind": 1, "kindString": "Module", @@ -50846,7 +50867,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/RealtimeClient.ts", "children": [ { - "id": 69, + "id": 74, "name": "RealtimeClient", "kind": 128, "kindString": "Class", @@ -50855,7 +50876,7 @@ }, "children": [ { - "id": 101, + "id": 106, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -50863,11 +50884,11 @@ "isExported": true }, "comment": { - "shortText": "Initializes the Socket" + "shortText": "Initializes the Socket." }, "signatures": [ { - "id": 102, + "id": 107, "name": "new RealtimeClient", "kind": 16384, "kindString": "Constructor signature", @@ -50875,11 +50896,11 @@ "isExported": true }, "comment": { - "shortText": "Initializes the Socket" + "shortText": "Initializes the Socket." }, "parameters": [ { - "id": 103, + "id": 108, "name": "endPoint", "kind": 32768, "kindString": "Parameter", @@ -50895,7 +50916,7 @@ } }, { - "id": 104, + "id": 109, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -50905,14 +50926,14 @@ }, "type": { "type": "reference", - "id": 182, + "id": 186, "name": "Options" } } ], "type": { "type": "reference", - "id": 69, + "id": 74, "name": "RealtimeClient" } } @@ -50920,13 +50941,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 68, + "line": 75, "character": 3 } ] }, { - "id": 70, + "id": 75, "name": "accessToken", "kind": 1024, "kindString": "Property", @@ -50936,7 +50957,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 38, + "line": 45, "character": 13 } ], @@ -50956,7 +50977,7 @@ "defaultValue": "null" }, { - "id": 71, + "id": 76, "name": "channels", "kind": 1024, "kindString": "Property", @@ -50966,7 +50987,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 39, + "line": 46, "character": 10 } ], @@ -50977,12 +50998,12 @@ "types": [ { "type": "reference", - "id": 209, + "id": 219, "name": "RealtimeSubscription" }, { "type": "reference", - "id": 457, + "id": 467, "name": "RealtimeChannel" } ] @@ -50991,7 +51012,7 @@ "defaultValue": "[]" }, { - "id": 93, + "id": 98, "name": "conn", "kind": 1024, "kindString": "Property", @@ -51001,7 +51022,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 55, + "line": 62, "character": 6 } ], @@ -51021,7 +51042,7 @@ "defaultValue": "null" }, { - "id": 91, + "id": 96, "name": "decode", "kind": 1024, "kindString": "Property", @@ -51031,7 +51052,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 53, + "line": 60, "character": 8 } ], @@ -51041,7 +51062,7 @@ } }, { - "id": 90, + "id": 95, "name": "encode", "kind": 1024, "kindString": "Property", @@ -51051,7 +51072,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 52, + "line": 59, "character": 8 } ], @@ -51061,7 +51082,7 @@ } }, { - "id": 72, + "id": 77, "name": "endPoint", "kind": 1024, "kindString": "Property", @@ -51071,7 +51092,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 40, + "line": 47, "character": 10 } ], @@ -51082,7 +51103,7 @@ "defaultValue": "\"\"" }, { - "id": 73, + "id": 78, "name": "headers", "kind": 1024, "kindString": "Property", @@ -51093,7 +51114,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 41, + "line": 48, "character": 9 } ], @@ -51107,7 +51128,7 @@ { "type": "reflection", "declaration": { - "id": 74, + "id": 79, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -51116,7 +51137,7 @@ }, "indexSignature": [ { - "id": 75, + "id": 80, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -51125,7 +51146,7 @@ }, "parameters": [ { - "id": 76, + "id": 81, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -51151,7 +51172,7 @@ "defaultValue": "DEFAULT_HEADERS" }, { - "id": 83, + "id": 88, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -51161,7 +51182,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 45, + "line": 52, "character": 21 } ], @@ -51172,7 +51193,7 @@ "defaultValue": "30000" }, { - "id": 85, + "id": 90, "name": "heartbeatTimer", "kind": 1024, "kindString": "Property", @@ -51182,7 +51203,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 47, + "line": 54, "character": 16 } ], @@ -51211,7 +51232,7 @@ "defaultValue": "undefined" }, { - "id": 89, + "id": 94, "name": "logger", "kind": 1024, "kindString": "Property", @@ -51221,7 +51242,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 51, + "line": 58, "character": 8 } ], @@ -51232,7 +51253,7 @@ "defaultValue": "noop" }, { - "id": 84, + "id": 89, "name": "longpollerTimeout", "kind": 1024, "kindString": "Property", @@ -51242,7 +51263,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 46, + "line": 53, "character": 19 } ], @@ -51253,7 +51274,7 @@ "defaultValue": "20000" }, { - "id": 77, + "id": 82, "name": "params", "kind": 1024, "kindString": "Property", @@ -51264,7 +51285,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 42, + "line": 49, "character": 8 } ], @@ -51278,7 +51299,7 @@ { "type": "reflection", "declaration": { - "id": 78, + "id": 83, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -51287,7 +51308,7 @@ }, "indexSignature": [ { - "id": 79, + "id": 84, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -51296,7 +51317,7 @@ }, "parameters": [ { - "id": 80, + "id": 85, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -51321,7 +51342,7 @@ } }, { - "id": 86, + "id": 91, "name": "pendingHeartbeatRef", "kind": 1024, "kindString": "Property", @@ -51331,7 +51352,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 48, + "line": 55, "character": 21 } ], @@ -51351,7 +51372,7 @@ "defaultValue": "null" }, { - "id": 92, + "id": 97, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -51361,7 +51382,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 54, + "line": 61, "character": 18 } ], @@ -51371,7 +51392,7 @@ } }, { - "id": 88, + "id": 93, "name": "reconnectTimer", "kind": 1024, "kindString": "Property", @@ -51381,18 +51402,18 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 50, + "line": 57, "character": 16 } ], "type": { "type": "reference", - "id": 30, + "id": 35, "name": "Timer" } }, { - "id": 87, + "id": 92, "name": "ref", "kind": 1024, "kindString": "Property", @@ -51402,7 +51423,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 49, + "line": 56, "character": 5 } ], @@ -51413,7 +51434,7 @@ "defaultValue": "0" }, { - "id": 94, + "id": 99, "name": "sendBuffer", "kind": 1024, "kindString": "Property", @@ -51423,7 +51444,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 56, + "line": 63, "character": 12 } ], @@ -51437,7 +51458,7 @@ "defaultValue": "[]" }, { - "id": 95, + "id": 100, "name": "serializer", "kind": 1024, "kindString": "Property", @@ -51447,19 +51468,19 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 57, + "line": 64, "character": 12 } ], "type": { "type": "reference", - "id": 44, + "id": 49, "name": "Serializer" }, "defaultValue": "new Serializer()" }, { - "id": 81, + "id": 86, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -51469,7 +51490,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 43, + "line": 50, "character": 9 } ], @@ -51480,7 +51501,7 @@ "defaultValue": "DEFAULT_TIMEOUT" }, { - "id": 82, + "id": 87, "name": "transport", "kind": 1024, "kindString": "Property", @@ -51490,7 +51511,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 44, + "line": 51, "character": 11 } ], @@ -51501,7 +51522,7 @@ "defaultValue": "w3cwebsocket" }, { - "id": 171, + "id": 175, "name": "_appendParams", "kind": 2048, "kindString": "Method", @@ -51511,7 +51532,7 @@ }, "signatures": [ { - "id": 172, + "id": 176, "name": "_appendParams", "kind": 4096, "kindString": "Call signature", @@ -51520,7 +51541,7 @@ }, "parameters": [ { - "id": 173, + "id": 177, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -51533,7 +51554,7 @@ } }, { - "id": 174, + "id": 178, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -51543,7 +51564,7 @@ "type": { "type": "reflection", "declaration": { - "id": 175, + "id": 179, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -51552,7 +51573,7 @@ }, "indexSignature": [ { - "id": 176, + "id": 180, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -51561,7 +51582,7 @@ }, "parameters": [ { - "id": 177, + "id": 181, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -51583,8 +51604,8 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 422, - "character": 44 + "line": 444, + "character": 11 } ] } @@ -51600,13 +51621,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 422, + "line": 442, "character": 23 } ] }, { - "id": 178, + "id": 182, "name": "_flushSendBuffer", "kind": 2048, "kindString": "Method", @@ -51616,7 +51637,7 @@ }, "signatures": [ { - "id": 179, + "id": 183, "name": "_flushSendBuffer", "kind": 4096, "kindString": "Call signature", @@ -51632,13 +51653,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 432, + "line": 455, "character": 26 } ] }, { - "id": 163, + "id": 167, "name": "_onConnClose", "kind": 2048, "kindString": "Method", @@ -51648,7 +51669,7 @@ }, "signatures": [ { - "id": 164, + "id": 168, "name": "_onConnClose", "kind": 4096, "kindString": "Call signature", @@ -51657,7 +51678,7 @@ }, "parameters": [ { - "id": 165, + "id": 169, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -51679,13 +51700,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 402, + "line": 422, "character": 22 } ] }, { - "id": 166, + "id": 170, "name": "_onConnError", "kind": 2048, "kindString": "Method", @@ -51695,7 +51716,7 @@ }, "signatures": [ { - "id": 167, + "id": 171, "name": "_onConnError", "kind": 4096, "kindString": "Call signature", @@ -51704,7 +51725,7 @@ }, "parameters": [ { - "id": 168, + "id": 172, "name": "error", "kind": 32768, "kindString": "Parameter", @@ -51726,13 +51747,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 410, + "line": 430, "character": 22 } ] }, { - "id": 161, + "id": 165, "name": "_onConnOpen", "kind": 2048, "kindString": "Method", @@ -51742,7 +51763,7 @@ }, "signatures": [ { - "id": 162, + "id": 166, "name": "_onConnOpen", "kind": 4096, "kindString": "Call signature", @@ -51758,13 +51779,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 390, + "line": 410, "character": 21 } ] }, { - "id": 180, + "id": 184, "name": "_sendHeartbeat", "kind": 2048, "kindString": "Method", @@ -51774,7 +51795,7 @@ }, "signatures": [ { - "id": 181, + "id": 185, "name": "_sendHeartbeat", "kind": 4096, "kindString": "Call signature", @@ -51790,13 +51811,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 439, + "line": 462, "character": 24 } ] }, { - "id": 169, + "id": 173, "name": "_triggerChanError", "kind": 2048, "kindString": "Method", @@ -51806,7 +51827,7 @@ }, "signatures": [ { - "id": 170, + "id": 174, "name": "_triggerChanError", "kind": 4096, "kindString": "Call signature", @@ -51822,13 +51843,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 416, + "line": 436, "character": 27 } ] }, { - "id": 138, + "id": 143, "name": "channel", "kind": 2048, "kindString": "Method", @@ -51837,7 +51858,7 @@ }, "signatures": [ { - "id": 139, + "id": 144, "name": "channel", "kind": 4096, "kindString": "Call signature", @@ -51846,7 +51867,7 @@ }, "parameters": [ { - "id": 140, + "id": 145, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -51859,7 +51880,7 @@ } }, { - "id": 141, + "id": 146, "name": "chanParams", "kind": 32768, "kindString": "Parameter", @@ -51867,53 +51888,9 @@ "isExported": true }, "type": { - "type": "reflection", - "declaration": { - "id": 142, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "indexSignature": [ - { - "id": 143, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 144, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 255, - "character": 15 - } - ] - } + "type": "reference", + "id": 210, + "name": "ChannelParams" }, "defaultValue": "{ isNewVersion: false }" } @@ -51923,13 +51900,13 @@ "types": [ { "type": "reference", - "id": 209, - "name": "RealtimeSubscription" + "id": 467, + "name": "RealtimeChannel" }, { "type": "reference", - "id": 457, - "name": "RealtimeChannel" + "id": 219, + "name": "RealtimeSubscription" } ] } @@ -51938,13 +51915,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 253, + "line": 266, "character": 9 } ] }, { - "id": 105, + "id": 110, "name": "connect", "kind": 2048, "kindString": "Method", @@ -51953,7 +51930,7 @@ }, "signatures": [ { - "id": 106, + "id": 111, "name": "connect", "kind": 4096, "kindString": "Call signature", @@ -51961,7 +51938,7 @@ "isExported": true }, "comment": { - "shortText": "Connects the socket." + "shortText": "Connects the socket, unless already connected." }, "type": { "type": "intrinsic", @@ -51972,13 +51949,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 120, + "line": 127, "character": 9 } ] }, { - "id": 131, + "id": 136, "name": "connectionState", "kind": 2048, "kindString": "Method", @@ -51987,7 +51964,7 @@ }, "signatures": [ { - "id": 132, + "id": 137, "name": "connectionState", "kind": 4096, "kindString": "Call signature", @@ -51998,38 +51975,22 @@ "shortText": "Returns the current state of the socket." }, "type": { - "type": "union", - "types": [ - { - "type": "stringLiteral", - "value": "connecting" - }, - { - "type": "stringLiteral", - "value": "open" - }, - { - "type": "stringLiteral", - "value": "closing" - }, - { - "type": "stringLiteral", - "value": "closed" - } - ] + "type": "reference", + "id": 24, + "name": "CONNECTION_STATE" } } ], "sources": [ { "fileName": "RealtimeClient.ts", - "line": 221, + "line": 234, "character": 17 } ] }, { - "id": 107, + "id": 112, "name": "disconnect", "kind": 2048, "kindString": "Method", @@ -52038,7 +51999,7 @@ }, "signatures": [ { - "id": 108, + "id": 113, "name": "disconnect", "kind": 4096, "kindString": "Call signature", @@ -52050,7 +52011,7 @@ }, "parameters": [ { - "id": 109, + "id": 114, "name": "code", "kind": 32768, "kindString": "Parameter", @@ -52076,7 +52037,7 @@ } }, { - "id": 110, + "id": 115, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -52108,7 +52069,7 @@ { "type": "reflection", "declaration": { - "id": 111, + "id": 116, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -52117,7 +52078,7 @@ }, "children": [ { - "id": 113, + "id": 118, "name": "data", "kind": 32, "kindString": "Variable", @@ -52127,7 +52088,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 145, + "line": 152, "character": 40 } ], @@ -52137,7 +52098,7 @@ } }, { - "id": 112, + "id": 117, "name": "error", "kind": 32, "kindString": "Variable", @@ -52147,7 +52108,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 145, + "line": 152, "character": 20 } ], @@ -52171,15 +52132,15 @@ "title": "Variables", "kind": 32, "children": [ - 113, - 112 + 118, + 117 ] } ], "sources": [ { "fileName": "RealtimeClient.ts", - "line": 145, + "line": 152, "character": 13 } ] @@ -52193,13 +52154,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 142, + "line": 149, "character": 12 } ] }, { - "id": 151, + "id": 155, "name": "endPointURL", "kind": 2048, "kindString": "Method", @@ -52208,7 +52169,7 @@ }, "signatures": [ { - "id": 152, + "id": 156, "name": "endPointURL", "kind": 4096, "kindString": "Call signature", @@ -52227,13 +52188,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 338, + "line": 359, "character": 13 } ] }, { - "id": 133, + "id": 138, "name": "isConnected", "kind": 2048, "kindString": "Method", @@ -52242,7 +52203,7 @@ }, "signatures": [ { - "id": 134, + "id": 139, "name": "isConnected", "kind": 4096, "kindString": "Call signature", @@ -52261,13 +52222,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 237, + "line": 250, "character": 13 } ] }, { - "id": 158, + "id": 162, "name": "leaveOpenTopic", "kind": 2048, "kindString": "Method", @@ -52276,16 +52237,19 @@ }, "signatures": [ { - "id": 159, + "id": 163, "name": "leaveOpenTopic", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, + "comment": { + "shortText": "Unsubscribe from channels with the specified topic." + }, "parameters": [ { - "id": 160, + "id": 164, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -52307,13 +52271,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 380, + "line": 400, "character": 16 } ] }, { - "id": 114, + "id": 119, "name": "log", "kind": 2048, "kindString": "Method", @@ -52322,7 +52286,7 @@ }, "signatures": [ { - "id": 115, + "id": 120, "name": "log", "kind": 4096, "kindString": "Call signature", @@ -52330,11 +52294,12 @@ "isExported": true }, "comment": { - "shortText": "Logs the message. Override `this.logger` for specialized logging." + "shortText": "Logs the message.", + "text": "For customized logging, `this.logger` can be overriden.\n" }, "parameters": [ { - "id": 116, + "id": 121, "name": "kind", "kind": 32768, "kindString": "Parameter", @@ -52347,7 +52312,7 @@ } }, { - "id": 117, + "id": 122, "name": "msg", "kind": 32768, "kindString": "Parameter", @@ -52360,7 +52325,7 @@ } }, { - "id": 118, + "id": 123, "name": "data", "kind": 32768, "kindString": "Parameter", @@ -52383,13 +52348,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 170, + "line": 179, "character": 5 } ] }, { - "id": 153, + "id": 157, "name": "makeRef", "kind": 2048, "kindString": "Method", @@ -52398,7 +52363,7 @@ }, "signatures": [ { - "id": 154, + "id": 158, "name": "makeRef", "kind": 4096, "kindString": "Call signature", @@ -52417,13 +52382,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 348, + "line": 369, "character": 9 } ] }, { - "id": 122, + "id": 127, "name": "onClose", "kind": 2048, "kindString": "Method", @@ -52432,129 +52397,25 @@ }, "signatures": [ { - "id": 123, + "id": 128, "name": "onClose", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, - "comment": { - "shortText": "Registers a callbacks for connection state change events.", - "tags": [ - { - "tag": "example", - "text": "\n socket.onOpen(() => console.log(\"Socket closed.\"))\n" - } - ] - }, - "parameters": [ - { - "id": 124, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "A function to be called when the event occurs.\n" - }, - "type": { - "type": "reference", - "name": "Function" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 192, - "character": 9 - } - ] - }, - { - "id": 148, - "name": "onConnMessage", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 149, - "name": "onConnMessage", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 150, - "name": "rawMessage", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 306, - "character": 15 - } - ] - }, - { - "id": 125, - "name": "onError", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 126, - "name": "onError", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, "comment": { "shortText": "Registers a callback for connection state change events.", "tags": [ { "tag": "example", - "text": "\n socket.onOpen((error) => console.log(\"An error occurred\"))\n" + "text": "\n socket.onOpen(() => console.log(\"Socket closed.\"))\n" } ] }, "parameters": [ { - "id": 127, + "id": 129, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -52585,7 +52446,157 @@ ] }, { - "id": 128, + "id": 150, + "name": "onConnMessage", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 151, + "name": "onConnMessage", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 152, + "name": "rawMessage", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 153, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 154, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 327, + "character": 34 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 154 + ] + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 327, + "character": 27 + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 327, + "character": 15 + } + ] + }, + { + "id": 130, + "name": "onError", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 131, + "name": "onError", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Registers a callback for connection state change events.", + "tags": [ + { + "tag": "example", + "text": "\n socket.onOpen((error) => console.log(\"An error occurred\"))\n" + } + ] + }, + "parameters": [ + { + "id": 132, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A function to be called when the event occurs.\n" + }, + "type": { + "type": "reference", + "name": "Function" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 215, + "character": 9 + } + ] + }, + { + "id": 133, "name": "onMessage", "kind": 2048, "kindString": "Method", @@ -52594,7 +52605,7 @@ }, "signatures": [ { - "id": 129, + "id": 134, "name": "onMessage", "kind": 4096, "kindString": "Call signature", @@ -52612,7 +52623,7 @@ }, "parameters": [ { - "id": 130, + "id": 135, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -52637,13 +52648,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 214, + "line": 227, "character": 11 } ] }, { - "id": 119, + "id": 124, "name": "onOpen", "kind": 2048, "kindString": "Method", @@ -52652,7 +52663,7 @@ }, "signatures": [ { - "id": 120, + "id": 125, "name": "onOpen", "kind": 4096, "kindString": "Call signature", @@ -52670,7 +52681,7 @@ }, "parameters": [ { - "id": 121, + "id": 126, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -52695,13 +52706,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 181, + "line": 191, "character": 8 } ] }, { - "id": 145, + "id": 147, "name": "push", "kind": 2048, "kindString": "Method", @@ -52710,16 +52721,20 @@ }, "signatures": [ { - "id": 146, + "id": 148, "name": "push", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, + "comment": { + "shortText": "Push out a message if the socket is connected.", + "text": "If the socket is not connected, the message gets enqueued within a local buffer, and sent out when a connection is next established.\n" + }, "parameters": [ { - "id": 147, + "id": 149, "name": "data", "kind": 32768, "kindString": "Parameter", @@ -52728,7 +52743,7 @@ }, "type": { "type": "reference", - "id": 200, + "id": 204, "name": "Message" } } @@ -52742,13 +52757,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 291, + "line": 312, "character": 6 } ] }, { - "id": 135, + "id": 140, "name": "remove", "kind": 2048, "kindString": "Method", @@ -52757,7 +52772,7 @@ }, "signatures": [ { - "id": 136, + "id": 141, "name": "remove", "kind": 4096, "kindString": "Call signature", @@ -52769,7 +52784,7 @@ }, "parameters": [ { - "id": 137, + "id": 142, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -52784,12 +52799,12 @@ "types": [ { "type": "reference", - "id": 209, + "id": 219, "name": "RealtimeSubscription" }, { "type": "reference", - "id": 457, + "id": 467, "name": "RealtimeChannel" } ] @@ -52805,13 +52820,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 246, + "line": 259, "character": 8 } ] }, { - "id": 155, + "id": 159, "name": "setAuth", "kind": 2048, "kindString": "Method", @@ -52820,7 +52835,7 @@ }, "signatures": [ { - "id": 156, + "id": 160, "name": "setAuth", "kind": 4096, "kindString": "Call signature", @@ -52832,7 +52847,7 @@ }, "parameters": [ { - "id": 157, + "id": 161, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -52866,13 +52881,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 364, + "line": 385, "character": 9 } ] }, { - "id": 96, + "id": 101, "name": "stateChangeCallbacks", "kind": 2097152, "kindString": "Object literal", @@ -52881,7 +52896,7 @@ }, "children": [ { - "id": 98, + "id": 103, "name": "close", "kind": 32, "kindString": "Variable", @@ -52891,7 +52906,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 65, + "line": 72, "character": 9 } ], @@ -52905,7 +52920,7 @@ "defaultValue": "[]" }, { - "id": 99, + "id": 104, "name": "error", "kind": 32, "kindString": "Variable", @@ -52915,7 +52930,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 66, + "line": 73, "character": 9 } ], @@ -52929,7 +52944,7 @@ "defaultValue": "[]" }, { - "id": 100, + "id": 105, "name": "message", "kind": 32, "kindString": "Variable", @@ -52939,7 +52954,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 67, + "line": 74, "character": 11 } ], @@ -52953,7 +52968,7 @@ "defaultValue": "[]" }, { - "id": 97, + "id": 102, "name": "open", "kind": 32, "kindString": "Variable", @@ -52963,7 +52978,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 64, + "line": 71, "character": 8 } ], @@ -52982,17 +52997,17 @@ "title": "Variables", "kind": 32, "children": [ - 98, - 99, - 100, - 97 + 103, + 104, + 105, + 102 ] } ], "sources": [ { "fileName": "RealtimeClient.ts", - "line": 58, + "line": 65, "character": 22 } ], @@ -53007,83 +53022,218 @@ "title": "Constructors", "kind": 512, "children": [ - 101 + 106 ] }, { "title": "Properties", "kind": 1024, "children": [ - 70, - 71, - 93, - 91, - 90, - 72, - 73, - 83, - 85, - 89, - 84, - 77, - 86, - 92, - 88, - 87, - 94, + 75, + 76, + 98, + 96, 95, - 81, - 82 + 77, + 78, + 88, + 90, + 94, + 89, + 82, + 91, + 97, + 93, + 92, + 99, + 100, + 86, + 87 ] }, { "title": "Methods", "kind": 2048, "children": [ - 171, - 178, - 163, - 166, - 161, - 180, - 169, + 175, + 182, + 167, + 170, + 165, + 184, + 173, + 143, + 110, + 136, + 112, + 155, 138, - 105, - 131, - 107, - 151, - 133, - 158, - 114, - 153, - 122, - 148, - 125, - 128, + 162, 119, - 145, - 135, - 155 + 157, + 127, + 150, + 130, + 133, + 124, + 147, + 140, + 159 ] }, { "title": "Object literals", "kind": 2097152, "children": [ - 96 + 101 ] } ], "sources": [ { "fileName": "RealtimeClient.ts", - "line": 37, + "line": 44, "character": 35 } ] }, { - "id": 200, + "id": 210, + "name": "ChannelParams", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 36, + "character": 18 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 211, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": [ + { + "id": 214, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 215, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "children": [ + { + "id": 212, + "name": "isNewVersion", + "kind": 32, + "kindString": "Variable", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 37, + "character": 14 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "intrinsic", + "name": "true" + } + ] + } + }, + { + "id": 213, + "name": "selfBroadcast", + "kind": 32, + "kindString": "Variable", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 38, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "intrinsic", + "name": "true" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 212, + 213 + ] + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 36, + "character": 20 + } + ] + } + } + }, + { + "id": 204, "name": "Message", "kind": 4194304, "kindString": "Type alias", @@ -53091,25 +53241,79 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 28, + "line": 29, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 201, + "id": 205, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 203, + "id": 207, "name": "event", "kind": 32, "kindString": "Variable", "flags": {}, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 31, + "character": 7 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 208, + "name": "payload", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 32, + "character": 9 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 209, + "name": "ref", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 33, + "character": 5 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 206, + "name": "topic", + "kind": 32, + "kindString": "Variable", + "flags": {}, "sources": [ { "fileName": "RealtimeClient.ts", @@ -53121,60 +53325,6 @@ "type": "intrinsic", "name": "string" } - }, - { - "id": 204, - "name": "payload", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 31, - "character": 9 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 205, - "name": "ref", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 32, - "character": 5 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 202, - "name": "topic", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 29, - "character": 7 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } } ], "groups": [ @@ -53182,17 +53332,17 @@ "title": "Variables", "kind": 32, "children": [ - 203, - 204, - 205, - 202 + 207, + 208, + 209, + 206 ] } ], "sources": [ { "fileName": "RealtimeClient.ts", - "line": 28, + "line": 29, "character": 14 } ] @@ -53200,7 +53350,7 @@ } }, { - "id": 182, + "id": 186, "name": "Options", "kind": 4194304, "kindString": "Type alias", @@ -53210,14 +53360,14 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 16, + "line": 17, "character": 19 } ], "type": { "type": "reflection", "declaration": { - "id": 183, + "id": 187, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -53226,7 +53376,7 @@ }, "children": [ { - "id": 190, + "id": 194, "name": "decode", "kind": 32, "kindString": "Variable", @@ -53234,6 +53384,27 @@ "isExported": true, "isOptional": true }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 24, + "character": 8 + } + ], + "type": { + "type": "reference", + "name": "Function" + } + }, + { + "id": 193, + "name": "encode", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, "sources": [ { "fileName": "RealtimeClient.ts", @@ -53247,28 +53418,7 @@ } }, { - "id": 189, - "name": "encode", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 22, - "character": 8 - } - ], - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 192, + "id": 196, "name": "headers", "kind": 32, "kindString": "Variable", @@ -53276,160 +53426,11 @@ "isExported": true, "isOptional": true }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 25, - "character": 9 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reflection", - "declaration": { - "id": 193, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "indexSignature": [ - { - "id": 194, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 195, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - } - } - ] - } - }, - { - "id": 186, - "name": "heartbeatIntervalMs", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 19, - "character": 21 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - }, - { - "id": 188, - "name": "logger", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 21, - "character": 8 - } - ], - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 187, - "name": "longpollerTimeout", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 20, - "character": 19 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - }, - { - "id": 196, - "name": "params", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, "sources": [ { "fileName": "RealtimeClient.ts", "line": 26, - "character": 8 + "character": 9 } ], "type": { @@ -53484,8 +53485,157 @@ ] } }, + { + "id": 190, + "name": "heartbeatIntervalMs", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 20, + "character": 21 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + }, + { + "id": 192, + "name": "logger", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 22, + "character": 8 + } + ], + "type": { + "type": "reference", + "name": "Function" + } + }, { "id": 191, + "name": "longpollerTimeout", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 21, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + }, + { + "id": 200, + "name": "params", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 27, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reflection", + "declaration": { + "id": 201, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 202, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 203, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + }, + { + "id": 195, "name": "reconnectAfterMs", "kind": 32, "kindString": "Variable", @@ -53496,7 +53646,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 24, + "line": 25, "character": 18 } ], @@ -53506,7 +53656,7 @@ } }, { - "id": 185, + "id": 189, "name": "timeout", "kind": 32, "kindString": "Variable", @@ -53517,7 +53667,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 18, + "line": 19, "character": 9 } ], @@ -53536,7 +53686,7 @@ } }, { - "id": 184, + "id": 188, "name": "transport", "kind": 32, "kindString": "Variable", @@ -53547,7 +53697,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 17, + "line": 18, "character": 11 } ], @@ -53562,23 +53712,23 @@ "title": "Variables", "kind": 32, "children": [ - 190, - 189, - 192, - 186, - 188, - 187, + 194, + 193, 196, + 190, + 192, 191, - 185, - 184 + 200, + 195, + 189, + 188 ] } ], "sources": [ { "fileName": "RealtimeClient.ts", - "line": 16, + "line": 17, "character": 21 } ] @@ -53586,7 +53736,7 @@ } }, { - "id": 206, + "id": 216, "name": "noop", "kind": 64, "kindString": "Function", @@ -53595,7 +53745,7 @@ }, "signatures": [ { - "id": 207, + "id": 217, "name": "noop", "kind": 4096, "kindString": "Call signature", @@ -53609,7 +53759,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 35, + "line": 42, "character": 10 } ] @@ -53620,22 +53770,23 @@ "title": "Classes", "kind": 128, "children": [ - 69 + 74 ] }, { "title": "Type aliases", "kind": 4194304, "children": [ - 200, - 182 + 210, + 204, + 186 ] }, { "title": "Functions", "kind": 64, "children": [ - 206 + 216 ] } ], @@ -53648,7 +53799,7 @@ ] }, { - "id": 362, + "id": 372, "name": "\"RealtimePresence\"", "kind": 1, "kindString": "Module", @@ -53658,7 +53809,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/RealtimePresence.ts", "children": [ { - "id": 363, + "id": 373, "name": "RealtimePresence", "kind": 128, "kindString": "Class", @@ -53667,7 +53818,7 @@ }, "children": [ { - "id": 374, + "id": 384, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -53675,11 +53826,11 @@ "isExported": true }, "comment": { - "shortText": "Initializes the Presence" + "shortText": "Initializes the Presence." }, "signatures": [ { - "id": 376, + "id": 386, "name": "new RealtimePresence", "kind": 16384, "kindString": "Constructor signature", @@ -53687,11 +53838,11 @@ "isExported": true }, "comment": { - "shortText": "Initializes the Presence" + "shortText": "Initializes the Presence." }, "parameters": [ { - "id": 377, + "id": 387, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -53703,12 +53854,12 @@ }, "type": { "type": "reference", - "id": 457, + "id": 467, "name": "RealtimeChannel" } }, { - "id": 378, + "id": 388, "name": "opts", "kind": 32768, "kindString": "Parameter", @@ -53727,7 +53878,7 @@ ], "type": { "type": "reference", - "id": 363, + "id": 373, "name": "RealtimePresence" } } @@ -53741,7 +53892,7 @@ ] }, { - "id": 375, + "id": 385, "name": "channel", "kind": 1024, "kindString": "Property", @@ -53756,18 +53907,18 @@ "sources": [ { "fileName": "RealtimePresence.ts", - "line": 63, + "line": 64, "character": 28 } ], "type": { "type": "reference", - "id": 457, + "id": 467, "name": "RealtimeChannel" } }, { - "id": 366, + "id": 376, "name": "joinRef", "kind": 1024, "kindString": "Property", @@ -53797,7 +53948,7 @@ "defaultValue": "null" }, { - "id": 365, + "id": 375, "name": "pendingDiffs", "kind": 1024, "kindString": "Property", @@ -53815,14 +53966,14 @@ "type": "array", "elementType": { "type": "reference", - "id": 446, + "id": 456, "name": "RawPresenceDiff" } }, "defaultValue": "[]" }, { - "id": 364, + "id": 374, "name": "state", "kind": 1024, "kindString": "Property", @@ -53838,12 +53989,12 @@ ], "type": { "type": "reference", - "id": 429, + "id": 439, "name": "PresenceState" } }, { - "id": 422, + "id": 432, "name": "inPendingSyncState", "kind": 2048, "kindString": "Method", @@ -53853,7 +54004,7 @@ }, "signatures": [ { - "id": 423, + "id": 433, "name": "inPendingSyncState", "kind": 4096, "kindString": "Call signature", @@ -53869,13 +54020,13 @@ "sources": [ { "fileName": "RealtimePresence.ts", - "line": 319, + "line": 323, "character": 28 } ] }, { - "id": 418, + "id": 428, "name": "list", "kind": 2048, "kindString": "Method", @@ -53884,7 +54035,7 @@ }, "signatures": [ { - "id": 419, + "id": 429, "name": "list", "kind": 4096, "kindString": "Call signature", @@ -53893,7 +54044,7 @@ }, "typeParameter": [ { - "id": 420, + "id": 430, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -53904,7 +54055,7 @@ ], "parameters": [ { - "id": 421, + "id": 431, "name": "by", "kind": 32768, "kindString": "Parameter", @@ -53914,7 +54065,7 @@ }, "type": { "type": "reference", - "id": 450, + "id": 460, "typeArguments": [ { "type": "typeParameter", @@ -53945,13 +54096,13 @@ "sources": [ { "fileName": "RealtimePresence.ts", - "line": 315, + "line": 319, "character": 6 } ] }, { - "id": 407, + "id": 417, "name": "onJoin", "kind": 2048, "kindString": "Method", @@ -53960,7 +54111,7 @@ }, "signatures": [ { - "id": 408, + "id": 418, "name": "onJoin", "kind": 4096, "kindString": "Call signature", @@ -53969,7 +54120,7 @@ }, "parameters": [ { - "id": 409, + "id": 419, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -53991,13 +54142,13 @@ "sources": [ { "fileName": "RealtimePresence.ts", - "line": 303, + "line": 307, "character": 8 } ] }, { - "id": 410, + "id": 420, "name": "onLeave", "kind": 2048, "kindString": "Method", @@ -54006,7 +54157,7 @@ }, "signatures": [ { - "id": 411, + "id": 421, "name": "onLeave", "kind": 4096, "kindString": "Call signature", @@ -54015,7 +54166,7 @@ }, "parameters": [ { - "id": 412, + "id": 422, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -54037,13 +54188,13 @@ "sources": [ { "fileName": "RealtimePresence.ts", - "line": 307, + "line": 311, "character": 9 } ] }, { - "id": 413, + "id": 423, "name": "onSync", "kind": 2048, "kindString": "Method", @@ -54052,7 +54203,7 @@ }, "signatures": [ { - "id": 414, + "id": 424, "name": "onSync", "kind": 4096, "kindString": "Call signature", @@ -54061,7 +54212,7 @@ }, "parameters": [ { - "id": 415, + "id": 425, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -54071,7 +54222,7 @@ "type": { "type": "reflection", "declaration": { - "id": 416, + "id": 426, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -54080,7 +54231,7 @@ }, "signatures": [ { - "id": 417, + "id": 427, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -54096,7 +54247,7 @@ "sources": [ { "fileName": "RealtimePresence.ts", - "line": 311, + "line": 315, "character": 18 } ] @@ -54113,13 +54264,13 @@ "sources": [ { "fileName": "RealtimePresence.ts", - "line": 311, + "line": 315, "character": 8 } ] }, { - "id": 404, + "id": 414, "name": "cloneDeep", "kind": 2048, "kindString": "Method", @@ -54130,7 +54281,7 @@ }, "signatures": [ { - "id": 405, + "id": 415, "name": "cloneDeep", "kind": 4096, "kindString": "Call signature", @@ -54139,7 +54290,7 @@ }, "parameters": [ { - "id": 406, + "id": 416, "name": "obj", "kind": 32768, "kindString": "Parameter", @@ -54161,13 +54312,13 @@ "sources": [ { "fileName": "RealtimePresence.ts", - "line": 299, + "line": 303, "character": 26 } ] }, { - "id": 391, + "id": 401, "name": "list", "kind": 2048, "kindString": "Method", @@ -54177,7 +54328,7 @@ }, "signatures": [ { - "id": 392, + "id": 402, "name": "list", "kind": 4096, "kindString": "Call signature", @@ -54189,7 +54340,7 @@ }, "typeParameter": [ { - "id": 393, + "id": 403, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -54200,7 +54351,7 @@ ], "parameters": [ { - "id": 394, + "id": 404, "name": "presences", "kind": 32768, "kindString": "Parameter", @@ -54209,12 +54360,12 @@ }, "type": { "type": "reference", - "id": 429, + "id": 439, "name": "PresenceState" } }, { - "id": 395, + "id": 405, "name": "chooser", "kind": 32768, "kindString": "Parameter", @@ -54226,7 +54377,7 @@ "types": [ { "type": "reference", - "id": 450, + "id": 460, "typeArguments": [ { "type": "typeParameter", @@ -54263,13 +54414,13 @@ "sources": [ { "fileName": "RealtimePresence.ts", - "line": 233, + "line": 237, "character": 13 } ] }, { - "id": 396, + "id": 406, "name": "map", "kind": 2048, "kindString": "Method", @@ -54280,7 +54431,7 @@ }, "signatures": [ { - "id": 397, + "id": 407, "name": "map", "kind": 4096, "kindString": "Call signature", @@ -54289,7 +54440,7 @@ }, "typeParameter": [ { - "id": 398, + "id": 408, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -54300,7 +54451,7 @@ ], "parameters": [ { - "id": 399, + "id": 409, "name": "obj", "kind": 32768, "kindString": "Parameter", @@ -54309,12 +54460,12 @@ }, "type": { "type": "reference", - "id": 429, + "id": 439, "name": "PresenceState" } }, { - "id": 400, + "id": 410, "name": "func", "kind": 32768, "kindString": "Parameter", @@ -54323,7 +54474,7 @@ }, "type": { "type": "reference", - "id": 450, + "id": 460, "typeArguments": [ { "type": "typeParameter", @@ -54354,13 +54505,13 @@ "sources": [ { "fileName": "RealtimePresence.ts", - "line": 246, + "line": 250, "character": 20 } ] }, { - "id": 385, + "id": 395, "name": "syncDiff", "kind": 2048, "kindString": "Method", @@ -54370,7 +54521,7 @@ }, "signatures": [ { - "id": 386, + "id": 396, "name": "syncDiff", "kind": 4096, "kindString": "Call signature", @@ -54378,11 +54529,12 @@ "isExported": true }, "comment": { - "shortText": "Used to sync a diff of presence join and leave\nevents from the server, as they happen. Like `syncState`, `syncDiff`\naccepts optional `onJoin` and `onLeave` callbacks to react to a user\njoining or leaving from a device." + "shortText": "Used to sync a diff of presence join and leave events from the\nserver, as they happen.", + "text": "Like `syncState`, `syncDiff` accepts optional `onJoin` and\n`onLeave` callbacks to react to a user joining or leaving from a\ndevice.\n" }, "parameters": [ { - "id": 387, + "id": 397, "name": "state", "kind": 32768, "kindString": "Parameter", @@ -54391,12 +54543,12 @@ }, "type": { "type": "reference", - "id": 429, + "id": 439, "name": "PresenceState" } }, { - "id": 388, + "id": 398, "name": "diff", "kind": 32768, "kindString": "Parameter", @@ -54408,19 +54560,19 @@ "types": [ { "type": "reference", - "id": 446, + "id": 456, "name": "RawPresenceDiff" }, { "type": "reference", - "id": 433, + "id": 443, "name": "PresenceDiff" } ] } }, { - "id": 389, + "id": 399, "name": "onJoin", "kind": 32768, "kindString": "Parameter", @@ -54433,7 +54585,7 @@ } }, { - "id": 390, + "id": 400, "name": "onLeave", "kind": 32768, "kindString": "Parameter", @@ -54448,7 +54600,7 @@ ], "type": { "type": "reference", - "id": 429, + "id": 439, "name": "PresenceState" } } @@ -54456,13 +54608,13 @@ "sources": [ { "fileName": "RealtimePresence.ts", - "line": 173, + "line": 177, "character": 17 } ] }, { - "id": 379, + "id": 389, "name": "syncState", "kind": 2048, "kindString": "Method", @@ -54472,7 +54624,7 @@ }, "signatures": [ { - "id": 380, + "id": 390, "name": "syncState", "kind": 4096, "kindString": "Call signature", @@ -54480,11 +54632,12 @@ "isExported": true }, "comment": { - "shortText": "Used to sync the list of presences on the server\nwith the client's state. An optional `onJoin` and `onLeave` callback can\nbe provided to react to changes in the client's local presences across\ndisconnects and reconnects with the server." + "shortText": "Used to sync the list of presences on the server with the\nclient's state.", + "text": "An optional `onJoin` and `onLeave` callback can be provided to\nreact to changes in the client's local presences across\ndisconnects and reconnects with the server.\n" }, "parameters": [ { - "id": 381, + "id": 391, "name": "currentState", "kind": 32768, "kindString": "Parameter", @@ -54493,12 +54646,12 @@ }, "type": { "type": "reference", - "id": 429, + "id": 439, "name": "PresenceState" } }, { - "id": 382, + "id": 392, "name": "newState", "kind": 32768, "kindString": "Parameter", @@ -54510,19 +54663,19 @@ "types": [ { "type": "reference", - "id": 437, + "id": 447, "name": "RawPresenceState" }, { "type": "reference", - "id": 429, + "id": 439, "name": "PresenceState" } ] } }, { - "id": 383, + "id": 393, "name": "onJoin", "kind": 32768, "kindString": "Parameter", @@ -54535,7 +54688,7 @@ } }, { - "id": 384, + "id": 394, "name": "onLeave", "kind": 32768, "kindString": "Parameter", @@ -54550,7 +54703,7 @@ ], "type": { "type": "reference", - "id": 429, + "id": 439, "name": "PresenceState" } } @@ -54558,13 +54711,13 @@ "sources": [ { "fileName": "RealtimePresence.ts", - "line": 119, + "line": 122, "character": 18 } ] }, { - "id": 401, + "id": 411, "name": "transformState", "kind": 2048, "kindString": "Method", @@ -54575,7 +54728,7 @@ }, "signatures": [ { - "id": 402, + "id": 412, "name": "transformState", "kind": 4096, "kindString": "Call signature", @@ -54593,7 +54746,7 @@ }, "parameters": [ { - "id": 403, + "id": 413, "name": "state", "kind": 32768, "kindString": "Parameter", @@ -54605,12 +54758,12 @@ "types": [ { "type": "reference", - "id": 437, + "id": 447, "name": "RawPresenceState" }, { "type": "reference", - "id": 429, + "id": 439, "name": "PresenceState" } ] @@ -54619,7 +54772,7 @@ ], "type": { "type": "reference", - "id": 429, + "id": 439, "name": "PresenceState" } } @@ -54627,13 +54780,13 @@ "sources": [ { "fileName": "RealtimePresence.ts", - "line": 274, + "line": 278, "character": 31 } ] }, { - "id": 367, + "id": 377, "name": "caller", "kind": 2097152, "kindString": "Object literal", @@ -54642,7 +54795,7 @@ }, "children": [ { - "id": 368, + "id": 378, "name": "onJoin", "kind": 64, "kindString": "Function", @@ -54651,7 +54804,7 @@ }, "signatures": [ { - "id": 369, + "id": 379, "name": "onJoin", "kind": 4096, "kindString": "Call signature", @@ -54673,7 +54826,7 @@ ] }, { - "id": 370, + "id": 380, "name": "onLeave", "kind": 64, "kindString": "Function", @@ -54682,7 +54835,7 @@ }, "signatures": [ { - "id": 371, + "id": 381, "name": "onLeave", "kind": 4096, "kindString": "Call signature", @@ -54704,7 +54857,7 @@ ] }, { - "id": 372, + "id": 382, "name": "onSync", "kind": 64, "kindString": "Function", @@ -54713,7 +54866,7 @@ }, "signatures": [ { - "id": 373, + "id": 383, "name": "onSync", "kind": 4096, "kindString": "Call signature", @@ -54740,9 +54893,9 @@ "title": "Functions", "kind": 64, "children": [ - 368, - 370, - 372 + 378, + 380, + 382 ] } ], @@ -54764,41 +54917,41 @@ "title": "Constructors", "kind": 512, "children": [ - 374 + 384 ] }, { "title": "Properties", "kind": 1024, "children": [ + 385, + 376, 375, - 366, - 365, - 364 + 374 ] }, { "title": "Methods", "kind": 2048, "children": [ - 422, - 418, - 407, - 410, - 413, - 404, - 391, - 396, - 385, - 379, - 401 + 432, + 428, + 417, + 420, + 423, + 414, + 401, + 406, + 395, + 389, + 411 ] }, { "title": "Object literals", "kind": 2097152, "children": [ - 367 + 377 ] } ], @@ -54811,7 +54964,7 @@ ] }, { - "id": 424, + "id": 434, "name": "Presence", "kind": 4194304, "kindString": "Type alias", @@ -54826,21 +54979,21 @@ "type": { "type": "reflection", "declaration": { - "id": 425, + "id": 435, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": [ { - "id": 427, + "id": 437, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 428, + "id": 438, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -54859,7 +55012,7 @@ ], "children": [ { - "id": 426, + "id": 436, "name": "presence_id", "kind": 32, "kindString": "Variable", @@ -54882,7 +55035,7 @@ "title": "Variables", "kind": 32, "children": [ - 426 + 436 ] } ], @@ -54897,14 +55050,14 @@ } }, { - "id": 450, + "id": 460, "name": "PresenceChooser", "kind": 4194304, "kindString": "Type alias", "flags": {}, "typeParameter": [ { - "id": 451, + "id": 461, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -54921,21 +55074,21 @@ "type": { "type": "reflection", "declaration": { - "id": 452, + "id": 462, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 453, + "id": 463, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 454, + "id": 464, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -54946,7 +55099,7 @@ } }, { - "id": 455, + "id": 465, "name": "presences", "kind": 32768, "kindString": "Parameter", @@ -54974,7 +55127,7 @@ } }, { - "id": 433, + "id": 443, "name": "PresenceDiff", "kind": 4194304, "kindString": "Type alias", @@ -54989,14 +55142,14 @@ "type": { "type": "reflection", "declaration": { - "id": 434, + "id": 444, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 435, + "id": 445, "name": "joins", "kind": 32, "kindString": "Variable", @@ -55010,12 +55163,12 @@ ], "type": { "type": "reference", - "id": 429, + "id": 439, "name": "PresenceState" } }, { - "id": 436, + "id": 446, "name": "leaves", "kind": 32, "kindString": "Variable", @@ -55029,7 +55182,7 @@ ], "type": { "type": "reference", - "id": 429, + "id": 439, "name": "PresenceState" } } @@ -55039,8 +55192,8 @@ "title": "Variables", "kind": 32, "children": [ - 435, - 436 + 445, + 446 ] } ], @@ -55055,7 +55208,7 @@ } }, { - "id": 429, + "id": 439, "name": "PresenceState", "kind": 4194304, "kindString": "Type alias", @@ -55070,21 +55223,21 @@ "type": { "type": "reflection", "declaration": { - "id": 430, + "id": 440, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": [ { - "id": 431, + "id": 441, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 432, + "id": 442, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -55099,7 +55252,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 424, + "id": 434, "name": "Presence" } } @@ -55116,7 +55269,7 @@ } }, { - "id": 446, + "id": 456, "name": "RawPresenceDiff", "kind": 4194304, "kindString": "Type alias", @@ -55131,14 +55284,14 @@ "type": { "type": "reflection", "declaration": { - "id": 447, + "id": 457, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 448, + "id": 458, "name": "joins", "kind": 32, "kindString": "Variable", @@ -55152,12 +55305,12 @@ ], "type": { "type": "reference", - "id": 437, + "id": 447, "name": "RawPresenceState" } }, { - "id": 449, + "id": 459, "name": "leaves", "kind": 32, "kindString": "Variable", @@ -55171,7 +55324,7 @@ ], "type": { "type": "reference", - "id": 437, + "id": 447, "name": "RawPresenceState" } } @@ -55181,8 +55334,8 @@ "title": "Variables", "kind": 32, "children": [ - 448, - 449 + 458, + 459 ] } ], @@ -55197,7 +55350,7 @@ } }, { - "id": 437, + "id": 447, "name": "RawPresenceState", "kind": 4194304, "kindString": "Type alias", @@ -55212,21 +55365,21 @@ "type": { "type": "reflection", "declaration": { - "id": 438, + "id": 448, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": [ { - "id": 439, + "id": 449, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 440, + "id": 450, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -55239,7 +55392,7 @@ ], "type": { "type": "reference", - "id": 606, + "id": 616, "typeArguments": [ { "type": "stringLiteral", @@ -55250,21 +55403,21 @@ "elementType": { "type": "reflection", "declaration": { - "id": 441, + "id": 451, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": [ { - "id": 444, + "id": 454, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 445, + "id": 455, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -55283,7 +55436,7 @@ ], "children": [ { - "id": 442, + "id": 452, "name": "phx_ref", "kind": 32, "kindString": "Variable", @@ -55312,7 +55465,7 @@ } }, { - "id": 443, + "id": 453, "name": "phx_ref_prev", "kind": 32, "kindString": "Variable", @@ -55346,8 +55499,8 @@ "title": "Variables", "kind": 32, "children": [ - 442, - 443 + 452, + 453 ] } ], @@ -55382,19 +55535,19 @@ "title": "Classes", "kind": 128, "children": [ - 363 + 373 ] }, { "title": "Type aliases", "kind": 4194304, "children": [ - 424, - 450, - 433, - 429, - 446, - 437 + 434, + 460, + 443, + 439, + 456, + 447 ] } ], @@ -55407,7 +55560,7 @@ ] }, { - "id": 208, + "id": 218, "name": "\"RealtimeSubscription\"", "kind": 1, "kindString": "Module", @@ -55417,7 +55570,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/RealtimeSubscription.ts", "children": [ { - "id": 209, + "id": 219, "name": "RealtimeSubscription", "kind": 128, "kindString": "Class", @@ -55426,7 +55579,7 @@ }, "children": [ { - "id": 217, + "id": 227, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -55435,7 +55588,7 @@ }, "signatures": [ { - "id": 224, + "id": 234, "name": "new RealtimeSubscription", "kind": 16384, "kindString": "Constructor signature", @@ -55444,7 +55597,7 @@ }, "parameters": [ { - "id": 225, + "id": 235, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -55457,7 +55610,7 @@ } }, { - "id": 226, + "id": 236, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -55467,7 +55620,7 @@ "type": { "type": "reflection", "declaration": { - "id": 227, + "id": 237, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -55476,7 +55629,7 @@ }, "indexSignature": [ { - "id": 228, + "id": 238, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -55485,7 +55638,7 @@ }, "parameters": [ { - "id": 229, + "id": 239, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -55516,7 +55669,7 @@ "defaultValue": "{}" }, { - "id": 230, + "id": 240, "name": "socket", "kind": 32768, "kindString": "Parameter", @@ -55525,14 +55678,14 @@ }, "type": { "type": "reference", - "id": 69, + "id": 74, "name": "RealtimeClient" } } ], "type": { "type": "reference", - "id": 209, + "id": 219, "name": "RealtimeSubscription" } } @@ -55546,7 +55699,7 @@ ] }, { - "id": 210, + "id": 220, "name": "bindings", "kind": 1024, "kindString": "Property", @@ -55570,7 +55723,7 @@ "defaultValue": "[]" }, { - "id": 214, + "id": 224, "name": "joinPush", "kind": 1024, "kindString": "Property", @@ -55586,12 +55739,12 @@ ], "type": { "type": "reference", - "id": 297, + "id": 307, "name": "Push" } }, { - "id": 213, + "id": 223, "name": "joinedOnce", "kind": 1024, "kindString": "Property", @@ -55612,7 +55765,7 @@ "defaultValue": "false" }, { - "id": 219, + "id": 229, "name": "params", "kind": 1024, "kindString": "Property", @@ -55631,7 +55784,7 @@ "type": { "type": "reflection", "declaration": { - "id": 220, + "id": 230, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -55640,7 +55793,7 @@ }, "indexSignature": [ { - "id": 221, + "id": 231, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -55649,7 +55802,7 @@ }, "parameters": [ { - "id": 222, + "id": 232, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -55679,7 +55832,7 @@ } }, { - "id": 216, + "id": 226, "name": "pushBuffer", "kind": 1024, "kindString": "Property", @@ -55697,14 +55850,14 @@ "type": "array", "elementType": { "type": "reference", - "id": 297, + "id": 307, "name": "Push" } }, "defaultValue": "[]" }, { - "id": 215, + "id": 225, "name": "rejoinTimer", "kind": 1024, "kindString": "Property", @@ -55720,12 +55873,12 @@ ], "type": { "type": "reference", - "id": 30, + "id": 35, "name": "Timer" } }, { - "id": 223, + "id": 233, "name": "socket", "kind": 1024, "kindString": "Property", @@ -55743,12 +55896,12 @@ ], "type": { "type": "reference", - "id": 69, + "id": 74, "name": "RealtimeClient" } }, { - "id": 212, + "id": 222, "name": "state", "kind": 1024, "kindString": "Property", @@ -55770,7 +55923,7 @@ "defaultValue": "CHANNEL_STATES.closed" }, { - "id": 211, + "id": 221, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -55790,7 +55943,7 @@ } }, { - "id": 218, + "id": 228, "name": "topic", "kind": 1024, "kindString": "Property", @@ -55812,7 +55965,7 @@ } }, { - "id": 249, + "id": 259, "name": "canPush", "kind": 2048, "kindString": "Method", @@ -55821,7 +55974,7 @@ }, "signatures": [ { - "id": 250, + "id": 260, "name": "canPush", "kind": 4096, "kindString": "Call signature", @@ -55843,7 +55996,7 @@ ] }, { - "id": 286, + "id": 296, "name": "isClosed", "kind": 2048, "kindString": "Method", @@ -55852,7 +56005,7 @@ }, "signatures": [ { - "id": 287, + "id": 297, "name": "isClosed", "kind": 4096, "kindString": "Call signature", @@ -55874,7 +56027,7 @@ ] }, { - "id": 288, + "id": 298, "name": "isErrored", "kind": 2048, "kindString": "Method", @@ -55883,7 +56036,7 @@ }, "signatures": [ { - "id": 289, + "id": 299, "name": "isErrored", "kind": 4096, "kindString": "Call signature", @@ -55905,7 +56058,7 @@ ] }, { - "id": 290, + "id": 300, "name": "isJoined", "kind": 2048, "kindString": "Method", @@ -55914,7 +56067,7 @@ }, "signatures": [ { - "id": 291, + "id": 301, "name": "isJoined", "kind": 4096, "kindString": "Call signature", @@ -55936,7 +56089,7 @@ ] }, { - "id": 292, + "id": 302, "name": "isJoining", "kind": 2048, "kindString": "Method", @@ -55945,7 +56098,7 @@ }, "signatures": [ { - "id": 293, + "id": 303, "name": "isJoining", "kind": 4096, "kindString": "Call signature", @@ -55967,7 +56120,7 @@ ] }, { - "id": 294, + "id": 304, "name": "isLeaving", "kind": 2048, "kindString": "Method", @@ -55976,7 +56129,7 @@ }, "signatures": [ { - "id": 295, + "id": 305, "name": "isLeaving", "kind": 4096, "kindString": "Call signature", @@ -55998,7 +56151,7 @@ ] }, { - "id": 270, + "id": 280, "name": "isMember", "kind": 2048, "kindString": "Method", @@ -56007,7 +56160,7 @@ }, "signatures": [ { - "id": 271, + "id": 281, "name": "isMember", "kind": 4096, "kindString": "Call signature", @@ -56016,7 +56169,7 @@ }, "parameters": [ { - "id": 272, + "id": 282, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -56044,7 +56197,7 @@ ] }, { - "id": 273, + "id": 283, "name": "joinRef", "kind": 2048, "kindString": "Method", @@ -56053,7 +56206,7 @@ }, "signatures": [ { - "id": 274, + "id": 284, "name": "joinRef", "kind": 4096, "kindString": "Call signature", @@ -56075,7 +56228,7 @@ ] }, { - "id": 246, + "id": 256, "name": "off", "kind": 2048, "kindString": "Method", @@ -56084,7 +56237,7 @@ }, "signatures": [ { - "id": 247, + "id": 257, "name": "off", "kind": 4096, "kindString": "Call signature", @@ -56093,7 +56246,7 @@ }, "parameters": [ { - "id": 248, + "id": 258, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -56121,7 +56274,7 @@ ] }, { - "id": 242, + "id": 252, "name": "on", "kind": 2048, "kindString": "Method", @@ -56130,7 +56283,7 @@ }, "signatures": [ { - "id": 243, + "id": 253, "name": "on", "kind": 4096, "kindString": "Call signature", @@ -56139,7 +56292,7 @@ }, "parameters": [ { - "id": 244, + "id": 254, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -56152,7 +56305,7 @@ } }, { - "id": 245, + "id": 255, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -56180,7 +56333,7 @@ ] }, { - "id": 236, + "id": 246, "name": "onClose", "kind": 2048, "kindString": "Method", @@ -56189,7 +56342,7 @@ }, "signatures": [ { - "id": 237, + "id": 247, "name": "onClose", "kind": 4096, "kindString": "Call signature", @@ -56198,7 +56351,7 @@ }, "parameters": [ { - "id": 238, + "id": 248, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -56226,7 +56379,7 @@ ] }, { - "id": 239, + "id": 249, "name": "onError", "kind": 2048, "kindString": "Method", @@ -56235,7 +56388,7 @@ }, "signatures": [ { - "id": 240, + "id": 250, "name": "onError", "kind": 4096, "kindString": "Call signature", @@ -56244,7 +56397,7 @@ }, "parameters": [ { - "id": 241, + "id": 251, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -56272,7 +56425,7 @@ ] }, { - "id": 265, + "id": 275, "name": "onMessage", "kind": 2048, "kindString": "Method", @@ -56281,7 +56434,7 @@ }, "signatures": [ { - "id": 266, + "id": 276, "name": "onMessage", "kind": 4096, "kindString": "Call signature", @@ -56294,7 +56447,7 @@ }, "parameters": [ { - "id": 267, + "id": 277, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -56307,7 +56460,7 @@ } }, { - "id": 268, + "id": 278, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -56320,7 +56473,7 @@ } }, { - "id": 269, + "id": 279, "name": "ref", "kind": 32768, "kindString": "Parameter", @@ -56358,7 +56511,7 @@ ] }, { - "id": 251, + "id": 261, "name": "push", "kind": 2048, "kindString": "Method", @@ -56367,7 +56520,7 @@ }, "signatures": [ { - "id": 252, + "id": 262, "name": "push", "kind": 4096, "kindString": "Call signature", @@ -56376,7 +56529,7 @@ }, "parameters": [ { - "id": 253, + "id": 263, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -56390,7 +56543,7 @@ } }, { - "id": 254, + "id": 264, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -56403,7 +56556,7 @@ } }, { - "id": 255, + "id": 265, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -56419,7 +56572,7 @@ ], "type": { "type": "reference", - "id": 297, + "id": 307, "name": "Push" } } @@ -56433,7 +56586,7 @@ ] }, { - "id": 275, + "id": 285, "name": "rejoin", "kind": 2048, "kindString": "Method", @@ -56442,7 +56595,7 @@ }, "signatures": [ { - "id": 276, + "id": 286, "name": "rejoin", "kind": 4096, "kindString": "Call signature", @@ -56451,7 +56604,7 @@ }, "parameters": [ { - "id": 277, + "id": 287, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -56480,7 +56633,7 @@ ] }, { - "id": 231, + "id": 241, "name": "rejoinUntilConnected", "kind": 2048, "kindString": "Method", @@ -56489,7 +56642,7 @@ }, "signatures": [ { - "id": 232, + "id": 242, "name": "rejoinUntilConnected", "kind": 4096, "kindString": "Call signature", @@ -56511,7 +56664,7 @@ ] }, { - "id": 283, + "id": 293, "name": "replyEventName", "kind": 2048, "kindString": "Method", @@ -56520,7 +56673,7 @@ }, "signatures": [ { - "id": 284, + "id": 294, "name": "replyEventName", "kind": 4096, "kindString": "Call signature", @@ -56529,7 +56682,7 @@ }, "parameters": [ { - "id": 285, + "id": 295, "name": "ref", "kind": 32768, "kindString": "Parameter", @@ -56557,7 +56710,7 @@ ] }, { - "id": 233, + "id": 243, "name": "subscribe", "kind": 2048, "kindString": "Method", @@ -56566,7 +56719,7 @@ }, "signatures": [ { - "id": 234, + "id": 244, "name": "subscribe", "kind": 4096, "kindString": "Call signature", @@ -56575,7 +56728,7 @@ }, "parameters": [ { - "id": 235, + "id": 245, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -56591,7 +56744,7 @@ ], "type": { "type": "reference", - "id": 297, + "id": 307, "name": "Push" } } @@ -56605,7 +56758,7 @@ ] }, { - "id": 278, + "id": 288, "name": "trigger", "kind": 2048, "kindString": "Method", @@ -56614,7 +56767,7 @@ }, "signatures": [ { - "id": 279, + "id": 289, "name": "trigger", "kind": 4096, "kindString": "Call signature", @@ -56623,7 +56776,7 @@ }, "parameters": [ { - "id": 280, + "id": 290, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -56636,7 +56789,7 @@ } }, { - "id": 281, + "id": 291, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -56650,7 +56803,7 @@ } }, { - "id": 282, + "id": 292, "name": "ref", "kind": 32768, "kindString": "Parameter", @@ -56688,7 +56841,7 @@ ] }, { - "id": 262, + "id": 272, "name": "unsubscribe", "kind": 2048, "kindString": "Method", @@ -56697,7 +56850,7 @@ }, "signatures": [ { - "id": 263, + "id": 273, "name": "unsubscribe", "kind": 4096, "kindString": "Call signature", @@ -56710,7 +56863,7 @@ }, "parameters": [ { - "id": 264, + "id": 274, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -56726,7 +56879,7 @@ ], "type": { "type": "reference", - "id": 297, + "id": 307, "name": "Push" } } @@ -56740,7 +56893,7 @@ ] }, { - "id": 256, + "id": 266, "name": "updateJoinPayload", "kind": 2048, "kindString": "Method", @@ -56749,7 +56902,7 @@ }, "signatures": [ { - "id": 257, + "id": 267, "name": "updateJoinPayload", "kind": 4096, "kindString": "Call signature", @@ -56758,7 +56911,7 @@ }, "parameters": [ { - "id": 258, + "id": 268, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -56768,7 +56921,7 @@ "type": { "type": "reflection", "declaration": { - "id": 259, + "id": 269, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -56777,7 +56930,7 @@ }, "indexSignature": [ { - "id": 260, + "id": 270, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -56786,7 +56939,7 @@ }, "parameters": [ { - "id": 261, + "id": 271, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -56836,50 +56989,50 @@ "title": "Constructors", "kind": 512, "children": [ - 217 + 227 ] }, { "title": "Properties", "kind": 1024, "children": [ - 210, - 214, - 213, - 219, - 216, - 215, + 220, + 224, 223, - 212, - 211, - 218 + 229, + 226, + 225, + 233, + 222, + 221, + 228 ] }, { "title": "Methods", "kind": 2048, "children": [ - 249, - 286, - 288, - 290, - 292, - 294, - 270, - 273, - 246, - 242, - 236, - 239, - 265, - 251, - 275, - 231, + 259, + 296, + 298, + 300, + 302, + 304, + 280, 283, - 233, - 278, - 262, - 256 + 256, + 252, + 246, + 249, + 275, + 261, + 285, + 241, + 293, + 243, + 288, + 272, + 266 ] } ], @@ -56897,7 +57050,7 @@ "title": "Classes", "kind": 128, "children": [ - 209 + 219 ] } ], @@ -56910,7 +57063,7 @@ ] }, { - "id": 646, + "id": 656, "name": "\"index\"", "kind": 1, "kindString": "Module", @@ -57186,6 +57339,104 @@ } ] }, + { + "id": 24, + "name": "CONNECTION_STATE", + "kind": 4, + "kindString": "Enumeration", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 28, + "name": "Closed", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 43, + "character": 8 + } + ], + "defaultValue": "\"closed\"" + }, + { + "id": 27, + "name": "Closing", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 42, + "character": 9 + } + ], + "defaultValue": "\"closing\"" + }, + { + "id": 25, + "name": "Connecting", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 40, + "character": 12 + } + ], + "defaultValue": "\"connecting\"" + }, + { + "id": 26, + "name": "Open", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 41, + "character": 6 + } + ], + "defaultValue": "\"open\"" + } + ], + "groups": [ + { + "title": "Enumeration members", + "kind": 16, + "children": [ + 28, + 27, + 25, + 26 + ] + } + ], + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 39, + "character": 28 + } + ] + }, { "id": 4, "name": "SOCKET_STATES", @@ -57329,7 +57580,7 @@ ] }, { - "id": 27, + "id": 32, "name": "DEFAULT_TIMEOUT", "kind": 32, "kindString": "Variable", @@ -57351,7 +57602,7 @@ "defaultValue": "10000" }, { - "id": 26, + "id": 31, "name": "VSN", "kind": 32, "kindString": "Variable", @@ -57373,7 +57624,7 @@ "defaultValue": "\"1.0.0\"" }, { - "id": 28, + "id": 33, "name": "WS_CLOSE_NORMAL", "kind": 32, "kindString": "Variable", @@ -57395,7 +57646,7 @@ "defaultValue": "1000" }, { - "id": 24, + "id": 29, "name": "DEFAULT_HEADERS", "kind": 2097152, "kindString": "Object literal", @@ -57405,7 +57656,7 @@ }, "children": [ { - "id": 25, + "id": 30, "name": "X-Client-Info", "kind": 32, "kindString": "Variable", @@ -57431,7 +57682,7 @@ "title": "Variables", "kind": 32, "children": [ - 25 + 30 ] } ], @@ -57455,6 +57706,7 @@ "children": [ 15, 9, + 24, 4, 22 ] @@ -57463,16 +57715,16 @@ "title": "Variables", "kind": 32, "children": [ - 27, - 26, - 28 + 32, + 31, + 33 ] }, { "title": "Object literals", "kind": 2097152, "children": [ - 24 + 29 ] } ], @@ -57485,7 +57737,7 @@ ] }, { - "id": 296, + "id": 306, "name": "\"lib/push\"", "kind": 1, "kindString": "Module", @@ -57495,7 +57747,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/push.ts", "children": [ { - "id": 297, + "id": 307, "name": "Push", "kind": 128, "kindString": "Class", @@ -57504,7 +57756,7 @@ }, "children": [ { - "id": 310, + "id": 320, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -57516,7 +57768,7 @@ }, "signatures": [ { - "id": 318, + "id": 328, "name": "new Push", "kind": 16384, "kindString": "Constructor signature", @@ -57528,7 +57780,7 @@ }, "parameters": [ { - "id": 319, + "id": 329, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -57543,19 +57795,19 @@ "types": [ { "type": "reference", - "id": 209, + "id": 219, "name": "RealtimeSubscription" }, { "type": "reference", - "id": 457, + "id": 467, "name": "RealtimeChannel" } ] } }, { - "id": 320, + "id": 330, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -57571,7 +57823,7 @@ } }, { - "id": 321, + "id": 331, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -57584,7 +57836,7 @@ "type": { "type": "reflection", "declaration": { - "id": 322, + "id": 332, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -57593,7 +57845,7 @@ }, "indexSignature": [ { - "id": 323, + "id": 333, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -57602,7 +57854,7 @@ }, "parameters": [ { - "id": 324, + "id": 334, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -57633,7 +57885,7 @@ "defaultValue": "{}" }, { - "id": 325, + "id": 335, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -57652,7 +57904,7 @@ ], "type": { "type": "reference", - "id": 297, + "id": 307, "name": "Push" } } @@ -57666,7 +57918,7 @@ ] }, { - "id": 311, + "id": 321, "name": "channel", "kind": 1024, "kindString": "Property", @@ -57690,19 +57942,19 @@ "types": [ { "type": "reference", - "id": 209, + "id": 219, "name": "RealtimeSubscription" }, { "type": "reference", - "id": 457, + "id": 467, "name": "RealtimeChannel" } ] } }, { - "id": 312, + "id": 322, "name": "event", "kind": 1024, "kindString": "Property", @@ -57727,7 +57979,7 @@ } }, { - "id": 313, + "id": 323, "name": "payload", "kind": 1024, "kindString": "Property", @@ -57749,7 +58001,7 @@ "type": { "type": "reflection", "declaration": { - "id": 314, + "id": 324, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -57758,7 +58010,7 @@ }, "indexSignature": [ { - "id": 315, + "id": 325, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -57767,7 +58019,7 @@ }, "parameters": [ { - "id": 316, + "id": 326, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -57797,7 +58049,7 @@ } }, { - "id": 305, + "id": 315, "name": "recHooks", "kind": 1024, "kindString": "Property", @@ -57816,7 +58068,7 @@ "elementType": { "type": "reflection", "declaration": { - "id": 306, + "id": 316, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -57825,7 +58077,7 @@ }, "children": [ { - "id": 308, + "id": 318, "name": "callback", "kind": 32, "kindString": "Variable", @@ -57845,7 +58097,7 @@ } }, { - "id": 307, + "id": 317, "name": "status", "kind": 32, "kindString": "Variable", @@ -57870,8 +58122,8 @@ "title": "Variables", "kind": 32, "children": [ - 308, - 307 + 318, + 317 ] } ], @@ -57888,7 +58140,7 @@ "defaultValue": "[]" }, { - "id": 301, + "id": 311, "name": "receivedResp", "kind": 1024, "kindString": "Property", @@ -57908,7 +58160,7 @@ { "type": "reflection", "declaration": { - "id": 302, + "id": 312, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -57917,7 +58169,7 @@ }, "children": [ { - "id": 304, + "id": 314, "name": "response", "kind": 32, "kindString": "Variable", @@ -57937,7 +58189,7 @@ } }, { - "id": 303, + "id": 313, "name": "status", "kind": 32, "kindString": "Variable", @@ -57962,8 +58214,8 @@ "title": "Variables", "kind": 32, "children": [ - 304, - 303 + 314, + 313 ] } ], @@ -57985,7 +58237,7 @@ "defaultValue": "null" }, { - "id": 300, + "id": 310, "name": "ref", "kind": 1024, "kindString": "Property", @@ -58006,7 +58258,7 @@ "defaultValue": "\"\"" }, { - "id": 309, + "id": 319, "name": "refEvent", "kind": 1024, "kindString": "Property", @@ -58036,7 +58288,7 @@ "defaultValue": "null" }, { - "id": 298, + "id": 308, "name": "sent", "kind": 1024, "kindString": "Property", @@ -58057,7 +58309,7 @@ "defaultValue": "false" }, { - "id": 317, + "id": 327, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -58082,7 +58334,7 @@ } }, { - "id": 299, + "id": 309, "name": "timeoutTimer", "kind": 1024, "kindString": "Property", @@ -58112,7 +58364,7 @@ "defaultValue": "undefined" }, { - "id": 349, + "id": 359, "name": "_cancelRefEvent", "kind": 2048, "kindString": "Method", @@ -58122,7 +58374,7 @@ }, "signatures": [ { - "id": 350, + "id": 360, "name": "_cancelRefEvent", "kind": 4096, "kindString": "Call signature", @@ -58144,7 +58396,7 @@ ] }, { - "id": 351, + "id": 361, "name": "_cancelTimeout", "kind": 2048, "kindString": "Method", @@ -58154,7 +58406,7 @@ }, "signatures": [ { - "id": 352, + "id": 362, "name": "_cancelTimeout", "kind": 4096, "kindString": "Call signature", @@ -58176,7 +58428,7 @@ ] }, { - "id": 359, + "id": 369, "name": "_hasReceived", "kind": 2048, "kindString": "Method", @@ -58186,7 +58438,7 @@ }, "signatures": [ { - "id": 360, + "id": 370, "name": "_hasReceived", "kind": 4096, "kindString": "Call signature", @@ -58195,7 +58447,7 @@ }, "parameters": [ { - "id": 361, + "id": 371, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -58236,7 +58488,7 @@ ] }, { - "id": 353, + "id": 363, "name": "_matchReceive", "kind": 2048, "kindString": "Method", @@ -58246,7 +58498,7 @@ }, "signatures": [ { - "id": 354, + "id": 364, "name": "_matchReceive", "kind": 4096, "kindString": "Call signature", @@ -58255,7 +58507,7 @@ }, "parameters": [ { - "id": 355, + "id": 365, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -58266,7 +58518,7 @@ "type": { "type": "reflection", "declaration": { - "id": 356, + "id": 366, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -58275,7 +58527,7 @@ }, "children": [ { - "id": 358, + "id": 368, "name": "response", "kind": 32, "kindString": "Variable", @@ -58295,7 +58547,7 @@ } }, { - "id": 357, + "id": 367, "name": "status", "kind": 32, "kindString": "Variable", @@ -58320,8 +58572,8 @@ "title": "Variables", "kind": 32, "children": [ - 358, - 357 + 368, + 367 ] } ], @@ -58351,7 +58603,7 @@ ] }, { - "id": 347, + "id": 357, "name": "destroy", "kind": 2048, "kindString": "Method", @@ -58360,7 +58612,7 @@ }, "signatures": [ { - "id": 348, + "id": 358, "name": "destroy", "kind": 4096, "kindString": "Call signature", @@ -58382,7 +58634,7 @@ ] }, { - "id": 337, + "id": 347, "name": "receive", "kind": 2048, "kindString": "Method", @@ -58391,7 +58643,7 @@ }, "signatures": [ { - "id": 338, + "id": 348, "name": "receive", "kind": 4096, "kindString": "Call signature", @@ -58400,7 +58652,7 @@ }, "parameters": [ { - "id": 339, + "id": 349, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -58413,7 +58665,7 @@ } }, { - "id": 340, + "id": 350, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -58441,7 +58693,7 @@ ] }, { - "id": 326, + "id": 336, "name": "resend", "kind": 2048, "kindString": "Method", @@ -58450,7 +58702,7 @@ }, "signatures": [ { - "id": 327, + "id": 337, "name": "resend", "kind": 4096, "kindString": "Call signature", @@ -58459,7 +58711,7 @@ }, "parameters": [ { - "id": 328, + "id": 338, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -58487,7 +58739,7 @@ ] }, { - "id": 329, + "id": 339, "name": "send", "kind": 2048, "kindString": "Method", @@ -58496,7 +58748,7 @@ }, "signatures": [ { - "id": 330, + "id": 340, "name": "send", "kind": 4096, "kindString": "Call signature", @@ -58518,7 +58770,7 @@ ] }, { - "id": 341, + "id": 351, "name": "startTimeout", "kind": 2048, "kindString": "Method", @@ -58527,7 +58779,7 @@ }, "signatures": [ { - "id": 342, + "id": 352, "name": "startTimeout", "kind": 4096, "kindString": "Call signature", @@ -58549,7 +58801,7 @@ ] }, { - "id": 343, + "id": 353, "name": "trigger", "kind": 2048, "kindString": "Method", @@ -58558,7 +58810,7 @@ }, "signatures": [ { - "id": 344, + "id": 354, "name": "trigger", "kind": 4096, "kindString": "Call signature", @@ -58567,7 +58819,7 @@ }, "parameters": [ { - "id": 345, + "id": 355, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -58580,7 +58832,7 @@ } }, { - "id": 346, + "id": 356, "name": "response", "kind": 32768, "kindString": "Parameter", @@ -58608,7 +58860,7 @@ ] }, { - "id": 331, + "id": 341, "name": "updatePayload", "kind": 2048, "kindString": "Method", @@ -58617,7 +58869,7 @@ }, "signatures": [ { - "id": 332, + "id": 342, "name": "updatePayload", "kind": 4096, "kindString": "Call signature", @@ -58626,7 +58878,7 @@ }, "parameters": [ { - "id": 333, + "id": 343, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -58636,7 +58888,7 @@ "type": { "type": "reflection", "declaration": { - "id": 334, + "id": 344, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -58645,7 +58897,7 @@ }, "indexSignature": [ { - "id": 335, + "id": 345, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -58654,7 +58906,7 @@ }, "parameters": [ { - "id": 336, + "id": 346, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -58704,40 +58956,40 @@ "title": "Constructors", "kind": 512, "children": [ - 310 + 320 ] }, { "title": "Properties", "kind": 1024, "children": [ + 321, + 322, + 323, + 315, 311, - 312, - 313, - 305, - 301, - 300, - 309, - 298, - 317, - 299 + 310, + 319, + 308, + 327, + 309 ] }, { "title": "Methods", "kind": 2048, "children": [ - 349, - 351, 359, - 353, + 361, + 369, + 363, + 357, 347, - 337, - 326, - 329, - 341, - 343, - 331 + 336, + 339, + 351, + 353, + 341 ] } ], @@ -58755,7 +59007,7 @@ "title": "Classes", "kind": 128, "children": [ - 297 + 307 ] } ], @@ -58768,7 +59020,7 @@ ] }, { - "id": 43, + "id": 48, "name": "\"lib/serializer\"", "kind": 1, "kindString": "Module", @@ -58778,7 +59030,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/serializer.ts", "children": [ { - "id": 44, + "id": 49, "name": "Serializer", "kind": 128, "kindString": "Class", @@ -58787,7 +59039,7 @@ }, "children": [ { - "id": 45, + "id": 50, "name": "HEADER_LENGTH", "kind": 1024, "kindString": "Property", @@ -58808,7 +59060,7 @@ "defaultValue": "1" }, { - "id": 50, + "id": 55, "name": "_binaryDecode", "kind": 2048, "kindString": "Method", @@ -58818,7 +59070,7 @@ }, "signatures": [ { - "id": 51, + "id": 56, "name": "_binaryDecode", "kind": 4096, "kindString": "Call signature", @@ -58827,7 +59079,7 @@ }, "parameters": [ { - "id": 52, + "id": 57, "name": "buffer", "kind": 32768, "kindString": "Parameter", @@ -58843,7 +59095,7 @@ "type": { "type": "reflection", "declaration": { - "id": 53, + "id": 58, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -58852,7 +59104,7 @@ }, "children": [ { - "id": 56, + "id": 61, "name": "event", "kind": 32, "kindString": "Variable", @@ -58872,7 +59124,7 @@ } }, { - "id": 57, + "id": 62, "name": "payload", "kind": 32, "kindString": "Variable", @@ -58892,7 +59144,7 @@ } }, { - "id": 54, + "id": 59, "name": "ref", "kind": 32, "kindString": "Variable", @@ -58912,7 +59164,7 @@ } }, { - "id": 55, + "id": 60, "name": "topic", "kind": 32, "kindString": "Variable", @@ -58937,10 +59189,10 @@ "title": "Variables", "kind": 32, "children": [ - 56, - 57, - 54, - 55 + 61, + 62, + 59, + 60 ] } ] @@ -58957,7 +59209,7 @@ ] }, { - "id": 58, + "id": 63, "name": "_decodeBroadcast", "kind": 2048, "kindString": "Method", @@ -58967,7 +59219,7 @@ }, "signatures": [ { - "id": 59, + "id": 64, "name": "_decodeBroadcast", "kind": 4096, "kindString": "Call signature", @@ -58976,7 +59228,7 @@ }, "parameters": [ { - "id": 60, + "id": 65, "name": "buffer", "kind": 32768, "kindString": "Parameter", @@ -58989,7 +59241,7 @@ } }, { - "id": 61, + "id": 66, "name": "view", "kind": 32768, "kindString": "Parameter", @@ -59002,7 +59254,7 @@ } }, { - "id": 62, + "id": 67, "name": "decoder", "kind": 32768, "kindString": "Parameter", @@ -59018,7 +59270,7 @@ "type": { "type": "reflection", "declaration": { - "id": 63, + "id": 68, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -59027,7 +59279,7 @@ }, "children": [ { - "id": 66, + "id": 71, "name": "event", "kind": 32, "kindString": "Variable", @@ -59047,7 +59299,7 @@ } }, { - "id": 67, + "id": 72, "name": "payload", "kind": 32, "kindString": "Variable", @@ -59067,7 +59319,7 @@ } }, { - "id": 64, + "id": 69, "name": "ref", "kind": 32, "kindString": "Variable", @@ -59087,7 +59339,7 @@ } }, { - "id": 65, + "id": 70, "name": "topic", "kind": 32, "kindString": "Variable", @@ -59112,10 +59364,10 @@ "title": "Variables", "kind": 32, "children": [ - 66, - 67, - 64, - 65 + 71, + 72, + 69, + 70 ] } ], @@ -59139,7 +59391,7 @@ ] }, { - "id": 46, + "id": 51, "name": "decode", "kind": 2048, "kindString": "Method", @@ -59148,7 +59400,7 @@ }, "signatures": [ { - "id": 47, + "id": 52, "name": "decode", "kind": 4096, "kindString": "Call signature", @@ -59157,7 +59409,7 @@ }, "parameters": [ { - "id": 48, + "id": 53, "name": "rawPayload", "kind": 32768, "kindString": "Parameter", @@ -59179,7 +59431,7 @@ } }, { - "id": 49, + "id": 54, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -59212,16 +59464,16 @@ "title": "Properties", "kind": 1024, "children": [ - 45 + 50 ] }, { "title": "Methods", "kind": 2048, "children": [ - 50, - 58, - 46 + 55, + 63, + 51 ] } ], @@ -59239,7 +59491,7 @@ "title": "Classes", "kind": 128, "children": [ - 44 + 49 ] } ], @@ -59252,7 +59504,7 @@ ] }, { - "id": 29, + "id": 34, "name": "\"lib/timer\"", "kind": 1, "kindString": "Module", @@ -59262,7 +59514,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/timer.ts", "children": [ { - "id": 30, + "id": 35, "name": "Timer", "kind": 128, "kindString": "Class", @@ -59280,7 +59532,7 @@ }, "children": [ { - "id": 33, + "id": 38, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -59289,7 +59541,7 @@ }, "signatures": [ { - "id": 36, + "id": 41, "name": "new Timer", "kind": 16384, "kindString": "Constructor signature", @@ -59298,7 +59550,7 @@ }, "parameters": [ { - "id": 37, + "id": 42, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -59311,7 +59563,7 @@ } }, { - "id": 38, + "id": 43, "name": "timerCalc", "kind": 32768, "kindString": "Parameter", @@ -59326,7 +59578,7 @@ ], "type": { "type": "reference", - "id": 30, + "id": 35, "name": "Timer" } } @@ -59340,7 +59592,7 @@ ] }, { - "id": 34, + "id": 39, "name": "callback", "kind": 1024, "kindString": "Property", @@ -59362,7 +59614,7 @@ } }, { - "id": 31, + "id": 36, "name": "timer", "kind": 1024, "kindString": "Property", @@ -59392,7 +59644,7 @@ "defaultValue": "undefined" }, { - "id": 35, + "id": 40, "name": "timerCalc", "kind": 1024, "kindString": "Property", @@ -59414,7 +59666,7 @@ } }, { - "id": 32, + "id": 37, "name": "tries", "kind": 1024, "kindString": "Property", @@ -59435,7 +59687,7 @@ "defaultValue": "0" }, { - "id": 39, + "id": 44, "name": "reset", "kind": 2048, "kindString": "Method", @@ -59444,7 +59696,7 @@ }, "signatures": [ { - "id": 40, + "id": 45, "name": "reset", "kind": 4096, "kindString": "Call signature", @@ -59466,7 +59718,7 @@ ] }, { - "id": 41, + "id": 46, "name": "scheduleTimeout", "kind": 2048, "kindString": "Method", @@ -59475,7 +59727,7 @@ }, "signatures": [ { - "id": 42, + "id": 47, "name": "scheduleTimeout", "kind": 4096, "kindString": "Call signature", @@ -59502,25 +59754,25 @@ "title": "Constructors", "kind": 512, "children": [ - 33 + 38 ] }, { "title": "Properties", "kind": 1024, "children": [ - 34, - 31, - 35, - 32 + 39, + 36, + 40, + 37 ] }, { "title": "Methods", "kind": 2048, "children": [ - 39, - 41 + 44, + 46 ] } ], @@ -59538,7 +59790,7 @@ "title": "Classes", "kind": 128, "children": [ - 30 + 35 ] } ], @@ -59551,7 +59803,7 @@ ] }, { - "id": 572, + "id": 582, "name": "\"lib/transformers\"", "kind": 1, "kindString": "Module", @@ -59561,7 +59813,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/transformers.ts", "children": [ { - "id": 573, + "id": 583, "name": "PostgresTypes", "kind": 4, "kindString": "Enumeration", @@ -59573,7 +59825,7 @@ }, "children": [ { - "id": 574, + "id": 584, "name": "abstime", "kind": 16, "kindString": "Enumeration member", @@ -59590,7 +59842,7 @@ "defaultValue": "\"abstime\"" }, { - "id": 575, + "id": 585, "name": "bool", "kind": 16, "kindString": "Enumeration member", @@ -59607,7 +59859,7 @@ "defaultValue": "\"bool\"" }, { - "id": 576, + "id": 586, "name": "date", "kind": 16, "kindString": "Enumeration member", @@ -59624,7 +59876,7 @@ "defaultValue": "\"date\"" }, { - "id": 577, + "id": 587, "name": "daterange", "kind": 16, "kindString": "Enumeration member", @@ -59641,7 +59893,7 @@ "defaultValue": "\"daterange\"" }, { - "id": 578, + "id": 588, "name": "float4", "kind": 16, "kindString": "Enumeration member", @@ -59658,7 +59910,7 @@ "defaultValue": "\"float4\"" }, { - "id": 579, + "id": 589, "name": "float8", "kind": 16, "kindString": "Enumeration member", @@ -59675,7 +59927,7 @@ "defaultValue": "\"float8\"" }, { - "id": 580, + "id": 590, "name": "int2", "kind": 16, "kindString": "Enumeration member", @@ -59692,7 +59944,7 @@ "defaultValue": "\"int2\"" }, { - "id": 581, + "id": 591, "name": "int4", "kind": 16, "kindString": "Enumeration member", @@ -59709,7 +59961,7 @@ "defaultValue": "\"int4\"" }, { - "id": 582, + "id": 592, "name": "int4range", "kind": 16, "kindString": "Enumeration member", @@ -59726,7 +59978,7 @@ "defaultValue": "\"int4range\"" }, { - "id": 583, + "id": 593, "name": "int8", "kind": 16, "kindString": "Enumeration member", @@ -59743,7 +59995,7 @@ "defaultValue": "\"int8\"" }, { - "id": 584, + "id": 594, "name": "int8range", "kind": 16, "kindString": "Enumeration member", @@ -59760,7 +60012,7 @@ "defaultValue": "\"int8range\"" }, { - "id": 585, + "id": 595, "name": "json", "kind": 16, "kindString": "Enumeration member", @@ -59777,7 +60029,7 @@ "defaultValue": "\"json\"" }, { - "id": 586, + "id": 596, "name": "jsonb", "kind": 16, "kindString": "Enumeration member", @@ -59794,7 +60046,7 @@ "defaultValue": "\"jsonb\"" }, { - "id": 587, + "id": 597, "name": "money", "kind": 16, "kindString": "Enumeration member", @@ -59811,7 +60063,7 @@ "defaultValue": "\"money\"" }, { - "id": 588, + "id": 598, "name": "numeric", "kind": 16, "kindString": "Enumeration member", @@ -59828,7 +60080,7 @@ "defaultValue": "\"numeric\"" }, { - "id": 589, + "id": 599, "name": "oid", "kind": 16, "kindString": "Enumeration member", @@ -59845,7 +60097,7 @@ "defaultValue": "\"oid\"" }, { - "id": 590, + "id": 600, "name": "reltime", "kind": 16, "kindString": "Enumeration member", @@ -59862,7 +60114,7 @@ "defaultValue": "\"reltime\"" }, { - "id": 591, + "id": 601, "name": "text", "kind": 16, "kindString": "Enumeration member", @@ -59879,7 +60131,7 @@ "defaultValue": "\"text\"" }, { - "id": 592, + "id": 602, "name": "time", "kind": 16, "kindString": "Enumeration member", @@ -59896,7 +60148,7 @@ "defaultValue": "\"time\"" }, { - "id": 593, + "id": 603, "name": "timestamp", "kind": 16, "kindString": "Enumeration member", @@ -59913,7 +60165,7 @@ "defaultValue": "\"timestamp\"" }, { - "id": 594, + "id": 604, "name": "timestamptz", "kind": 16, "kindString": "Enumeration member", @@ -59930,7 +60182,7 @@ "defaultValue": "\"timestamptz\"" }, { - "id": 595, + "id": 605, "name": "timetz", "kind": 16, "kindString": "Enumeration member", @@ -59947,7 +60199,7 @@ "defaultValue": "\"timetz\"" }, { - "id": 596, + "id": 606, "name": "tsrange", "kind": 16, "kindString": "Enumeration member", @@ -59964,7 +60216,7 @@ "defaultValue": "\"tsrange\"" }, { - "id": 597, + "id": 607, "name": "tstzrange", "kind": 16, "kindString": "Enumeration member", @@ -59986,16 +60238,6 @@ "title": "Enumeration members", "kind": 16, "children": [ - 574, - 575, - 576, - 577, - 578, - 579, - 580, - 581, - 582, - 583, 584, 585, 586, @@ -60009,7 +60251,17 @@ 594, 595, 596, - 597 + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607 ] } ], @@ -60022,7 +60274,7 @@ ] }, { - "id": 604, + "id": 614, "name": "BaseValue", "kind": 4194304, "kindString": "Type alias", @@ -60057,7 +60309,7 @@ } }, { - "id": 598, + "id": 608, "name": "Columns", "kind": 4194304, "kindString": "Type alias", @@ -60074,14 +60326,14 @@ "elementType": { "type": "reflection", "declaration": { - "id": 599, + "id": 609, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 602, + "id": 612, "name": "flags", "kind": 32, "kindString": "Variable", @@ -60104,7 +60356,7 @@ } }, { - "id": 600, + "id": 610, "name": "name", "kind": 32, "kindString": "Variable", @@ -60122,7 +60374,7 @@ } }, { - "id": 601, + "id": 611, "name": "type", "kind": 32, "kindString": "Variable", @@ -60140,7 +60392,7 @@ } }, { - "id": 603, + "id": 613, "name": "type_modifier", "kind": 32, "kindString": "Variable", @@ -60174,10 +60426,10 @@ "title": "Variables", "kind": 32, "children": [ - 602, - 600, - 601, - 603 + 612, + 610, + 611, + 613 ] } ], @@ -60193,7 +60445,7 @@ } }, { - "id": 606, + "id": 616, "name": "Record", "kind": 4194304, "kindString": "Type alias", @@ -60208,21 +60460,21 @@ "type": { "type": "reflection", "declaration": { - "id": 607, + "id": 617, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": [ { - "id": 608, + "id": 618, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 609, + "id": 619, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -60235,7 +60487,7 @@ ], "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } } @@ -60251,7 +60503,7 @@ } }, { - "id": 605, + "id": 615, "name": "RecordValue", "kind": 4194304, "kindString": "Type alias", @@ -60268,14 +60520,14 @@ "types": [ { "type": "reference", - "id": 604, + "id": 614, "name": "BaseValue" }, { "type": "array", "elementType": { "type": "reference", - "id": 604, + "id": 614, "name": "BaseValue" } } @@ -60283,7 +60535,7 @@ } }, { - "id": 623, + "id": 633, "name": "convertCell", "kind": 64, "kindString": "Function", @@ -60310,7 +60562,7 @@ }, "signatures": [ { - "id": 624, + "id": 634, "name": "convertCell", "kind": 4096, "kindString": "Call signature", @@ -60336,7 +60588,7 @@ }, "parameters": [ { - "id": 625, + "id": 635, "name": "type", "kind": 32768, "kindString": "Parameter", @@ -60352,7 +60604,7 @@ } }, { - "id": 626, + "id": 636, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -60361,14 +60613,14 @@ }, "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } } ], "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } } @@ -60382,7 +60634,7 @@ ] }, { - "id": 610, + "id": 620, "name": "convertChangeData", "kind": 64, "kindString": "Function", @@ -60401,7 +60653,7 @@ }, "signatures": [ { - "id": 611, + "id": 621, "name": "convertChangeData", "kind": 4096, "kindString": "Call signature", @@ -60419,7 +60671,7 @@ }, "parameters": [ { - "id": 612, + "id": 622, "name": "columns", "kind": 32768, "kindString": "Parameter", @@ -60428,12 +60680,12 @@ }, "type": { "type": "reference", - "id": 598, + "id": 608, "name": "Columns" } }, { - "id": 613, + "id": 623, "name": "record", "kind": 32768, "kindString": "Parameter", @@ -60443,12 +60695,12 @@ "comment": {}, "type": { "type": "reference", - "id": 606, + "id": 616, "name": "Record" } }, { - "id": 614, + "id": 624, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -60461,7 +60713,7 @@ "type": { "type": "reflection", "declaration": { - "id": 615, + "id": 625, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -60470,7 +60722,7 @@ }, "children": [ { - "id": 616, + "id": 626, "name": "skipTypes", "kind": 32, "kindString": "Variable", @@ -60499,7 +60751,7 @@ "title": "Variables", "kind": 32, "children": [ - 616 + 626 ] } ], @@ -60517,7 +60769,7 @@ ], "type": { "type": "reference", - "id": 606, + "id": 616, "name": "Record" } } @@ -60531,7 +60783,7 @@ ] }, { - "id": 617, + "id": 627, "name": "convertColumn", "kind": 64, "kindString": "Function", @@ -60555,7 +60807,7 @@ }, "signatures": [ { - "id": 618, + "id": 628, "name": "convertColumn", "kind": 4096, "kindString": "Call signature", @@ -60578,7 +60830,7 @@ }, "parameters": [ { - "id": 619, + "id": 629, "name": "columnName", "kind": 32768, "kindString": "Parameter", @@ -60594,7 +60846,7 @@ } }, { - "id": 620, + "id": 630, "name": "columns", "kind": 32768, "kindString": "Parameter", @@ -60603,12 +60855,12 @@ }, "type": { "type": "reference", - "id": 598, + "id": 608, "name": "Columns" } }, { - "id": 621, + "id": 631, "name": "record", "kind": 32768, "kindString": "Parameter", @@ -60620,12 +60872,12 @@ }, "type": { "type": "reference", - "id": 606, + "id": 616, "name": "Record" } }, { - "id": 622, + "id": 632, "name": "skipTypes", "kind": 32768, "kindString": "Parameter", @@ -60646,7 +60898,7 @@ ], "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } } @@ -60660,7 +60912,7 @@ ] }, { - "id": 627, + "id": 637, "name": "noop", "kind": 64, "kindString": "Function", @@ -60669,28 +60921,28 @@ }, "signatures": [ { - "id": 628, + "id": 638, "name": "noop", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 629, + "id": 639, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } } ], "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } } @@ -60704,7 +60956,7 @@ ] }, { - "id": 639, + "id": 649, "name": "toArray", "kind": 64, "kindString": "Function", @@ -60731,7 +60983,7 @@ }, "signatures": [ { - "id": 640, + "id": 650, "name": "toArray", "kind": 4096, "kindString": "Call signature", @@ -60757,7 +61009,7 @@ }, "parameters": [ { - "id": 641, + "id": 651, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -60766,12 +61018,12 @@ }, "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } }, { - "id": 642, + "id": 652, "name": "type", "kind": 32768, "kindString": "Parameter", @@ -60786,7 +61038,7 @@ ], "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } } @@ -60800,7 +61052,7 @@ ] }, { - "id": 630, + "id": 640, "name": "toBoolean", "kind": 64, "kindString": "Function", @@ -60810,7 +61062,7 @@ }, "signatures": [ { - "id": 631, + "id": 641, "name": "toBoolean", "kind": 4096, "kindString": "Call signature", @@ -60819,7 +61071,7 @@ }, "parameters": [ { - "id": 632, + "id": 642, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -60828,14 +61080,14 @@ }, "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } } ], "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } } @@ -60849,7 +61101,7 @@ ] }, { - "id": 636, + "id": 646, "name": "toJson", "kind": 64, "kindString": "Function", @@ -60859,7 +61111,7 @@ }, "signatures": [ { - "id": 637, + "id": 647, "name": "toJson", "kind": 4096, "kindString": "Call signature", @@ -60868,7 +61120,7 @@ }, "parameters": [ { - "id": 638, + "id": 648, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -60877,14 +61129,14 @@ }, "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } } ], "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } } @@ -60898,7 +61150,7 @@ ] }, { - "id": 633, + "id": 643, "name": "toNumber", "kind": 64, "kindString": "Function", @@ -60908,7 +61160,7 @@ }, "signatures": [ { - "id": 634, + "id": 644, "name": "toNumber", "kind": 4096, "kindString": "Call signature", @@ -60917,7 +61169,7 @@ }, "parameters": [ { - "id": 635, + "id": 645, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -60926,14 +61178,14 @@ }, "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } } ], "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } } @@ -60947,7 +61199,7 @@ ] }, { - "id": 643, + "id": 653, "name": "toTimestampString", "kind": 64, "kindString": "Function", @@ -60966,7 +61218,7 @@ }, "signatures": [ { - "id": 644, + "id": 654, "name": "toTimestampString", "kind": 4096, "kindString": "Call signature", @@ -60984,7 +61236,7 @@ }, "parameters": [ { - "id": 645, + "id": 655, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -60993,14 +61245,14 @@ }, "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } } ], "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } } @@ -61019,32 +61271,32 @@ "title": "Enumerations", "kind": 4, "children": [ - 573 + 583 ] }, { "title": "Type aliases", "kind": 4194304, "children": [ - 604, - 598, - 606, - 605 + 614, + 608, + 616, + 615 ] }, { "title": "Functions", "kind": 64, "children": [ - 623, - 610, - 617, - 627, - 639, - 630, - 636, 633, - 643 + 620, + 627, + 637, + 649, + 640, + 646, + 643, + 653 ] } ], @@ -61112,16 +61364,16 @@ "title": "Modules", "kind": 1, "children": [ - 456, - 68, - 362, - 208, - 646, + 466, + 73, + 372, + 218, + 656, 3, - 296, - 43, - 29, - 572, + 306, + 48, + 34, + 582, 1 ] } @@ -61135,7 +61387,7 @@ "originalName": "", "children": [ { - "id": 311, + "id": 312, "name": "\"StorageClient\"", "kind": 1, "kindString": "Module", @@ -61145,7 +61397,7 @@ "originalName": "/home/runner/work/storage-js/storage-js/src/StorageClient.ts", "children": [ { - "id": 312, + "id": 313, "name": "StorageClient", "kind": 128, "kindString": "Class", @@ -61154,7 +61406,7 @@ }, "children": [ { - "id": 313, + "id": 314, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -61163,7 +61415,7 @@ }, "signatures": [ { - "id": 314, + "id": 315, "name": "new StorageClient", "kind": 16384, "kindString": "Constructor signature", @@ -61172,7 +61424,7 @@ }, "parameters": [ { - "id": 315, + "id": 316, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -61185,7 +61437,7 @@ } }, { - "id": 316, + "id": 317, "name": "headers", "kind": 32768, "kindString": "Parameter", @@ -61195,7 +61447,7 @@ "type": { "type": "reflection", "declaration": { - "id": 317, + "id": 318, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -61204,7 +61456,7 @@ }, "indexSignature": [ { - "id": 318, + "id": 319, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -61213,7 +61465,7 @@ }, "parameters": [ { - "id": 319, + "id": 320, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -61244,7 +61496,7 @@ "defaultValue": "{}" }, { - "id": 320, + "id": 321, "name": "fetch", "kind": 32768, "kindString": "Parameter", @@ -61261,12 +61513,12 @@ ], "type": { "type": "reference", - "id": 312, + "id": 313, "name": "StorageClient" }, "overwrites": { "type": "reference", - "id": 113, + "id": 114, "name": "StorageBucketApi.__constructor" } } @@ -61280,12 +61532,12 @@ ], "overwrites": { "type": "reference", - "id": 113, + "id": 114, "name": "StorageBucketApi.__constructor" } }, { - "id": 329, + "id": 330, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -61307,12 +61559,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 112, + "id": 113, "name": "StorageBucketApi.fetch" } }, { - "id": 325, + "id": 326, "name": "headers", "kind": 1024, "kindString": "Property", @@ -61330,7 +61582,7 @@ "type": { "type": "reflection", "declaration": { - "id": 326, + "id": 327, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -61339,7 +61591,7 @@ }, "indexSignature": [ { - "id": 327, + "id": 328, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -61348,7 +61600,7 @@ }, "parameters": [ { - "id": 328, + "id": 329, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -61378,12 +61630,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 108, + "id": 109, "name": "StorageBucketApi.headers" } }, { - "id": 324, + "id": 325, "name": "url", "kind": 1024, "kindString": "Property", @@ -61404,12 +61656,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 107, + "id": 108, "name": "StorageBucketApi.url" } }, { - "id": 341, + "id": 342, "name": "createBucket", "kind": 2048, "kindString": "Method", @@ -61418,7 +61670,7 @@ }, "signatures": [ { - "id": 342, + "id": 343, "name": "createBucket", "kind": 4096, "kindString": "Call signature", @@ -61431,7 +61683,7 @@ }, "parameters": [ { - "id": 343, + "id": 344, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -61447,7 +61699,7 @@ } }, { - "id": 344, + "id": 345, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -61457,7 +61709,7 @@ "type": { "type": "reflection", "declaration": { - "id": 345, + "id": 346, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -61466,7 +61718,7 @@ }, "children": [ { - "id": 346, + "id": 347, "name": "public", "kind": 32, "kindString": "Variable", @@ -61491,7 +61743,7 @@ "title": "Variables", "kind": 32, "children": [ - 346 + 347 ] } ], @@ -61513,7 +61765,7 @@ { "type": "reflection", "declaration": { - "id": 347, + "id": 348, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -61522,7 +61774,7 @@ }, "children": [ { - "id": 348, + "id": 349, "name": "data", "kind": 32, "kindString": "Variable", @@ -61551,7 +61803,7 @@ } }, { - "id": 349, + "id": 350, "name": "error", "kind": 32, "kindString": "Variable", @@ -61585,8 +61837,8 @@ "title": "Variables", "kind": 32, "children": [ - 348, - 349 + 349, + 350 ] } ], @@ -61604,7 +61856,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 132, + "id": 133, "name": "StorageBucketApi.createBucket" } } @@ -61618,12 +61870,12 @@ ], "inheritedFrom": { "type": "reference", - "id": 132, + "id": 133, "name": "StorageBucketApi.createBucket" } }, { - "id": 369, + "id": 370, "name": "deleteBucket", "kind": 2048, "kindString": "Method", @@ -61632,7 +61884,7 @@ }, "signatures": [ { - "id": 370, + "id": 371, "name": "deleteBucket", "kind": 4096, "kindString": "Call signature", @@ -61644,7 +61896,7 @@ }, "parameters": [ { - "id": 371, + "id": 372, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -61666,7 +61918,7 @@ { "type": "reflection", "declaration": { - "id": 372, + "id": 373, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -61675,7 +61927,7 @@ }, "children": [ { - "id": 373, + "id": 374, "name": "data", "kind": 32, "kindString": "Variable", @@ -61695,7 +61947,7 @@ { "type": "reflection", "declaration": { - "id": 374, + "id": 375, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -61704,7 +61956,7 @@ }, "children": [ { - "id": 375, + "id": 376, "name": "message", "kind": 32, "kindString": "Variable", @@ -61729,7 +61981,7 @@ "title": "Variables", "kind": 32, "children": [ - 375 + 376 ] } ], @@ -61750,7 +62002,7 @@ } }, { - "id": 376, + "id": 377, "name": "error", "kind": 32, "kindString": "Variable", @@ -61784,8 +62036,8 @@ "title": "Variables", "kind": 32, "children": [ - 373, - 376 + 374, + 377 ] } ], @@ -61803,7 +62055,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 160, + "id": 161, "name": "StorageBucketApi.deleteBucket" } } @@ -61817,12 +62069,12 @@ ], "inheritedFrom": { "type": "reference", - "id": 160, + "id": 161, "name": "StorageBucketApi.deleteBucket" } }, { - "id": 361, + "id": 362, "name": "emptyBucket", "kind": 2048, "kindString": "Method", @@ -61831,7 +62083,7 @@ }, "signatures": [ { - "id": 362, + "id": 363, "name": "emptyBucket", "kind": 4096, "kindString": "Call signature", @@ -61843,7 +62095,7 @@ }, "parameters": [ { - "id": 363, + "id": 364, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -61865,7 +62117,7 @@ { "type": "reflection", "declaration": { - "id": 364, + "id": 365, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -61874,7 +62126,7 @@ }, "children": [ { - "id": 365, + "id": 366, "name": "data", "kind": 32, "kindString": "Variable", @@ -61894,7 +62146,7 @@ { "type": "reflection", "declaration": { - "id": 366, + "id": 367, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -61903,7 +62155,7 @@ }, "children": [ { - "id": 367, + "id": 368, "name": "message", "kind": 32, "kindString": "Variable", @@ -61928,7 +62180,7 @@ "title": "Variables", "kind": 32, "children": [ - 367 + 368 ] } ], @@ -61949,7 +62201,7 @@ } }, { - "id": 368, + "id": 369, "name": "error", "kind": 32, "kindString": "Variable", @@ -61983,8 +62235,8 @@ "title": "Variables", "kind": 32, "children": [ - 365, - 368 + 366, + 369 ] } ], @@ -62002,7 +62254,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 152, + "id": 153, "name": "StorageBucketApi.emptyBucket" } } @@ -62016,12 +62268,12 @@ ], "inheritedFrom": { "type": "reference", - "id": 152, + "id": 153, "name": "StorageBucketApi.emptyBucket" } }, { - "id": 321, + "id": 322, "name": "from", "kind": 2048, "kindString": "Method", @@ -62030,7 +62282,7 @@ }, "signatures": [ { - "id": 322, + "id": 323, "name": "from", "kind": 4096, "kindString": "Call signature", @@ -62042,7 +62294,7 @@ }, "parameters": [ { - "id": 323, + "id": 324, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -62060,7 +62312,7 @@ ], "type": { "type": "reference", - "id": 169, + "id": 170, "name": "StorageFileApi" } } @@ -62074,7 +62326,7 @@ ] }, { - "id": 335, + "id": 336, "name": "getBucket", "kind": 2048, "kindString": "Method", @@ -62083,7 +62335,7 @@ }, "signatures": [ { - "id": 336, + "id": 337, "name": "getBucket", "kind": 4096, "kindString": "Call signature", @@ -62095,7 +62347,7 @@ }, "parameters": [ { - "id": 337, + "id": 338, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -62117,7 +62369,7 @@ { "type": "reflection", "declaration": { - "id": 338, + "id": 339, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -62126,7 +62378,7 @@ }, "children": [ { - "id": 339, + "id": 340, "name": "data", "kind": 32, "kindString": "Variable", @@ -62156,7 +62408,7 @@ } }, { - "id": 340, + "id": 341, "name": "error", "kind": 32, "kindString": "Variable", @@ -62190,8 +62442,8 @@ "title": "Variables", "kind": 32, "children": [ - 339, - 340 + 340, + 341 ] } ], @@ -62209,7 +62461,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 126, + "id": 127, "name": "StorageBucketApi.getBucket" } } @@ -62223,12 +62475,12 @@ ], "inheritedFrom": { "type": "reference", - "id": 126, + "id": 127, "name": "StorageBucketApi.getBucket" } }, { - "id": 330, + "id": 331, "name": "listBuckets", "kind": 2048, "kindString": "Method", @@ -62237,7 +62489,7 @@ }, "signatures": [ { - "id": 331, + "id": 332, "name": "listBuckets", "kind": 4096, "kindString": "Call signature", @@ -62245,7 +62497,7 @@ "isExported": true }, "comment": { - "shortText": "Retrieves the details of all Storage buckets within an existing product." + "shortText": "Retrieves the details of all Storage buckets within an existing project." }, "type": { "type": "reference", @@ -62253,7 +62505,7 @@ { "type": "reflection", "declaration": { - "id": 332, + "id": 333, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -62262,7 +62514,7 @@ }, "children": [ { - "id": 333, + "id": 334, "name": "data", "kind": 32, "kindString": "Variable", @@ -62295,7 +62547,7 @@ } }, { - "id": 334, + "id": 335, "name": "error", "kind": 32, "kindString": "Variable", @@ -62329,8 +62581,8 @@ "title": "Variables", "kind": 32, "children": [ - 333, - 334 + 334, + 335 ] } ], @@ -62348,7 +62600,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 121, + "id": 122, "name": "StorageBucketApi.listBuckets" } } @@ -62362,12 +62614,12 @@ ], "inheritedFrom": { "type": "reference", - "id": 121, + "id": 122, "name": "StorageBucketApi.listBuckets" } }, { - "id": 350, + "id": 351, "name": "updateBucket", "kind": 2048, "kindString": "Method", @@ -62376,7 +62628,7 @@ }, "signatures": [ { - "id": 351, + "id": 352, "name": "updateBucket", "kind": 4096, "kindString": "Call signature", @@ -62388,7 +62640,7 @@ }, "parameters": [ { - "id": 352, + "id": 353, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -62404,7 +62656,7 @@ } }, { - "id": 353, + "id": 354, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -62414,7 +62666,7 @@ "type": { "type": "reflection", "declaration": { - "id": 354, + "id": 355, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -62423,7 +62675,7 @@ }, "children": [ { - "id": 355, + "id": 356, "name": "public", "kind": 32, "kindString": "Variable", @@ -62448,7 +62700,7 @@ "title": "Variables", "kind": 32, "children": [ - 355 + 356 ] } ], @@ -62469,7 +62721,7 @@ { "type": "reflection", "declaration": { - "id": 356, + "id": 357, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -62478,7 +62730,7 @@ }, "children": [ { - "id": 357, + "id": 358, "name": "data", "kind": 32, "kindString": "Variable", @@ -62498,7 +62750,7 @@ { "type": "reflection", "declaration": { - "id": 358, + "id": 359, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -62507,7 +62759,7 @@ }, "children": [ { - "id": 359, + "id": 360, "name": "message", "kind": 32, "kindString": "Variable", @@ -62532,7 +62784,7 @@ "title": "Variables", "kind": 32, "children": [ - 359 + 360 ] } ], @@ -62553,7 +62805,7 @@ } }, { - "id": 360, + "id": 361, "name": "error", "kind": 32, "kindString": "Variable", @@ -62587,8 +62839,8 @@ "title": "Variables", "kind": 32, "children": [ - 357, - 360 + 358, + 361 ] } ], @@ -62606,7 +62858,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 141, + "id": 142, "name": "StorageBucketApi.updateBucket" } } @@ -62620,7 +62872,7 @@ ], "inheritedFrom": { "type": "reference", - "id": 141, + "id": 142, "name": "StorageBucketApi.updateBucket" } } @@ -62630,29 +62882,29 @@ "title": "Constructors", "kind": 512, "children": [ - 313 + 314 ] }, { "title": "Properties", "kind": 1024, "children": [ - 329, - 325, - 324 + 330, + 326, + 325 ] }, { "title": "Methods", "kind": 2048, "children": [ - 341, - 369, - 361, - 321, - 335, - 330, - 350 + 342, + 370, + 362, + 322, + 336, + 331, + 351 ] } ], @@ -62666,7 +62918,7 @@ "extendedTypes": [ { "type": "reference", - "id": 106, + "id": 107, "name": "StorageBucketApi" } ] @@ -62677,7 +62929,7 @@ "title": "Classes", "kind": 128, "children": [ - 312 + 313 ] } ], @@ -62690,7 +62942,7 @@ ] }, { - "id": 377, + "id": 378, "name": "\"index\"", "kind": 1, "kindString": "Module", @@ -62700,7 +62952,7 @@ "originalName": "/home/runner/work/storage-js/storage-js/src/index.ts", "children": [ { - "id": 380, + "id": 381, "name": "Bucket", "kind": 16777216, "kindString": "Reference", @@ -62710,7 +62962,7 @@ "target": 74 }, { - "id": 381, + "id": 382, "name": "FileObject", "kind": 16777216, "kindString": "Reference", @@ -62720,7 +62972,7 @@ "target": 81 }, { - "id": 383, + "id": 384, "name": "FileOptions", "kind": 16777216, "kindString": "Reference", @@ -62730,17 +62982,17 @@ "target": 95 }, { - "id": 385, + "id": 386, "name": "Metadata", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 103 + "target": 104 }, { - "id": 384, + "id": 385, "name": "SearchOptions", "kind": 16777216, "kindString": "Reference", @@ -62750,7 +63002,7 @@ "target": 99 }, { - "id": 382, + "id": 383, "name": "SortBy", "kind": 16777216, "kindString": "Reference", @@ -62760,24 +63012,24 @@ "target": 92 }, { - "id": 378, + "id": 379, "name": "StorageClient", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 312 + "target": 313 }, { - "id": 379, + "id": 380, "name": "SupabaseStorageClient", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 312 + "target": 313 } ], "groups": [ @@ -62785,14 +63037,14 @@ "title": "References", "kind": 16777216, "children": [ - 380, 381, - 383, - 385, - 384, 382, - 378, - 379 + 384, + 386, + 385, + 383, + 379, + 380 ] } ], @@ -62805,7 +63057,7 @@ ] }, { - "id": 105, + "id": 106, "name": "\"lib/StorageBucketApi\"", "kind": 1, "kindString": "Module", @@ -62815,7 +63067,7 @@ "originalName": "/home/runner/work/storage-js/storage-js/src/lib/StorageBucketApi.ts", "children": [ { - "id": 106, + "id": 107, "name": "StorageBucketApi", "kind": 128, "kindString": "Class", @@ -62824,7 +63076,7 @@ }, "children": [ { - "id": 113, + "id": 114, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -62833,7 +63085,7 @@ }, "signatures": [ { - "id": 114, + "id": 115, "name": "new StorageBucketApi", "kind": 16384, "kindString": "Constructor signature", @@ -62842,7 +63094,7 @@ }, "parameters": [ { - "id": 115, + "id": 116, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -62855,7 +63107,7 @@ } }, { - "id": 116, + "id": 117, "name": "headers", "kind": 32768, "kindString": "Parameter", @@ -62865,7 +63117,7 @@ "type": { "type": "reflection", "declaration": { - "id": 117, + "id": 118, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -62874,7 +63126,7 @@ }, "indexSignature": [ { - "id": 118, + "id": 119, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -62883,7 +63135,7 @@ }, "parameters": [ { - "id": 119, + "id": 120, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -62914,7 +63166,7 @@ "defaultValue": "{}" }, { - "id": 120, + "id": 121, "name": "fetch", "kind": 32768, "kindString": "Parameter", @@ -62931,7 +63183,7 @@ ], "type": { "type": "reference", - "id": 106, + "id": 107, "name": "StorageBucketApi" } } @@ -62945,7 +63197,7 @@ ] }, { - "id": 112, + "id": 113, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -62967,7 +63219,7 @@ } }, { - "id": 108, + "id": 109, "name": "headers", "kind": 1024, "kindString": "Property", @@ -62985,7 +63237,7 @@ "type": { "type": "reflection", "declaration": { - "id": 109, + "id": 110, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -62994,7 +63246,7 @@ }, "indexSignature": [ { - "id": 110, + "id": 111, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -63003,7 +63255,7 @@ }, "parameters": [ { - "id": 111, + "id": 112, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -63033,7 +63285,7 @@ } }, { - "id": 107, + "id": 108, "name": "url", "kind": 1024, "kindString": "Property", @@ -63054,7 +63306,7 @@ } }, { - "id": 132, + "id": 133, "name": "createBucket", "kind": 2048, "kindString": "Method", @@ -63063,7 +63315,7 @@ }, "signatures": [ { - "id": 133, + "id": 134, "name": "createBucket", "kind": 4096, "kindString": "Call signature", @@ -63076,7 +63328,7 @@ }, "parameters": [ { - "id": 134, + "id": 135, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -63092,7 +63344,7 @@ } }, { - "id": 135, + "id": 136, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -63102,7 +63354,7 @@ "type": { "type": "reflection", "declaration": { - "id": 136, + "id": 137, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -63111,7 +63363,7 @@ }, "children": [ { - "id": 137, + "id": 138, "name": "public", "kind": 32, "kindString": "Variable", @@ -63136,7 +63388,7 @@ "title": "Variables", "kind": 32, "children": [ - 137 + 138 ] } ], @@ -63158,7 +63410,7 @@ { "type": "reflection", "declaration": { - "id": 138, + "id": 139, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -63167,7 +63419,7 @@ }, "children": [ { - "id": 139, + "id": 140, "name": "data", "kind": 32, "kindString": "Variable", @@ -63196,7 +63448,7 @@ } }, { - "id": 140, + "id": 141, "name": "error", "kind": 32, "kindString": "Variable", @@ -63230,8 +63482,8 @@ "title": "Variables", "kind": 32, "children": [ - 139, - 140 + 140, + 141 ] } ], @@ -63258,7 +63510,7 @@ ] }, { - "id": 160, + "id": 161, "name": "deleteBucket", "kind": 2048, "kindString": "Method", @@ -63267,7 +63519,7 @@ }, "signatures": [ { - "id": 161, + "id": 162, "name": "deleteBucket", "kind": 4096, "kindString": "Call signature", @@ -63279,7 +63531,7 @@ }, "parameters": [ { - "id": 162, + "id": 163, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -63301,7 +63553,7 @@ { "type": "reflection", "declaration": { - "id": 163, + "id": 164, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -63310,7 +63562,7 @@ }, "children": [ { - "id": 164, + "id": 165, "name": "data", "kind": 32, "kindString": "Variable", @@ -63330,7 +63582,7 @@ { "type": "reflection", "declaration": { - "id": 165, + "id": 166, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -63339,7 +63591,7 @@ }, "children": [ { - "id": 166, + "id": 167, "name": "message", "kind": 32, "kindString": "Variable", @@ -63364,7 +63616,7 @@ "title": "Variables", "kind": 32, "children": [ - 166 + 167 ] } ], @@ -63385,7 +63637,7 @@ } }, { - "id": 167, + "id": 168, "name": "error", "kind": 32, "kindString": "Variable", @@ -63419,8 +63671,8 @@ "title": "Variables", "kind": 32, "children": [ - 164, - 167 + 165, + 168 ] } ], @@ -63447,7 +63699,7 @@ ] }, { - "id": 152, + "id": 153, "name": "emptyBucket", "kind": 2048, "kindString": "Method", @@ -63456,7 +63708,7 @@ }, "signatures": [ { - "id": 153, + "id": 154, "name": "emptyBucket", "kind": 4096, "kindString": "Call signature", @@ -63468,7 +63720,7 @@ }, "parameters": [ { - "id": 154, + "id": 155, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -63490,7 +63742,7 @@ { "type": "reflection", "declaration": { - "id": 155, + "id": 156, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -63499,7 +63751,7 @@ }, "children": [ { - "id": 156, + "id": 157, "name": "data", "kind": 32, "kindString": "Variable", @@ -63519,7 +63771,7 @@ { "type": "reflection", "declaration": { - "id": 157, + "id": 158, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -63528,7 +63780,7 @@ }, "children": [ { - "id": 158, + "id": 159, "name": "message", "kind": 32, "kindString": "Variable", @@ -63553,7 +63805,7 @@ "title": "Variables", "kind": 32, "children": [ - 158 + 159 ] } ], @@ -63574,7 +63826,7 @@ } }, { - "id": 159, + "id": 160, "name": "error", "kind": 32, "kindString": "Variable", @@ -63608,8 +63860,8 @@ "title": "Variables", "kind": 32, "children": [ - 156, - 159 + 157, + 160 ] } ], @@ -63636,7 +63888,7 @@ ] }, { - "id": 126, + "id": 127, "name": "getBucket", "kind": 2048, "kindString": "Method", @@ -63645,7 +63897,7 @@ }, "signatures": [ { - "id": 127, + "id": 128, "name": "getBucket", "kind": 4096, "kindString": "Call signature", @@ -63657,7 +63909,7 @@ }, "parameters": [ { - "id": 128, + "id": 129, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -63679,7 +63931,7 @@ { "type": "reflection", "declaration": { - "id": 129, + "id": 130, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -63688,7 +63940,7 @@ }, "children": [ { - "id": 130, + "id": 131, "name": "data", "kind": 32, "kindString": "Variable", @@ -63718,7 +63970,7 @@ } }, { - "id": 131, + "id": 132, "name": "error", "kind": 32, "kindString": "Variable", @@ -63752,8 +64004,8 @@ "title": "Variables", "kind": 32, "children": [ - 130, - 131 + 131, + 132 ] } ], @@ -63780,7 +64032,7 @@ ] }, { - "id": 121, + "id": 122, "name": "listBuckets", "kind": 2048, "kindString": "Method", @@ -63789,7 +64041,7 @@ }, "signatures": [ { - "id": 122, + "id": 123, "name": "listBuckets", "kind": 4096, "kindString": "Call signature", @@ -63797,7 +64049,7 @@ "isExported": true }, "comment": { - "shortText": "Retrieves the details of all Storage buckets within an existing product." + "shortText": "Retrieves the details of all Storage buckets within an existing project." }, "type": { "type": "reference", @@ -63805,7 +64057,7 @@ { "type": "reflection", "declaration": { - "id": 123, + "id": 124, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -63814,7 +64066,7 @@ }, "children": [ { - "id": 124, + "id": 125, "name": "data", "kind": 32, "kindString": "Variable", @@ -63847,7 +64099,7 @@ } }, { - "id": 125, + "id": 126, "name": "error", "kind": 32, "kindString": "Variable", @@ -63881,8 +64133,8 @@ "title": "Variables", "kind": 32, "children": [ - 124, - 125 + 125, + 126 ] } ], @@ -63909,7 +64161,7 @@ ] }, { - "id": 141, + "id": 142, "name": "updateBucket", "kind": 2048, "kindString": "Method", @@ -63918,7 +64170,7 @@ }, "signatures": [ { - "id": 142, + "id": 143, "name": "updateBucket", "kind": 4096, "kindString": "Call signature", @@ -63930,7 +64182,7 @@ }, "parameters": [ { - "id": 143, + "id": 144, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -63946,7 +64198,7 @@ } }, { - "id": 144, + "id": 145, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -63956,7 +64208,7 @@ "type": { "type": "reflection", "declaration": { - "id": 145, + "id": 146, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -63965,7 +64217,7 @@ }, "children": [ { - "id": 146, + "id": 147, "name": "public", "kind": 32, "kindString": "Variable", @@ -63990,7 +64242,7 @@ "title": "Variables", "kind": 32, "children": [ - 146 + 147 ] } ], @@ -64011,7 +64263,7 @@ { "type": "reflection", "declaration": { - "id": 147, + "id": 148, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -64020,7 +64272,7 @@ }, "children": [ { - "id": 148, + "id": 149, "name": "data", "kind": 32, "kindString": "Variable", @@ -64040,7 +64292,7 @@ { "type": "reflection", "declaration": { - "id": 149, + "id": 150, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -64049,7 +64301,7 @@ }, "children": [ { - "id": 150, + "id": 151, "name": "message", "kind": 32, "kindString": "Variable", @@ -64074,7 +64326,7 @@ "title": "Variables", "kind": 32, "children": [ - 150 + 151 ] } ], @@ -64095,7 +64347,7 @@ } }, { - "id": 151, + "id": 152, "name": "error", "kind": 32, "kindString": "Variable", @@ -64129,8 +64381,8 @@ "title": "Variables", "kind": 32, "children": [ - 148, - 151 + 149, + 152 ] } ], @@ -64162,28 +64414,28 @@ "title": "Constructors", "kind": 512, "children": [ - 113 + 114 ] }, { "title": "Properties", "kind": 1024, "children": [ - 112, - 108, - 107 + 113, + 109, + 108 ] }, { "title": "Methods", "kind": 2048, "children": [ - 132, - 160, - 152, - 126, - 121, - 141 + 133, + 161, + 153, + 127, + 122, + 142 ] } ], @@ -64197,7 +64449,7 @@ "extendedBy": [ { "type": "reference", - "id": 312, + "id": 313, "name": "StorageClient" } ] @@ -64208,7 +64460,7 @@ "title": "Classes", "kind": 128, "children": [ - 106 + 107 ] } ], @@ -64221,7 +64473,7 @@ ] }, { - "id": 168, + "id": 169, "name": "\"lib/StorageFileApi\"", "kind": 1, "kindString": "Module", @@ -64231,7 +64483,7 @@ "originalName": "/home/runner/work/storage-js/storage-js/src/lib/StorageFileApi.ts", "children": [ { - "id": 169, + "id": 170, "name": "StorageFileApi", "kind": 128, "kindString": "Class", @@ -64240,7 +64492,7 @@ }, "children": [ { - "id": 177, + "id": 178, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -64249,7 +64501,7 @@ }, "signatures": [ { - "id": 178, + "id": 179, "name": "new StorageFileApi", "kind": 16384, "kindString": "Constructor signature", @@ -64258,7 +64510,7 @@ }, "parameters": [ { - "id": 179, + "id": 180, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -64271,7 +64523,7 @@ } }, { - "id": 180, + "id": 181, "name": "headers", "kind": 32768, "kindString": "Parameter", @@ -64281,7 +64533,7 @@ "type": { "type": "reflection", "declaration": { - "id": 181, + "id": 182, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -64290,7 +64542,7 @@ }, "indexSignature": [ { - "id": 182, + "id": 183, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -64299,7 +64551,7 @@ }, "parameters": [ { - "id": 183, + "id": 184, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -64330,7 +64582,7 @@ "defaultValue": "{}" }, { - "id": 184, + "id": 185, "name": "bucketId", "kind": 32768, "kindString": "Parameter", @@ -64353,7 +64605,7 @@ } }, { - "id": 185, + "id": 186, "name": "fetch", "kind": 32768, "kindString": "Parameter", @@ -64370,7 +64622,7 @@ ], "type": { "type": "reference", - "id": 169, + "id": 170, "name": "StorageFileApi" } } @@ -64384,7 +64636,7 @@ ] }, { - "id": 175, + "id": 176, "name": "bucketId", "kind": 1024, "kindString": "Property", @@ -64415,7 +64667,7 @@ } }, { - "id": 176, + "id": 177, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -64437,7 +64689,7 @@ } }, { - "id": 171, + "id": 172, "name": "headers", "kind": 1024, "kindString": "Property", @@ -64455,7 +64707,7 @@ "type": { "type": "reflection", "declaration": { - "id": 172, + "id": 173, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -64464,7 +64716,7 @@ }, "indexSignature": [ { - "id": 173, + "id": 174, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -64473,7 +64725,7 @@ }, "parameters": [ { - "id": 174, + "id": 175, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -64503,7 +64755,7 @@ } }, { - "id": 170, + "id": 171, "name": "url", "kind": 1024, "kindString": "Property", @@ -64524,7 +64776,7 @@ } }, { - "id": 285, + "id": 286, "name": "_getFinalPath", "kind": 2048, "kindString": "Method", @@ -64533,7 +64785,7 @@ }, "signatures": [ { - "id": 286, + "id": 287, "name": "_getFinalPath", "kind": 4096, "kindString": "Call signature", @@ -64542,7 +64794,7 @@ }, "parameters": [ { - "id": 287, + "id": 288, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -64570,7 +64822,7 @@ ] }, { - "id": 288, + "id": 289, "name": "_removeEmptyFolders", "kind": 2048, "kindString": "Method", @@ -64579,7 +64831,7 @@ }, "signatures": [ { - "id": 289, + "id": 290, "name": "_removeEmptyFolders", "kind": 4096, "kindString": "Call signature", @@ -64588,7 +64840,7 @@ }, "parameters": [ { - "id": 290, + "id": 291, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -64616,7 +64868,7 @@ ] }, { - "id": 226, + "id": 227, "name": "copy", "kind": 2048, "kindString": "Method", @@ -64625,7 +64877,7 @@ }, "signatures": [ { - "id": 227, + "id": 228, "name": "copy", "kind": 4096, "kindString": "Call signature", @@ -64637,7 +64889,7 @@ }, "parameters": [ { - "id": 228, + "id": 229, "name": "fromPath", "kind": 32768, "kindString": "Parameter", @@ -64653,7 +64905,7 @@ } }, { - "id": 229, + "id": 230, "name": "toPath", "kind": 32768, "kindString": "Parameter", @@ -64675,7 +64927,7 @@ { "type": "reflection", "declaration": { - "id": 230, + "id": 231, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -64684,7 +64936,7 @@ }, "children": [ { - "id": 231, + "id": 232, "name": "data", "kind": 32, "kindString": "Variable", @@ -64704,7 +64956,7 @@ { "type": "reflection", "declaration": { - "id": 232, + "id": 233, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -64713,7 +64965,7 @@ }, "children": [ { - "id": 233, + "id": 234, "name": "message", "kind": 32, "kindString": "Variable", @@ -64738,7 +64990,7 @@ "title": "Variables", "kind": 32, "children": [ - 233 + 234 ] } ], @@ -64759,7 +65011,7 @@ } }, { - "id": 234, + "id": 235, "name": "error", "kind": 32, "kindString": "Variable", @@ -64793,8 +65045,8 @@ "title": "Variables", "kind": 32, "children": [ - 231, - 234 + 232, + 235 ] } ], @@ -64821,7 +65073,7 @@ ] }, { - "id": 235, + "id": 236, "name": "createSignedUrl", "kind": 2048, "kindString": "Method", @@ -64830,7 +65082,7 @@ }, "signatures": [ { - "id": 236, + "id": 237, "name": "createSignedUrl", "kind": 4096, "kindString": "Call signature", @@ -64842,7 +65094,7 @@ }, "parameters": [ { - "id": 237, + "id": 238, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -64858,7 +65110,7 @@ } }, { - "id": 238, + "id": 239, "name": "expiresIn", "kind": 32768, "kindString": "Parameter", @@ -64880,7 +65132,7 @@ { "type": "reflection", "declaration": { - "id": 239, + "id": 240, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -64889,7 +65141,7 @@ }, "children": [ { - "id": 240, + "id": 241, "name": "data", "kind": 32, "kindString": "Variable", @@ -64909,7 +65161,7 @@ { "type": "reflection", "declaration": { - "id": 241, + "id": 242, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -64918,7 +65170,7 @@ }, "children": [ { - "id": 242, + "id": 243, "name": "signedURL", "kind": 32, "kindString": "Variable", @@ -64943,7 +65195,7 @@ "title": "Variables", "kind": 32, "children": [ - 242 + 243 ] } ], @@ -64964,7 +65216,7 @@ } }, { - "id": 243, + "id": 244, "name": "error", "kind": 32, "kindString": "Variable", @@ -64993,7 +65245,7 @@ } }, { - "id": 244, + "id": 245, "name": "signedURL", "kind": 32, "kindString": "Variable", @@ -65027,9 +65279,9 @@ "title": "Variables", "kind": 32, "children": [ - 240, - 243, - 244 + 241, + 244, + 245 ] } ], @@ -65056,7 +65308,7 @@ ] }, { - "id": 245, + "id": 246, "name": "createSignedUrls", "kind": 2048, "kindString": "Method", @@ -65065,7 +65317,7 @@ }, "signatures": [ { - "id": 246, + "id": 247, "name": "createSignedUrls", "kind": 4096, "kindString": "Call signature", @@ -65077,7 +65329,7 @@ }, "parameters": [ { - "id": 247, + "id": 248, "name": "paths", "kind": 32768, "kindString": "Parameter", @@ -65096,7 +65348,7 @@ } }, { - "id": 248, + "id": 249, "name": "expiresIn", "kind": 32768, "kindString": "Parameter", @@ -65118,7 +65370,7 @@ { "type": "reflection", "declaration": { - "id": 249, + "id": 250, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -65127,7 +65379,7 @@ }, "children": [ { - "id": 250, + "id": 251, "name": "data", "kind": 32, "kindString": "Variable", @@ -65149,7 +65401,7 @@ "elementType": { "type": "reflection", "declaration": { - "id": 251, + "id": 252, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -65158,7 +65410,7 @@ }, "children": [ { - "id": 252, + "id": 253, "name": "error", "kind": 32, "kindString": "Variable", @@ -65187,7 +65439,7 @@ } }, { - "id": 253, + "id": 254, "name": "path", "kind": 32, "kindString": "Variable", @@ -65216,7 +65468,7 @@ } }, { - "id": 254, + "id": 255, "name": "signedURL", "kind": 32, "kindString": "Variable", @@ -65241,9 +65493,9 @@ "title": "Variables", "kind": 32, "children": [ - 252, 253, - 254 + 254, + 255 ] } ], @@ -65265,7 +65517,7 @@ } }, { - "id": 255, + "id": 256, "name": "error", "kind": 32, "kindString": "Variable", @@ -65299,8 +65551,8 @@ "title": "Variables", "kind": 32, "children": [ - 250, - 255 + 251, + 256 ] } ], @@ -65327,7 +65579,7 @@ ] }, { - "id": 256, + "id": 257, "name": "download", "kind": 2048, "kindString": "Method", @@ -65336,7 +65588,7 @@ }, "signatures": [ { - "id": 257, + "id": 258, "name": "download", "kind": 4096, "kindString": "Call signature", @@ -65348,7 +65600,7 @@ }, "parameters": [ { - "id": 258, + "id": 259, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -65370,7 +65622,7 @@ { "type": "reflection", "declaration": { - "id": 259, + "id": 260, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -65379,7 +65631,7 @@ }, "children": [ { - "id": 260, + "id": 261, "name": "data", "kind": 32, "kindString": "Variable", @@ -65408,7 +65660,7 @@ } }, { - "id": 261, + "id": 262, "name": "error", "kind": 32, "kindString": "Variable", @@ -65442,8 +65694,8 @@ "title": "Variables", "kind": 32, "children": [ - 260, - 261 + 261, + 262 ] } ], @@ -65470,7 +65722,7 @@ ] }, { - "id": 262, + "id": 263, "name": "getPublicUrl", "kind": 2048, "kindString": "Method", @@ -65479,7 +65731,7 @@ }, "signatures": [ { - "id": 263, + "id": 264, "name": "getPublicUrl", "kind": 4096, "kindString": "Call signature", @@ -65491,7 +65743,7 @@ }, "parameters": [ { - "id": 264, + "id": 265, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -65510,7 +65762,7 @@ "type": { "type": "reflection", "declaration": { - "id": 265, + "id": 266, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -65519,7 +65771,7 @@ }, "children": [ { - "id": 266, + "id": 267, "name": "data", "kind": 32, "kindString": "Variable", @@ -65539,7 +65791,7 @@ { "type": "reflection", "declaration": { - "id": 267, + "id": 268, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -65548,7 +65800,7 @@ }, "children": [ { - "id": 268, + "id": 269, "name": "publicURL", "kind": 32, "kindString": "Variable", @@ -65573,7 +65825,7 @@ "title": "Variables", "kind": 32, "children": [ - 268 + 269 ] } ], @@ -65594,7 +65846,7 @@ } }, { - "id": 269, + "id": 270, "name": "error", "kind": 32, "kindString": "Variable", @@ -65623,7 +65875,7 @@ } }, { - "id": 270, + "id": 271, "name": "publicURL", "kind": 32, "kindString": "Variable", @@ -65657,9 +65909,9 @@ "title": "Variables", "kind": 32, "children": [ - 266, - 269, - 270 + 267, + 270, + 271 ] } ], @@ -65683,7 +65935,7 @@ ] }, { - "id": 277, + "id": 278, "name": "list", "kind": 2048, "kindString": "Method", @@ -65692,7 +65944,7 @@ }, "signatures": [ { - "id": 278, + "id": 279, "name": "list", "kind": 4096, "kindString": "Call signature", @@ -65704,7 +65956,7 @@ }, "parameters": [ { - "id": 279, + "id": 280, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -65730,7 +65982,7 @@ } }, { - "id": 280, + "id": 281, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -65748,7 +66000,7 @@ } }, { - "id": 281, + "id": 282, "name": "parameters", "kind": 32768, "kindString": "Parameter", @@ -65772,7 +66024,7 @@ { "type": "reflection", "declaration": { - "id": 282, + "id": 283, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -65781,7 +66033,7 @@ }, "children": [ { - "id": 283, + "id": 284, "name": "data", "kind": 32, "kindString": "Variable", @@ -65814,7 +66066,7 @@ } }, { - "id": 284, + "id": 285, "name": "error", "kind": 32, "kindString": "Variable", @@ -65848,8 +66100,8 @@ "title": "Variables", "kind": 32, "children": [ - 283, - 284 + 284, + 285 ] } ], @@ -65876,7 +66128,7 @@ ] }, { - "id": 217, + "id": 218, "name": "move", "kind": 2048, "kindString": "Method", @@ -65885,7 +66137,7 @@ }, "signatures": [ { - "id": 218, + "id": 219, "name": "move", "kind": 4096, "kindString": "Call signature", @@ -65897,7 +66149,7 @@ }, "parameters": [ { - "id": 219, + "id": 220, "name": "fromPath", "kind": 32768, "kindString": "Parameter", @@ -65913,7 +66165,7 @@ } }, { - "id": 220, + "id": 221, "name": "toPath", "kind": 32768, "kindString": "Parameter", @@ -65935,7 +66187,7 @@ { "type": "reflection", "declaration": { - "id": 221, + "id": 222, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -65944,7 +66196,7 @@ }, "children": [ { - "id": 222, + "id": 223, "name": "data", "kind": 32, "kindString": "Variable", @@ -65964,7 +66216,7 @@ { "type": "reflection", "declaration": { - "id": 223, + "id": 224, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -65973,7 +66225,7 @@ }, "children": [ { - "id": 224, + "id": 225, "name": "message", "kind": 32, "kindString": "Variable", @@ -65998,7 +66250,7 @@ "title": "Variables", "kind": 32, "children": [ - 224 + 225 ] } ], @@ -66019,7 +66271,7 @@ } }, { - "id": 225, + "id": 226, "name": "error", "kind": 32, "kindString": "Variable", @@ -66053,8 +66305,8 @@ "title": "Variables", "kind": 32, "children": [ - 222, - 225 + 223, + 226 ] } ], @@ -66081,7 +66333,7 @@ ] }, { - "id": 271, + "id": 272, "name": "remove", "kind": 2048, "kindString": "Method", @@ -66090,7 +66342,7 @@ }, "signatures": [ { - "id": 272, + "id": 273, "name": "remove", "kind": 4096, "kindString": "Call signature", @@ -66102,7 +66354,7 @@ }, "parameters": [ { - "id": 273, + "id": 274, "name": "paths", "kind": 32768, "kindString": "Parameter", @@ -66127,7 +66379,7 @@ { "type": "reflection", "declaration": { - "id": 274, + "id": 275, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -66136,7 +66388,7 @@ }, "children": [ { - "id": 275, + "id": 276, "name": "data", "kind": 32, "kindString": "Variable", @@ -66169,7 +66421,7 @@ } }, { - "id": 276, + "id": 277, "name": "error", "kind": 32, "kindString": "Variable", @@ -66203,8 +66455,8 @@ "title": "Variables", "kind": 32, "children": [ - 275, - 276 + 276, + 277 ] } ], @@ -66231,7 +66483,7 @@ ] }, { - "id": 207, + "id": 208, "name": "update", "kind": 2048, "kindString": "Method", @@ -66240,7 +66492,7 @@ }, "signatures": [ { - "id": 208, + "id": 209, "name": "update", "kind": 4096, "kindString": "Call signature", @@ -66252,7 +66504,7 @@ }, "parameters": [ { - "id": 209, + "id": 210, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -66268,7 +66520,7 @@ } }, { - "id": 210, + "id": 211, "name": "fileBody", "kind": 32768, "kindString": "Parameter", @@ -66331,7 +66583,7 @@ } }, { - "id": 211, + "id": 212, "name": "fileOptions", "kind": 32768, "kindString": "Parameter", @@ -66355,7 +66607,7 @@ { "type": "reflection", "declaration": { - "id": 212, + "id": 213, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -66364,7 +66616,7 @@ }, "children": [ { - "id": 213, + "id": 214, "name": "data", "kind": 32, "kindString": "Variable", @@ -66384,7 +66636,7 @@ { "type": "reflection", "declaration": { - "id": 214, + "id": 215, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -66393,7 +66645,7 @@ }, "children": [ { - "id": 215, + "id": 216, "name": "Key", "kind": 32, "kindString": "Variable", @@ -66418,7 +66670,7 @@ "title": "Variables", "kind": 32, "children": [ - 215 + 216 ] } ], @@ -66439,7 +66691,7 @@ } }, { - "id": 216, + "id": 217, "name": "error", "kind": 32, "kindString": "Variable", @@ -66473,8 +66725,8 @@ "title": "Variables", "kind": 32, "children": [ - 213, - 216 + 214, + 217 ] } ], @@ -66501,7 +66753,7 @@ ] }, { - "id": 197, + "id": 198, "name": "upload", "kind": 2048, "kindString": "Method", @@ -66510,7 +66762,7 @@ }, "signatures": [ { - "id": 198, + "id": 199, "name": "upload", "kind": 4096, "kindString": "Call signature", @@ -66522,7 +66774,7 @@ }, "parameters": [ { - "id": 199, + "id": 200, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -66538,7 +66790,7 @@ } }, { - "id": 200, + "id": 201, "name": "fileBody", "kind": 32768, "kindString": "Parameter", @@ -66601,7 +66853,7 @@ } }, { - "id": 201, + "id": 202, "name": "fileOptions", "kind": 32768, "kindString": "Parameter", @@ -66625,7 +66877,7 @@ { "type": "reflection", "declaration": { - "id": 202, + "id": 203, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -66634,7 +66886,7 @@ }, "children": [ { - "id": 203, + "id": 204, "name": "data", "kind": 32, "kindString": "Variable", @@ -66654,7 +66906,7 @@ { "type": "reflection", "declaration": { - "id": 204, + "id": 205, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -66663,7 +66915,7 @@ }, "children": [ { - "id": 205, + "id": 206, "name": "Key", "kind": 32, "kindString": "Variable", @@ -66688,7 +66940,7 @@ "title": "Variables", "kind": 32, "children": [ - 205 + 206 ] } ], @@ -66709,7 +66961,7 @@ } }, { - "id": 206, + "id": 207, "name": "error", "kind": 32, "kindString": "Variable", @@ -66743,8 +66995,8 @@ "title": "Variables", "kind": 32, "children": [ - 203, - 206 + 204, + 207 ] } ], @@ -66771,7 +67023,7 @@ ] }, { - "id": 186, + "id": 187, "name": "uploadOrUpdate", "kind": 2048, "kindString": "Method", @@ -66781,7 +67033,7 @@ }, "signatures": [ { - "id": 187, + "id": 188, "name": "uploadOrUpdate", "kind": 4096, "kindString": "Call signature", @@ -66793,7 +67045,7 @@ }, "parameters": [ { - "id": 188, + "id": 189, "name": "method", "kind": 32768, "kindString": "Parameter", @@ -66818,7 +67070,7 @@ } }, { - "id": 189, + "id": 190, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -66834,7 +67086,7 @@ } }, { - "id": 190, + "id": 191, "name": "fileBody", "kind": 32768, "kindString": "Parameter", @@ -66897,7 +67149,7 @@ } }, { - "id": 191, + "id": 192, "name": "fileOptions", "kind": 32768, "kindString": "Parameter", @@ -66921,7 +67173,7 @@ { "type": "reflection", "declaration": { - "id": 192, + "id": 193, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -66930,7 +67182,7 @@ }, "children": [ { - "id": 193, + "id": 194, "name": "data", "kind": 32, "kindString": "Variable", @@ -66950,7 +67202,7 @@ { "type": "reflection", "declaration": { - "id": 194, + "id": 195, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -66959,7 +67211,7 @@ }, "children": [ { - "id": 195, + "id": 196, "name": "Key", "kind": 32, "kindString": "Variable", @@ -66984,7 +67236,7 @@ "title": "Variables", "kind": 32, "children": [ - 195 + 196 ] } ], @@ -67005,7 +67257,7 @@ } }, { - "id": 196, + "id": 197, "name": "error", "kind": 32, "kindString": "Variable", @@ -67039,8 +67291,8 @@ "title": "Variables", "kind": 32, "children": [ - 193, - 196 + 194, + 197 ] } ], @@ -67072,36 +67324,36 @@ "title": "Constructors", "kind": 512, "children": [ - 177 + 178 ] }, { "title": "Properties", "kind": 1024, "children": [ - 175, 176, - 171, - 170 + 177, + 172, + 171 ] }, { "title": "Methods", "kind": 2048, "children": [ - 285, - 288, - 226, - 235, - 245, - 256, - 262, - 277, - 217, - 271, - 207, - 197, - 186 + 286, + 289, + 227, + 236, + 246, + 257, + 263, + 278, + 218, + 272, + 208, + 198, + 187 ] } ], @@ -67114,7 +67366,7 @@ ] }, { - "id": 297, + "id": 298, "name": "DEFAULT_FILE_OPTIONS", "kind": 2097152, "kindString": "Object literal", @@ -67123,7 +67375,7 @@ }, "children": [ { - "id": 298, + "id": 299, "name": "cacheControl", "kind": 32, "kindString": "Variable", @@ -67142,7 +67394,7 @@ "defaultValue": "\"3600\"" }, { - "id": 299, + "id": 300, "name": "contentType", "kind": 32, "kindString": "Variable", @@ -67161,7 +67413,7 @@ "defaultValue": "\"text/plain;charset=UTF-8\"" }, { - "id": 300, + "id": 301, "name": "upsert", "kind": 32, "kindString": "Variable", @@ -67185,9 +67437,9 @@ "title": "Variables", "kind": 32, "children": [ - 298, 299, - 300 + 300, + 301 ] } ], @@ -67204,7 +67456,7 @@ } }, { - "id": 291, + "id": 292, "name": "DEFAULT_SEARCH_OPTIONS", "kind": 2097152, "kindString": "Object literal", @@ -67213,7 +67465,7 @@ }, "children": [ { - "id": 292, + "id": 293, "name": "limit", "kind": 32, "kindString": "Variable", @@ -67232,7 +67484,7 @@ "defaultValue": "100" }, { - "id": 293, + "id": 294, "name": "offset", "kind": 32, "kindString": "Variable", @@ -67251,14 +67503,14 @@ "defaultValue": "0" }, { - "id": 294, + "id": 295, "name": "sortBy", "kind": 2097152, "kindString": "Object literal", "flags": {}, "children": [ { - "id": 295, + "id": 296, "name": "column", "kind": 32, "kindString": "Variable", @@ -67277,7 +67529,7 @@ "defaultValue": "\"name\"" }, { - "id": 296, + "id": 297, "name": "order", "kind": 32, "kindString": "Variable", @@ -67301,8 +67553,8 @@ "title": "Variables", "kind": 32, "children": [ - 295, - 296 + 296, + 297 ] } ], @@ -67324,15 +67576,15 @@ "title": "Variables", "kind": 32, "children": [ - 292, - 293 + 293, + 294 ] }, { "title": "Object literals", "kind": 2097152, "children": [ - 294 + 295 ] } ], @@ -67354,15 +67606,15 @@ "title": "Classes", "kind": 128, "children": [ - 169 + 170 ] }, { "title": "Object literals", "kind": 2097152, "children": [ - 297, - 291 + 298, + 292 ] } ], @@ -68614,7 +68866,7 @@ ] }, { - "id": 301, + "id": 302, "name": "\"lib/index\"", "kind": 1, "kindString": "Module", @@ -68624,7 +68876,7 @@ "originalName": "/home/runner/work/storage-js/storage-js/src/lib/index.ts", "children": [ { - "id": 304, + "id": 305, "name": "Bucket", "kind": 16777216, "kindString": "Reference", @@ -68634,7 +68886,7 @@ "target": 74 }, { - "id": 310, + "id": 311, "name": "DEFAULT_HEADERS", "kind": 16777216, "kindString": "Reference", @@ -68644,7 +68896,7 @@ "target": 4 }, { - "id": 305, + "id": 306, "name": "FileObject", "kind": 16777216, "kindString": "Reference", @@ -68654,7 +68906,7 @@ "target": 81 }, { - "id": 307, + "id": 308, "name": "FileOptions", "kind": 16777216, "kindString": "Reference", @@ -68664,17 +68916,17 @@ "target": 95 }, { - "id": 309, + "id": 310, "name": "Metadata", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 103 + "target": 104 }, { - "id": 308, + "id": 309, "name": "SearchOptions", "kind": 16777216, "kindString": "Reference", @@ -68684,7 +68936,7 @@ "target": 99 }, { - "id": 306, + "id": 307, "name": "SortBy", "kind": 16777216, "kindString": "Reference", @@ -68694,24 +68946,24 @@ "target": 92 }, { - "id": 302, + "id": 303, "name": "StorageBucketApi", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 106 + "target": 107 }, { - "id": 303, + "id": 304, "name": "StorageFileApi", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 169 + "target": 170 } ], "groups": [ @@ -68719,15 +68971,15 @@ "title": "References", "kind": 16777216, "children": [ - 304, - 310, 305, - 307, - 309, - 308, + 311, 306, - 302, - 303 + 308, + 310, + 309, + 307, + 303, + 304 ] } ], @@ -69256,7 +69508,7 @@ ] }, { - "id": 103, + "id": 104, "name": "Metadata", "kind": 256, "kindString": "Interface", @@ -69265,7 +69517,7 @@ }, "children": [ { - "id": 104, + "id": 105, "name": "name", "kind": 1024, "kindString": "Property", @@ -69275,7 +69527,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 46, + "line": 49, "character": 6 } ], @@ -69290,14 +69542,14 @@ "title": "Properties", "kind": 1024, "children": [ - 104 + 105 ] } ], "sources": [ { "fileName": "lib/types.ts", - "line": 45, + "line": 48, "character": 25 } ] @@ -69377,6 +69629,39 @@ ] } }, + { + "id": 103, + "name": "search", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "The search string to filter files by." + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 44, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, { "id": 102, "name": "sortBy", @@ -69410,6 +69695,7 @@ "children": [ 100, 101, + 103, 102 ] } @@ -69519,7 +69805,7 @@ 74, 81, 95, - 103, + 104, 99, 92 ] @@ -69589,14 +69875,14 @@ "title": "Modules", "kind": 1, "children": [ - 311, - 377, - 105, - 168, + 312, + 378, + 106, + 169, 3, 6, 68, - 301, + 302, 73, 1 ] @@ -69788,7 +70074,8 @@ } ] } - } + }, + "defaultValue": "{}" } ], "type": { diff --git a/web/spec/functions.json b/web/spec/functions.json index ce3f77b2784..6676d2cb5b5 100644 --- a/web/spec/functions.json +++ b/web/spec/functions.json @@ -183,7 +183,8 @@ } ] } - } + }, + "defaultValue": "{}" } ], "type": { diff --git a/web/spec/realtime.json b/web/spec/realtime.json index e615258332c..78ecbff70ae 100644 --- a/web/spec/realtime.json +++ b/web/spec/realtime.json @@ -6,7 +6,7 @@ "originalName": "", "children": [ { - "id": 456, + "id": 466, "name": "\"RealtimeChannel\"", "kind": 1, "kindString": "Module", @@ -16,7 +16,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/RealtimeChannel.ts", "children": [ { - "id": 457, + "id": 467, "name": "RealtimeChannel", "kind": 128, "kindString": "Class", @@ -25,7 +25,7 @@ }, "children": [ { - "id": 466, + "id": 476, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -34,7 +34,7 @@ }, "signatures": [ { - "id": 473, + "id": 483, "name": "new RealtimeChannel", "kind": 16384, "kindString": "Constructor signature", @@ -43,7 +43,7 @@ }, "parameters": [ { - "id": 474, + "id": 484, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -56,7 +56,7 @@ } }, { - "id": 475, + "id": 485, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -66,7 +66,7 @@ "type": { "type": "reflection", "declaration": { - "id": 476, + "id": 486, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -75,7 +75,7 @@ }, "indexSignature": [ { - "id": 477, + "id": 487, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -84,7 +84,7 @@ }, "parameters": [ { - "id": 478, + "id": 488, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -115,7 +115,7 @@ "defaultValue": "{}" }, { - "id": 479, + "id": 489, "name": "socket", "kind": 32768, "kindString": "Parameter", @@ -124,14 +124,14 @@ }, "type": { "type": "reference", - "id": 69, + "id": 74, "name": "RealtimeClient" } } ], "type": { "type": "reference", - "id": 457, + "id": 467, "name": "RealtimeChannel" } } @@ -145,7 +145,7 @@ ] }, { - "id": 458, + "id": 468, "name": "bindings", "kind": 1024, "kindString": "Property", @@ -169,7 +169,7 @@ "defaultValue": "[]" }, { - "id": 462, + "id": 472, "name": "joinPush", "kind": 1024, "kindString": "Property", @@ -185,12 +185,12 @@ ], "type": { "type": "reference", - "id": 297, + "id": 307, "name": "Push" } }, { - "id": 461, + "id": 471, "name": "joinedOnce", "kind": 1024, "kindString": "Property", @@ -211,7 +211,7 @@ "defaultValue": "false" }, { - "id": 468, + "id": 478, "name": "params", "kind": 1024, "kindString": "Property", @@ -230,7 +230,7 @@ "type": { "type": "reflection", "declaration": { - "id": 469, + "id": 479, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -239,7 +239,7 @@ }, "indexSignature": [ { - "id": 470, + "id": 480, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -248,7 +248,7 @@ }, "parameters": [ { - "id": 471, + "id": 481, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -278,7 +278,7 @@ } }, { - "id": 465, + "id": 475, "name": "presence", "kind": 1024, "kindString": "Property", @@ -294,12 +294,12 @@ ], "type": { "type": "reference", - "id": 363, + "id": 373, "name": "RealtimePresence" } }, { - "id": 464, + "id": 474, "name": "pushBuffer", "kind": 1024, "kindString": "Property", @@ -317,14 +317,14 @@ "type": "array", "elementType": { "type": "reference", - "id": 297, + "id": 307, "name": "Push" } }, "defaultValue": "[]" }, { - "id": 463, + "id": 473, "name": "rejoinTimer", "kind": 1024, "kindString": "Property", @@ -340,12 +340,12 @@ ], "type": { "type": "reference", - "id": 30, + "id": 35, "name": "Timer" } }, { - "id": 472, + "id": 482, "name": "socket", "kind": 1024, "kindString": "Property", @@ -363,12 +363,12 @@ ], "type": { "type": "reference", - "id": 69, + "id": 74, "name": "RealtimeClient" } }, { - "id": 460, + "id": 470, "name": "state", "kind": 1024, "kindString": "Property", @@ -390,7 +390,7 @@ "defaultValue": "CHANNEL_STATES.closed" }, { - "id": 459, + "id": 469, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -410,7 +410,7 @@ } }, { - "id": 467, + "id": 477, "name": "topic", "kind": 1024, "kindString": "Property", @@ -432,7 +432,7 @@ } }, { - "id": 508, + "id": 518, "name": "canPush", "kind": 2048, "kindString": "Method", @@ -441,13 +441,16 @@ }, "signatures": [ { - "id": 509, + "id": 519, "name": "canPush", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, + "comment": { + "shortText": "Returns `true` if the socket is connected and the channel has been joined." + }, "type": { "type": "intrinsic", "name": "boolean" @@ -457,13 +460,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 136, + "line": 145, "character": 9 } ] }, { - "id": 552, + "id": 562, "name": "isClosed", "kind": 2048, "kindString": "Method", @@ -472,7 +475,7 @@ }, "signatures": [ { - "id": 553, + "id": 563, "name": "isClosed", "kind": 4096, "kindString": "Call signature", @@ -488,13 +491,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 249, + "line": 258, "character": 10 } ] }, { - "id": 554, + "id": 564, "name": "isErrored", "kind": 2048, "kindString": "Method", @@ -503,7 +506,7 @@ }, "signatures": [ { - "id": 555, + "id": 565, "name": "isErrored", "kind": 4096, "kindString": "Call signature", @@ -516,99 +519,6 @@ } } ], - "sources": [ - { - "fileName": "RealtimeChannel.ts", - "line": 252, - "character": 11 - } - ] - }, - { - "id": 556, - "name": "isJoined", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 557, - "name": "isJoined", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "sources": [ - { - "fileName": "RealtimeChannel.ts", - "line": 255, - "character": 10 - } - ] - }, - { - "id": 558, - "name": "isJoining", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 559, - "name": "isJoining", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "sources": [ - { - "fileName": "RealtimeChannel.ts", - "line": 258, - "character": 11 - } - ] - }, - { - "id": 560, - "name": "isLeaving", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 561, - "name": "isLeaving", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], "sources": [ { "fileName": "RealtimeChannel.ts", @@ -618,7 +528,100 @@ ] }, { - "id": 529, + "id": 566, + "name": "isJoined", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 567, + "name": "isJoined", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "sources": [ + { + "fileName": "RealtimeChannel.ts", + "line": 264, + "character": 10 + } + ] + }, + { + "id": 568, + "name": "isJoining", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 569, + "name": "isJoining", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "sources": [ + { + "fileName": "RealtimeChannel.ts", + "line": 267, + "character": 11 + } + ] + }, + { + "id": 570, + "name": "isLeaving", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 571, + "name": "isLeaving", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "sources": [ + { + "fileName": "RealtimeChannel.ts", + "line": 270, + "character": 11 + } + ] + }, + { + "id": 539, "name": "isMember", "kind": 2048, "kindString": "Method", @@ -627,7 +630,7 @@ }, "signatures": [ { - "id": 530, + "id": 540, "name": "isMember", "kind": 4096, "kindString": "Call signature", @@ -636,7 +639,7 @@ }, "parameters": [ { - "id": 531, + "id": 541, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -658,13 +661,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 197, + "line": 206, "character": 10 } ] }, { - "id": 532, + "id": 542, "name": "joinRef", "kind": 2048, "kindString": "Method", @@ -673,7 +676,7 @@ }, "signatures": [ { - "id": 533, + "id": 543, "name": "joinRef", "kind": 4096, "kindString": "Call signature", @@ -689,13 +692,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 201, + "line": 210, "character": 9 } ] }, { - "id": 480, + "id": 490, "name": "list", "kind": 2048, "kindString": "Method", @@ -704,7 +707,7 @@ }, "signatures": [ { - "id": 481, + "id": 491, "name": "list", "kind": 4096, "kindString": "Call signature", @@ -729,7 +732,7 @@ ] }, { - "id": 501, + "id": 511, "name": "off", "kind": 2048, "kindString": "Method", @@ -738,7 +741,7 @@ }, "signatures": [ { - "id": 502, + "id": 512, "name": "off", "kind": 4096, "kindString": "Call signature", @@ -747,7 +750,7 @@ }, "parameters": [ { - "id": 503, + "id": 513, "name": "type", "kind": 32768, "kindString": "Parameter", @@ -760,7 +763,7 @@ } }, { - "id": 504, + "id": 514, "name": "eventFilter", "kind": 32768, "kindString": "Parameter", @@ -770,7 +773,7 @@ "type": { "type": "reflection", "declaration": { - "id": 505, + "id": 515, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -779,7 +782,7 @@ }, "indexSignature": [ { - "id": 506, + "id": 516, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -788,7 +791,7 @@ }, "parameters": [ { - "id": 507, + "id": 517, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -810,7 +813,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 127, + "line": 133, "character": 32 } ] @@ -827,13 +830,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 127, + "line": 133, "character": 5 } ] }, { - "id": 493, + "id": 503, "name": "on", "kind": 2048, "kindString": "Method", @@ -842,7 +845,7 @@ }, "signatures": [ { - "id": 494, + "id": 504, "name": "on", "kind": 4096, "kindString": "Call signature", @@ -851,7 +854,7 @@ }, "parameters": [ { - "id": 495, + "id": 505, "name": "type", "kind": 32768, "kindString": "Parameter", @@ -864,7 +867,7 @@ } }, { - "id": 496, + "id": 506, "name": "eventFilter", "kind": 32768, "kindString": "Parameter", @@ -882,7 +885,7 @@ { "type": "reflection", "declaration": { - "id": 497, + "id": 507, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -891,7 +894,7 @@ }, "indexSignature": [ { - "id": 498, + "id": 508, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -900,7 +903,7 @@ }, "parameters": [ { - "id": 499, + "id": 509, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -925,7 +928,7 @@ } }, { - "id": 500, + "id": 510, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -948,13 +951,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 119, + "line": 125, "character": 4 } ] }, { - "id": 487, + "id": 497, "name": "onClose", "kind": 2048, "kindString": "Method", @@ -963,16 +966,19 @@ }, "signatures": [ { - "id": 488, + "id": 498, "name": "onClose", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, + "comment": { + "shortText": "Registers a callback that will be executed when the channel closes." + }, "parameters": [ { - "id": 489, + "id": 499, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -994,13 +1000,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 111, + "line": 114, "character": 9 } ] }, { - "id": 490, + "id": 500, "name": "onError", "kind": 2048, "kindString": "Method", @@ -1009,16 +1015,19 @@ }, "signatures": [ { - "id": 491, + "id": 501, "name": "onError", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, + "comment": { + "shortText": "Registers a callback that will be executed when the channel encounteres an error." + }, "parameters": [ { - "id": 492, + "id": 502, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -1040,13 +1049,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 115, + "line": 121, "character": 9 } ] }, { - "id": 524, + "id": 534, "name": "onMessage", "kind": 2048, "kindString": "Method", @@ -1055,7 +1064,7 @@ }, "signatures": [ { - "id": 525, + "id": 535, "name": "onMessage", "kind": 4096, "kindString": "Call signature", @@ -1068,7 +1077,7 @@ }, "parameters": [ { - "id": 526, + "id": 536, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -1081,7 +1090,7 @@ } }, { - "id": 527, + "id": 537, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -1094,7 +1103,7 @@ } }, { - "id": 528, + "id": 538, "name": "ref", "kind": 32768, "kindString": "Parameter", @@ -1126,13 +1135,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 193, + "line": 202, "character": 11 } ] }, { - "id": 510, + "id": 520, "name": "push", "kind": 2048, "kindString": "Method", @@ -1141,7 +1150,7 @@ }, "signatures": [ { - "id": 511, + "id": 521, "name": "push", "kind": 4096, "kindString": "Call signature", @@ -1150,7 +1159,7 @@ }, "parameters": [ { - "id": 512, + "id": 522, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -1164,7 +1173,7 @@ } }, { - "id": 513, + "id": 523, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -1177,7 +1186,7 @@ } }, { - "id": 514, + "id": 524, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -1193,7 +1202,7 @@ ], "type": { "type": "reference", - "id": 297, + "id": 307, "name": "Push" } } @@ -1201,13 +1210,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 140, + "line": 149, "character": 6 } ] }, { - "id": 534, + "id": 544, "name": "rejoin", "kind": 2048, "kindString": "Method", @@ -1216,7 +1225,7 @@ }, "signatures": [ { - "id": 535, + "id": 545, "name": "rejoin", "kind": 4096, "kindString": "Call signature", @@ -1225,7 +1234,7 @@ }, "parameters": [ { - "id": 536, + "id": 546, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -1248,13 +1257,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 205, + "line": 214, "character": 8 } ] }, { - "id": 482, + "id": 492, "name": "rejoinUntilConnected", "kind": 2048, "kindString": "Method", @@ -1263,7 +1272,7 @@ }, "signatures": [ { - "id": 483, + "id": 493, "name": "rejoinUntilConnected", "kind": 4096, "kindString": "Call signature", @@ -1285,7 +1294,7 @@ ] }, { - "id": 549, + "id": 559, "name": "replyEventName", "kind": 2048, "kindString": "Method", @@ -1294,7 +1303,7 @@ }, "signatures": [ { - "id": 550, + "id": 560, "name": "replyEventName", "kind": 4096, "kindString": "Call signature", @@ -1303,7 +1312,7 @@ }, "parameters": [ { - "id": 551, + "id": 561, "name": "ref", "kind": 32768, "kindString": "Parameter", @@ -1325,13 +1334,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 245, + "line": 254, "character": 16 } ] }, { - "id": 542, + "id": 552, "name": "send", "kind": 2048, "kindString": "Method", @@ -1340,7 +1349,7 @@ }, "signatures": [ { - "id": 543, + "id": 553, "name": "send", "kind": 4096, "kindString": "Call signature", @@ -1349,7 +1358,7 @@ }, "parameters": [ { - "id": 544, + "id": 554, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -1359,7 +1368,7 @@ "type": { "type": "reflection", "declaration": { - "id": 545, + "id": 555, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1368,7 +1377,7 @@ }, "indexSignature": [ { - "id": 547, + "id": 557, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -1377,7 +1386,7 @@ }, "parameters": [ { - "id": 548, + "id": 558, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -1398,7 +1407,7 @@ ], "children": [ { - "id": 546, + "id": 556, "name": "type", "kind": 32, "kindString": "Variable", @@ -1408,7 +1417,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 236, + "line": 245, "character": 22 } ], @@ -1423,14 +1432,14 @@ "title": "Variables", "kind": 32, "children": [ - 546 + 556 ] } ], "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 236, + "line": 245, "character": 15 } ] @@ -1453,13 +1462,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 236, + "line": 245, "character": 6 } ] }, { - "id": 484, + "id": 494, "name": "subscribe", "kind": 2048, "kindString": "Method", @@ -1468,7 +1477,7 @@ }, "signatures": [ { - "id": 485, + "id": 495, "name": "subscribe", "kind": 4096, "kindString": "Call signature", @@ -1477,7 +1486,7 @@ }, "parameters": [ { - "id": 486, + "id": 496, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -1493,7 +1502,7 @@ ], "type": { "type": "reference", - "id": 297, + "id": 307, "name": "Push" } } @@ -1507,7 +1516,7 @@ ] }, { - "id": 537, + "id": 547, "name": "trigger", "kind": 2048, "kindString": "Method", @@ -1516,7 +1525,7 @@ }, "signatures": [ { - "id": 538, + "id": 548, "name": "trigger", "kind": 4096, "kindString": "Call signature", @@ -1525,7 +1534,7 @@ }, "parameters": [ { - "id": 539, + "id": 549, "name": "type", "kind": 32768, "kindString": "Parameter", @@ -1538,7 +1547,7 @@ } }, { - "id": 540, + "id": 550, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -1552,7 +1561,7 @@ } }, { - "id": 541, + "id": 551, "name": "ref", "kind": 32768, "kindString": "Parameter", @@ -1584,13 +1593,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 214, + "line": 223, "character": 9 } ] }, { - "id": 521, + "id": 531, "name": "unsubscribe", "kind": 2048, "kindString": "Method", @@ -1599,7 +1608,7 @@ }, "signatures": [ { - "id": 522, + "id": 532, "name": "unsubscribe", "kind": 4096, "kindString": "Call signature", @@ -1607,12 +1616,12 @@ "isExported": true }, "comment": { - "shortText": "Leaves the channel", + "shortText": "Leaves the channel.", "text": "Unsubscribes from server events, and instructs channel to terminate on server.\nTriggers onClose() hooks.\n\nTo receive leave acknowledgements, use the a `receive` hook to bind to the server ack, ie:\nchannel.unsubscribe().receive(\"ok\", () => alert(\"left!\") )\n" }, "parameters": [ { - "id": 523, + "id": 533, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -1628,7 +1637,7 @@ ], "type": { "type": "reference", - "id": 297, + "id": 307, "name": "Push" } } @@ -1636,13 +1645,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 168, + "line": 177, "character": 13 } ] }, { - "id": 515, + "id": 525, "name": "updateJoinPayload", "kind": 2048, "kindString": "Method", @@ -1651,7 +1660,7 @@ }, "signatures": [ { - "id": 516, + "id": 526, "name": "updateJoinPayload", "kind": 4096, "kindString": "Call signature", @@ -1660,7 +1669,7 @@ }, "parameters": [ { - "id": 517, + "id": 527, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -1670,7 +1679,7 @@ "type": { "type": "reflection", "declaration": { - "id": 518, + "id": 528, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1679,7 +1688,7 @@ }, "indexSignature": [ { - "id": 519, + "id": 529, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -1688,7 +1697,7 @@ }, "parameters": [ { - "id": 520, + "id": 530, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -1710,7 +1719,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 155, + "line": 164, "character": 28 } ] @@ -1727,13 +1736,13 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 155, + "line": 164, "character": 19 } ] }, { - "id": 562, + "id": 572, "name": "isEqual", "kind": 2048, "kindString": "Method", @@ -1744,7 +1753,7 @@ }, "signatures": [ { - "id": 563, + "id": 573, "name": "isEqual", "kind": 4096, "kindString": "Call signature", @@ -1753,7 +1762,7 @@ }, "parameters": [ { - "id": 564, + "id": 574, "name": "obj1", "kind": 32768, "kindString": "Parameter", @@ -1763,7 +1772,7 @@ "type": { "type": "reflection", "declaration": { - "id": 565, + "id": 575, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1772,7 +1781,7 @@ }, "indexSignature": [ { - "id": 566, + "id": 576, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -1781,7 +1790,7 @@ }, "parameters": [ { - "id": 567, + "id": 577, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -1803,7 +1812,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 266, + "line": 275, "character": 9 } ] @@ -1811,7 +1820,7 @@ } }, { - "id": 568, + "id": 578, "name": "obj2", "kind": 32768, "kindString": "Parameter", @@ -1821,7 +1830,7 @@ "type": { "type": "reflection", "declaration": { - "id": 569, + "id": 579, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1830,7 +1839,7 @@ }, "indexSignature": [ { - "id": 570, + "id": 580, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -1839,7 +1848,7 @@ }, "parameters": [ { - "id": 571, + "id": 581, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -1861,7 +1870,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 267, + "line": 276, "character": 9 } ] @@ -1878,7 +1887,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 265, + "line": 274, "character": 24 } ] @@ -1889,54 +1898,54 @@ "title": "Constructors", "kind": 512, "children": [ - 466 + 476 ] }, { "title": "Properties", "kind": 1024, "children": [ - 458, - 462, - 461, 468, - 465, - 464, - 463, 472, - 460, - 459, - 467 + 471, + 478, + 475, + 474, + 473, + 482, + 470, + 469, + 477 ] }, { "title": "Methods", "kind": 2048, "children": [ - 508, - 552, - 554, - 556, - 558, - 560, - 529, - 532, - 480, - 501, - 493, - 487, - 490, - 524, - 510, - 534, - 482, - 549, + 518, + 562, + 564, + 566, + 568, + 570, + 539, 542, - 484, - 537, - 521, - 515, - 562 + 490, + 511, + 503, + 497, + 500, + 534, + 520, + 544, + 492, + 559, + 552, + 494, + 547, + 531, + 525, + 572 ] } ], @@ -1954,7 +1963,7 @@ "title": "Classes", "kind": 128, "children": [ - 457 + 467 ] } ], @@ -1967,7 +1976,7 @@ ] }, { - "id": 68, + "id": 73, "name": "\"RealtimeClient\"", "kind": 1, "kindString": "Module", @@ -1977,7 +1986,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/RealtimeClient.ts", "children": [ { - "id": 69, + "id": 74, "name": "RealtimeClient", "kind": 128, "kindString": "Class", @@ -1986,7 +1995,7 @@ }, "children": [ { - "id": 101, + "id": 106, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -1994,11 +2003,11 @@ "isExported": true }, "comment": { - "shortText": "Initializes the Socket" + "shortText": "Initializes the Socket." }, "signatures": [ { - "id": 102, + "id": 107, "name": "new RealtimeClient", "kind": 16384, "kindString": "Constructor signature", @@ -2006,11 +2015,11 @@ "isExported": true }, "comment": { - "shortText": "Initializes the Socket" + "shortText": "Initializes the Socket." }, "parameters": [ { - "id": 103, + "id": 108, "name": "endPoint", "kind": 32768, "kindString": "Parameter", @@ -2026,7 +2035,7 @@ } }, { - "id": 104, + "id": 109, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -2036,14 +2045,14 @@ }, "type": { "type": "reference", - "id": 182, + "id": 186, "name": "Options" } } ], "type": { "type": "reference", - "id": 69, + "id": 74, "name": "RealtimeClient" } } @@ -2051,13 +2060,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 68, + "line": 75, "character": 3 } ] }, { - "id": 70, + "id": 75, "name": "accessToken", "kind": 1024, "kindString": "Property", @@ -2067,7 +2076,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 38, + "line": 45, "character": 13 } ], @@ -2087,7 +2096,7 @@ "defaultValue": "null" }, { - "id": 71, + "id": 76, "name": "channels", "kind": 1024, "kindString": "Property", @@ -2097,7 +2106,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 39, + "line": 46, "character": 10 } ], @@ -2108,12 +2117,12 @@ "types": [ { "type": "reference", - "id": 209, + "id": 219, "name": "RealtimeSubscription" }, { "type": "reference", - "id": 457, + "id": 467, "name": "RealtimeChannel" } ] @@ -2122,7 +2131,7 @@ "defaultValue": "[]" }, { - "id": 93, + "id": 98, "name": "conn", "kind": 1024, "kindString": "Property", @@ -2132,7 +2141,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 55, + "line": 62, "character": 6 } ], @@ -2152,7 +2161,7 @@ "defaultValue": "null" }, { - "id": 91, + "id": 96, "name": "decode", "kind": 1024, "kindString": "Property", @@ -2162,7 +2171,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 53, + "line": 60, "character": 8 } ], @@ -2172,7 +2181,7 @@ } }, { - "id": 90, + "id": 95, "name": "encode", "kind": 1024, "kindString": "Property", @@ -2182,7 +2191,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 52, + "line": 59, "character": 8 } ], @@ -2192,7 +2201,7 @@ } }, { - "id": 72, + "id": 77, "name": "endPoint", "kind": 1024, "kindString": "Property", @@ -2202,7 +2211,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 40, + "line": 47, "character": 10 } ], @@ -2213,7 +2222,7 @@ "defaultValue": "\"\"" }, { - "id": 73, + "id": 78, "name": "headers", "kind": 1024, "kindString": "Property", @@ -2224,7 +2233,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 41, + "line": 48, "character": 9 } ], @@ -2238,7 +2247,7 @@ { "type": "reflection", "declaration": { - "id": 74, + "id": 79, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2247,7 +2256,7 @@ }, "indexSignature": [ { - "id": 75, + "id": 80, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -2256,7 +2265,7 @@ }, "parameters": [ { - "id": 76, + "id": 81, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -2282,7 +2291,7 @@ "defaultValue": "DEFAULT_HEADERS" }, { - "id": 83, + "id": 88, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -2292,7 +2301,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 45, + "line": 52, "character": 21 } ], @@ -2303,7 +2312,7 @@ "defaultValue": "30000" }, { - "id": 85, + "id": 90, "name": "heartbeatTimer", "kind": 1024, "kindString": "Property", @@ -2313,7 +2322,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 47, + "line": 54, "character": 16 } ], @@ -2342,7 +2351,7 @@ "defaultValue": "undefined" }, { - "id": 89, + "id": 94, "name": "logger", "kind": 1024, "kindString": "Property", @@ -2352,7 +2361,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 51, + "line": 58, "character": 8 } ], @@ -2363,7 +2372,7 @@ "defaultValue": "noop" }, { - "id": 84, + "id": 89, "name": "longpollerTimeout", "kind": 1024, "kindString": "Property", @@ -2373,7 +2382,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 46, + "line": 53, "character": 19 } ], @@ -2384,7 +2393,7 @@ "defaultValue": "20000" }, { - "id": 77, + "id": 82, "name": "params", "kind": 1024, "kindString": "Property", @@ -2395,7 +2404,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 42, + "line": 49, "character": 8 } ], @@ -2409,7 +2418,7 @@ { "type": "reflection", "declaration": { - "id": 78, + "id": 83, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2418,7 +2427,7 @@ }, "indexSignature": [ { - "id": 79, + "id": 84, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -2427,7 +2436,7 @@ }, "parameters": [ { - "id": 80, + "id": 85, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -2452,7 +2461,7 @@ } }, { - "id": 86, + "id": 91, "name": "pendingHeartbeatRef", "kind": 1024, "kindString": "Property", @@ -2462,7 +2471,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 48, + "line": 55, "character": 21 } ], @@ -2482,7 +2491,7 @@ "defaultValue": "null" }, { - "id": 92, + "id": 97, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -2492,7 +2501,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 54, + "line": 61, "character": 18 } ], @@ -2502,7 +2511,7 @@ } }, { - "id": 88, + "id": 93, "name": "reconnectTimer", "kind": 1024, "kindString": "Property", @@ -2512,18 +2521,18 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 50, + "line": 57, "character": 16 } ], "type": { "type": "reference", - "id": 30, + "id": 35, "name": "Timer" } }, { - "id": 87, + "id": 92, "name": "ref", "kind": 1024, "kindString": "Property", @@ -2533,7 +2542,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 49, + "line": 56, "character": 5 } ], @@ -2544,7 +2553,7 @@ "defaultValue": "0" }, { - "id": 94, + "id": 99, "name": "sendBuffer", "kind": 1024, "kindString": "Property", @@ -2554,7 +2563,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 56, + "line": 63, "character": 12 } ], @@ -2568,7 +2577,7 @@ "defaultValue": "[]" }, { - "id": 95, + "id": 100, "name": "serializer", "kind": 1024, "kindString": "Property", @@ -2578,19 +2587,19 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 57, + "line": 64, "character": 12 } ], "type": { "type": "reference", - "id": 44, + "id": 49, "name": "Serializer" }, "defaultValue": "new Serializer()" }, { - "id": 81, + "id": 86, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -2600,7 +2609,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 43, + "line": 50, "character": 9 } ], @@ -2611,7 +2620,7 @@ "defaultValue": "DEFAULT_TIMEOUT" }, { - "id": 82, + "id": 87, "name": "transport", "kind": 1024, "kindString": "Property", @@ -2621,7 +2630,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 44, + "line": 51, "character": 11 } ], @@ -2632,7 +2641,7 @@ "defaultValue": "w3cwebsocket" }, { - "id": 171, + "id": 175, "name": "_appendParams", "kind": 2048, "kindString": "Method", @@ -2642,7 +2651,7 @@ }, "signatures": [ { - "id": 172, + "id": 176, "name": "_appendParams", "kind": 4096, "kindString": "Call signature", @@ -2651,7 +2660,7 @@ }, "parameters": [ { - "id": 173, + "id": 177, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -2664,7 +2673,7 @@ } }, { - "id": 174, + "id": 178, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -2674,7 +2683,7 @@ "type": { "type": "reflection", "declaration": { - "id": 175, + "id": 179, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2683,7 +2692,7 @@ }, "indexSignature": [ { - "id": 176, + "id": 180, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -2692,7 +2701,7 @@ }, "parameters": [ { - "id": 177, + "id": 181, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -2714,8 +2723,8 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 422, - "character": 44 + "line": 444, + "character": 11 } ] } @@ -2731,13 +2740,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 422, + "line": 442, "character": 23 } ] }, { - "id": 178, + "id": 182, "name": "_flushSendBuffer", "kind": 2048, "kindString": "Method", @@ -2747,7 +2756,7 @@ }, "signatures": [ { - "id": 179, + "id": 183, "name": "_flushSendBuffer", "kind": 4096, "kindString": "Call signature", @@ -2763,13 +2772,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 432, + "line": 455, "character": 26 } ] }, { - "id": 163, + "id": 167, "name": "_onConnClose", "kind": 2048, "kindString": "Method", @@ -2779,7 +2788,7 @@ }, "signatures": [ { - "id": 164, + "id": 168, "name": "_onConnClose", "kind": 4096, "kindString": "Call signature", @@ -2788,7 +2797,7 @@ }, "parameters": [ { - "id": 165, + "id": 169, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -2810,13 +2819,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 402, + "line": 422, "character": 22 } ] }, { - "id": 166, + "id": 170, "name": "_onConnError", "kind": 2048, "kindString": "Method", @@ -2826,7 +2835,7 @@ }, "signatures": [ { - "id": 167, + "id": 171, "name": "_onConnError", "kind": 4096, "kindString": "Call signature", @@ -2835,7 +2844,7 @@ }, "parameters": [ { - "id": 168, + "id": 172, "name": "error", "kind": 32768, "kindString": "Parameter", @@ -2857,13 +2866,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 410, + "line": 430, "character": 22 } ] }, { - "id": 161, + "id": 165, "name": "_onConnOpen", "kind": 2048, "kindString": "Method", @@ -2873,7 +2882,7 @@ }, "signatures": [ { - "id": 162, + "id": 166, "name": "_onConnOpen", "kind": 4096, "kindString": "Call signature", @@ -2889,13 +2898,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 390, + "line": 410, "character": 21 } ] }, { - "id": 180, + "id": 184, "name": "_sendHeartbeat", "kind": 2048, "kindString": "Method", @@ -2905,7 +2914,7 @@ }, "signatures": [ { - "id": 181, + "id": 185, "name": "_sendHeartbeat", "kind": 4096, "kindString": "Call signature", @@ -2921,13 +2930,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 439, + "line": 462, "character": 24 } ] }, { - "id": 169, + "id": 173, "name": "_triggerChanError", "kind": 2048, "kindString": "Method", @@ -2937,7 +2946,7 @@ }, "signatures": [ { - "id": 170, + "id": 174, "name": "_triggerChanError", "kind": 4096, "kindString": "Call signature", @@ -2953,13 +2962,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 416, + "line": 436, "character": 27 } ] }, { - "id": 138, + "id": 143, "name": "channel", "kind": 2048, "kindString": "Method", @@ -2968,7 +2977,7 @@ }, "signatures": [ { - "id": 139, + "id": 144, "name": "channel", "kind": 4096, "kindString": "Call signature", @@ -2977,7 +2986,7 @@ }, "parameters": [ { - "id": 140, + "id": 145, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -2990,7 +2999,7 @@ } }, { - "id": 141, + "id": 146, "name": "chanParams", "kind": 32768, "kindString": "Parameter", @@ -2998,53 +3007,9 @@ "isExported": true }, "type": { - "type": "reflection", - "declaration": { - "id": 142, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "indexSignature": [ - { - "id": 143, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 144, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 255, - "character": 15 - } - ] - } + "type": "reference", + "id": 210, + "name": "ChannelParams" }, "defaultValue": "{ isNewVersion: false }" } @@ -3054,13 +3019,13 @@ "types": [ { "type": "reference", - "id": 209, - "name": "RealtimeSubscription" + "id": 467, + "name": "RealtimeChannel" }, { "type": "reference", - "id": 457, - "name": "RealtimeChannel" + "id": 219, + "name": "RealtimeSubscription" } ] } @@ -3069,13 +3034,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 253, + "line": 266, "character": 9 } ] }, { - "id": 105, + "id": 110, "name": "connect", "kind": 2048, "kindString": "Method", @@ -3084,7 +3049,7 @@ }, "signatures": [ { - "id": 106, + "id": 111, "name": "connect", "kind": 4096, "kindString": "Call signature", @@ -3092,7 +3057,7 @@ "isExported": true }, "comment": { - "shortText": "Connects the socket." + "shortText": "Connects the socket, unless already connected." }, "type": { "type": "intrinsic", @@ -3103,13 +3068,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 120, + "line": 127, "character": 9 } ] }, { - "id": 131, + "id": 136, "name": "connectionState", "kind": 2048, "kindString": "Method", @@ -3118,7 +3083,7 @@ }, "signatures": [ { - "id": 132, + "id": 137, "name": "connectionState", "kind": 4096, "kindString": "Call signature", @@ -3129,38 +3094,22 @@ "shortText": "Returns the current state of the socket." }, "type": { - "type": "union", - "types": [ - { - "type": "stringLiteral", - "value": "connecting" - }, - { - "type": "stringLiteral", - "value": "open" - }, - { - "type": "stringLiteral", - "value": "closing" - }, - { - "type": "stringLiteral", - "value": "closed" - } - ] + "type": "reference", + "id": 24, + "name": "CONNECTION_STATE" } } ], "sources": [ { "fileName": "RealtimeClient.ts", - "line": 221, + "line": 234, "character": 17 } ] }, { - "id": 107, + "id": 112, "name": "disconnect", "kind": 2048, "kindString": "Method", @@ -3169,7 +3118,7 @@ }, "signatures": [ { - "id": 108, + "id": 113, "name": "disconnect", "kind": 4096, "kindString": "Call signature", @@ -3181,7 +3130,7 @@ }, "parameters": [ { - "id": 109, + "id": 114, "name": "code", "kind": 32768, "kindString": "Parameter", @@ -3207,7 +3156,7 @@ } }, { - "id": 110, + "id": 115, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -3239,7 +3188,7 @@ { "type": "reflection", "declaration": { - "id": 111, + "id": 116, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3248,7 +3197,7 @@ }, "children": [ { - "id": 113, + "id": 118, "name": "data", "kind": 32, "kindString": "Variable", @@ -3258,7 +3207,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 145, + "line": 152, "character": 40 } ], @@ -3268,7 +3217,7 @@ } }, { - "id": 112, + "id": 117, "name": "error", "kind": 32, "kindString": "Variable", @@ -3278,7 +3227,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 145, + "line": 152, "character": 20 } ], @@ -3302,15 +3251,15 @@ "title": "Variables", "kind": 32, "children": [ - 113, - 112 + 118, + 117 ] } ], "sources": [ { "fileName": "RealtimeClient.ts", - "line": 145, + "line": 152, "character": 13 } ] @@ -3324,13 +3273,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 142, + "line": 149, "character": 12 } ] }, { - "id": 151, + "id": 155, "name": "endPointURL", "kind": 2048, "kindString": "Method", @@ -3339,7 +3288,7 @@ }, "signatures": [ { - "id": 152, + "id": 156, "name": "endPointURL", "kind": 4096, "kindString": "Call signature", @@ -3358,13 +3307,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 338, + "line": 359, "character": 13 } ] }, { - "id": 133, + "id": 138, "name": "isConnected", "kind": 2048, "kindString": "Method", @@ -3373,7 +3322,7 @@ }, "signatures": [ { - "id": 134, + "id": 139, "name": "isConnected", "kind": 4096, "kindString": "Call signature", @@ -3392,13 +3341,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 237, + "line": 250, "character": 13 } ] }, { - "id": 158, + "id": 162, "name": "leaveOpenTopic", "kind": 2048, "kindString": "Method", @@ -3407,16 +3356,19 @@ }, "signatures": [ { - "id": 159, + "id": 163, "name": "leaveOpenTopic", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, + "comment": { + "shortText": "Unsubscribe from channels with the specified topic." + }, "parameters": [ { - "id": 160, + "id": 164, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -3438,13 +3390,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 380, + "line": 400, "character": 16 } ] }, { - "id": 114, + "id": 119, "name": "log", "kind": 2048, "kindString": "Method", @@ -3453,7 +3405,7 @@ }, "signatures": [ { - "id": 115, + "id": 120, "name": "log", "kind": 4096, "kindString": "Call signature", @@ -3461,11 +3413,12 @@ "isExported": true }, "comment": { - "shortText": "Logs the message. Override `this.logger` for specialized logging." + "shortText": "Logs the message.", + "text": "For customized logging, `this.logger` can be overriden.\n" }, "parameters": [ { - "id": 116, + "id": 121, "name": "kind", "kind": 32768, "kindString": "Parameter", @@ -3478,7 +3431,7 @@ } }, { - "id": 117, + "id": 122, "name": "msg", "kind": 32768, "kindString": "Parameter", @@ -3491,7 +3444,7 @@ } }, { - "id": 118, + "id": 123, "name": "data", "kind": 32768, "kindString": "Parameter", @@ -3514,13 +3467,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 170, + "line": 179, "character": 5 } ] }, { - "id": 153, + "id": 157, "name": "makeRef", "kind": 2048, "kindString": "Method", @@ -3529,7 +3482,7 @@ }, "signatures": [ { - "id": 154, + "id": 158, "name": "makeRef", "kind": 4096, "kindString": "Call signature", @@ -3548,13 +3501,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 348, + "line": 369, "character": 9 } ] }, { - "id": 122, + "id": 127, "name": "onClose", "kind": 2048, "kindString": "Method", @@ -3563,129 +3516,25 @@ }, "signatures": [ { - "id": 123, + "id": 128, "name": "onClose", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, - "comment": { - "shortText": "Registers a callbacks for connection state change events.", - "tags": [ - { - "tag": "example", - "text": "\n socket.onOpen(() => console.log(\"Socket closed.\"))\n" - } - ] - }, - "parameters": [ - { - "id": 124, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "A function to be called when the event occurs.\n" - }, - "type": { - "type": "reference", - "name": "Function" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 192, - "character": 9 - } - ] - }, - { - "id": 148, - "name": "onConnMessage", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 149, - "name": "onConnMessage", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 150, - "name": "rawMessage", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 306, - "character": 15 - } - ] - }, - { - "id": 125, - "name": "onError", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 126, - "name": "onError", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, "comment": { "shortText": "Registers a callback for connection state change events.", "tags": [ { "tag": "example", - "text": "\n socket.onOpen((error) => console.log(\"An error occurred\"))\n" + "text": "\n socket.onOpen(() => console.log(\"Socket closed.\"))\n" } ] }, "parameters": [ { - "id": 127, + "id": 129, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -3716,7 +3565,157 @@ ] }, { - "id": 128, + "id": 150, + "name": "onConnMessage", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 151, + "name": "onConnMessage", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 152, + "name": "rawMessage", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 153, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 154, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 327, + "character": 34 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 154 + ] + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 327, + "character": 27 + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 327, + "character": 15 + } + ] + }, + { + "id": 130, + "name": "onError", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 131, + "name": "onError", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Registers a callback for connection state change events.", + "tags": [ + { + "tag": "example", + "text": "\n socket.onOpen((error) => console.log(\"An error occurred\"))\n" + } + ] + }, + "parameters": [ + { + "id": 132, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A function to be called when the event occurs.\n" + }, + "type": { + "type": "reference", + "name": "Function" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 215, + "character": 9 + } + ] + }, + { + "id": 133, "name": "onMessage", "kind": 2048, "kindString": "Method", @@ -3725,7 +3724,7 @@ }, "signatures": [ { - "id": 129, + "id": 134, "name": "onMessage", "kind": 4096, "kindString": "Call signature", @@ -3743,7 +3742,7 @@ }, "parameters": [ { - "id": 130, + "id": 135, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -3768,13 +3767,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 214, + "line": 227, "character": 11 } ] }, { - "id": 119, + "id": 124, "name": "onOpen", "kind": 2048, "kindString": "Method", @@ -3783,7 +3782,7 @@ }, "signatures": [ { - "id": 120, + "id": 125, "name": "onOpen", "kind": 4096, "kindString": "Call signature", @@ -3801,7 +3800,7 @@ }, "parameters": [ { - "id": 121, + "id": 126, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -3826,13 +3825,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 181, + "line": 191, "character": 8 } ] }, { - "id": 145, + "id": 147, "name": "push", "kind": 2048, "kindString": "Method", @@ -3841,16 +3840,20 @@ }, "signatures": [ { - "id": 146, + "id": 148, "name": "push", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, + "comment": { + "shortText": "Push out a message if the socket is connected.", + "text": "If the socket is not connected, the message gets enqueued within a local buffer, and sent out when a connection is next established.\n" + }, "parameters": [ { - "id": 147, + "id": 149, "name": "data", "kind": 32768, "kindString": "Parameter", @@ -3859,7 +3862,7 @@ }, "type": { "type": "reference", - "id": 200, + "id": 204, "name": "Message" } } @@ -3873,13 +3876,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 291, + "line": 312, "character": 6 } ] }, { - "id": 135, + "id": 140, "name": "remove", "kind": 2048, "kindString": "Method", @@ -3888,7 +3891,7 @@ }, "signatures": [ { - "id": 136, + "id": 141, "name": "remove", "kind": 4096, "kindString": "Call signature", @@ -3900,7 +3903,7 @@ }, "parameters": [ { - "id": 137, + "id": 142, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -3915,12 +3918,12 @@ "types": [ { "type": "reference", - "id": 209, + "id": 219, "name": "RealtimeSubscription" }, { "type": "reference", - "id": 457, + "id": 467, "name": "RealtimeChannel" } ] @@ -3936,13 +3939,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 246, + "line": 259, "character": 8 } ] }, { - "id": 155, + "id": 159, "name": "setAuth", "kind": 2048, "kindString": "Method", @@ -3951,7 +3954,7 @@ }, "signatures": [ { - "id": 156, + "id": 160, "name": "setAuth", "kind": 4096, "kindString": "Call signature", @@ -3963,7 +3966,7 @@ }, "parameters": [ { - "id": 157, + "id": 161, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -3997,13 +4000,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 364, + "line": 385, "character": 9 } ] }, { - "id": 96, + "id": 101, "name": "stateChangeCallbacks", "kind": 2097152, "kindString": "Object literal", @@ -4012,7 +4015,7 @@ }, "children": [ { - "id": 98, + "id": 103, "name": "close", "kind": 32, "kindString": "Variable", @@ -4022,7 +4025,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 65, + "line": 72, "character": 9 } ], @@ -4036,7 +4039,7 @@ "defaultValue": "[]" }, { - "id": 99, + "id": 104, "name": "error", "kind": 32, "kindString": "Variable", @@ -4046,7 +4049,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 66, + "line": 73, "character": 9 } ], @@ -4060,7 +4063,7 @@ "defaultValue": "[]" }, { - "id": 100, + "id": 105, "name": "message", "kind": 32, "kindString": "Variable", @@ -4070,7 +4073,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 67, + "line": 74, "character": 11 } ], @@ -4084,7 +4087,7 @@ "defaultValue": "[]" }, { - "id": 97, + "id": 102, "name": "open", "kind": 32, "kindString": "Variable", @@ -4094,7 +4097,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 64, + "line": 71, "character": 8 } ], @@ -4113,17 +4116,17 @@ "title": "Variables", "kind": 32, "children": [ - 98, - 99, - 100, - 97 + 103, + 104, + 105, + 102 ] } ], "sources": [ { "fileName": "RealtimeClient.ts", - "line": 58, + "line": 65, "character": 22 } ], @@ -4138,83 +4141,218 @@ "title": "Constructors", "kind": 512, "children": [ - 101 + 106 ] }, { "title": "Properties", "kind": 1024, "children": [ - 70, - 71, - 93, - 91, - 90, - 72, - 73, - 83, - 85, - 89, - 84, - 77, - 86, - 92, - 88, - 87, - 94, + 75, + 76, + 98, + 96, 95, - 81, - 82 + 77, + 78, + 88, + 90, + 94, + 89, + 82, + 91, + 97, + 93, + 92, + 99, + 100, + 86, + 87 ] }, { "title": "Methods", "kind": 2048, "children": [ - 171, - 178, - 163, - 166, - 161, - 180, - 169, + 175, + 182, + 167, + 170, + 165, + 184, + 173, + 143, + 110, + 136, + 112, + 155, 138, - 105, - 131, - 107, - 151, - 133, - 158, - 114, - 153, - 122, - 148, - 125, - 128, + 162, 119, - 145, - 135, - 155 + 157, + 127, + 150, + 130, + 133, + 124, + 147, + 140, + 159 ] }, { "title": "Object literals", "kind": 2097152, "children": [ - 96 + 101 ] } ], "sources": [ { "fileName": "RealtimeClient.ts", - "line": 37, + "line": 44, "character": 35 } ] }, { - "id": 200, + "id": 210, + "name": "ChannelParams", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 36, + "character": 18 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 211, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": [ + { + "id": 214, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 215, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "children": [ + { + "id": 212, + "name": "isNewVersion", + "kind": 32, + "kindString": "Variable", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 37, + "character": 14 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "intrinsic", + "name": "true" + } + ] + } + }, + { + "id": 213, + "name": "selfBroadcast", + "kind": 32, + "kindString": "Variable", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 38, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "intrinsic", + "name": "true" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 212, + 213 + ] + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 36, + "character": 20 + } + ] + } + } + }, + { + "id": 204, "name": "Message", "kind": 4194304, "kindString": "Type alias", @@ -4222,25 +4360,79 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 28, + "line": 29, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 201, + "id": 205, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 203, + "id": 207, "name": "event", "kind": 32, "kindString": "Variable", "flags": {}, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 31, + "character": 7 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 208, + "name": "payload", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 32, + "character": 9 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 209, + "name": "ref", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 33, + "character": 5 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 206, + "name": "topic", + "kind": 32, + "kindString": "Variable", + "flags": {}, "sources": [ { "fileName": "RealtimeClient.ts", @@ -4252,60 +4444,6 @@ "type": "intrinsic", "name": "string" } - }, - { - "id": 204, - "name": "payload", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 31, - "character": 9 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 205, - "name": "ref", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 32, - "character": 5 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 202, - "name": "topic", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 29, - "character": 7 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } } ], "groups": [ @@ -4313,17 +4451,17 @@ "title": "Variables", "kind": 32, "children": [ - 203, - 204, - 205, - 202 + 207, + 208, + 209, + 206 ] } ], "sources": [ { "fileName": "RealtimeClient.ts", - "line": 28, + "line": 29, "character": 14 } ] @@ -4331,7 +4469,7 @@ } }, { - "id": 182, + "id": 186, "name": "Options", "kind": 4194304, "kindString": "Type alias", @@ -4341,14 +4479,14 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 16, + "line": 17, "character": 19 } ], "type": { "type": "reflection", "declaration": { - "id": 183, + "id": 187, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4357,7 +4495,7 @@ }, "children": [ { - "id": 190, + "id": 194, "name": "decode", "kind": 32, "kindString": "Variable", @@ -4365,6 +4503,27 @@ "isExported": true, "isOptional": true }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 24, + "character": 8 + } + ], + "type": { + "type": "reference", + "name": "Function" + } + }, + { + "id": 193, + "name": "encode", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, "sources": [ { "fileName": "RealtimeClient.ts", @@ -4378,28 +4537,7 @@ } }, { - "id": 189, - "name": "encode", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 22, - "character": 8 - } - ], - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 192, + "id": 196, "name": "headers", "kind": 32, "kindString": "Variable", @@ -4407,160 +4545,11 @@ "isExported": true, "isOptional": true }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 25, - "character": 9 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reflection", - "declaration": { - "id": 193, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "indexSignature": [ - { - "id": 194, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 195, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - } - } - ] - } - }, - { - "id": 186, - "name": "heartbeatIntervalMs", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 19, - "character": 21 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - }, - { - "id": 188, - "name": "logger", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 21, - "character": 8 - } - ], - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 187, - "name": "longpollerTimeout", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 20, - "character": 19 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - }, - { - "id": 196, - "name": "params", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, "sources": [ { "fileName": "RealtimeClient.ts", "line": 26, - "character": 8 + "character": 9 } ], "type": { @@ -4615,8 +4604,157 @@ ] } }, + { + "id": 190, + "name": "heartbeatIntervalMs", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 20, + "character": 21 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + }, + { + "id": 192, + "name": "logger", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 22, + "character": 8 + } + ], + "type": { + "type": "reference", + "name": "Function" + } + }, { "id": 191, + "name": "longpollerTimeout", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 21, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + }, + { + "id": 200, + "name": "params", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 27, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reflection", + "declaration": { + "id": 201, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 202, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 203, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + }, + { + "id": 195, "name": "reconnectAfterMs", "kind": 32, "kindString": "Variable", @@ -4627,7 +4765,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 24, + "line": 25, "character": 18 } ], @@ -4637,7 +4775,7 @@ } }, { - "id": 185, + "id": 189, "name": "timeout", "kind": 32, "kindString": "Variable", @@ -4648,7 +4786,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 18, + "line": 19, "character": 9 } ], @@ -4667,7 +4805,7 @@ } }, { - "id": 184, + "id": 188, "name": "transport", "kind": 32, "kindString": "Variable", @@ -4678,7 +4816,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 17, + "line": 18, "character": 11 } ], @@ -4693,23 +4831,23 @@ "title": "Variables", "kind": 32, "children": [ - 190, - 189, - 192, - 186, - 188, - 187, + 194, + 193, 196, + 190, + 192, 191, - 185, - 184 + 200, + 195, + 189, + 188 ] } ], "sources": [ { "fileName": "RealtimeClient.ts", - "line": 16, + "line": 17, "character": 21 } ] @@ -4717,7 +4855,7 @@ } }, { - "id": 206, + "id": 216, "name": "noop", "kind": 64, "kindString": "Function", @@ -4726,7 +4864,7 @@ }, "signatures": [ { - "id": 207, + "id": 217, "name": "noop", "kind": 4096, "kindString": "Call signature", @@ -4740,7 +4878,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 35, + "line": 42, "character": 10 } ] @@ -4751,22 +4889,23 @@ "title": "Classes", "kind": 128, "children": [ - 69 + 74 ] }, { "title": "Type aliases", "kind": 4194304, "children": [ - 200, - 182 + 210, + 204, + 186 ] }, { "title": "Functions", "kind": 64, "children": [ - 206 + 216 ] } ], @@ -4779,7 +4918,7 @@ ] }, { - "id": 362, + "id": 372, "name": "\"RealtimePresence\"", "kind": 1, "kindString": "Module", @@ -4789,7 +4928,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/RealtimePresence.ts", "children": [ { - "id": 363, + "id": 373, "name": "RealtimePresence", "kind": 128, "kindString": "Class", @@ -4798,7 +4937,7 @@ }, "children": [ { - "id": 374, + "id": 384, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -4806,11 +4945,11 @@ "isExported": true }, "comment": { - "shortText": "Initializes the Presence" + "shortText": "Initializes the Presence." }, "signatures": [ { - "id": 376, + "id": 386, "name": "new RealtimePresence", "kind": 16384, "kindString": "Constructor signature", @@ -4818,11 +4957,11 @@ "isExported": true }, "comment": { - "shortText": "Initializes the Presence" + "shortText": "Initializes the Presence." }, "parameters": [ { - "id": 377, + "id": 387, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -4834,12 +4973,12 @@ }, "type": { "type": "reference", - "id": 457, + "id": 467, "name": "RealtimeChannel" } }, { - "id": 378, + "id": 388, "name": "opts", "kind": 32768, "kindString": "Parameter", @@ -4858,7 +4997,7 @@ ], "type": { "type": "reference", - "id": 363, + "id": 373, "name": "RealtimePresence" } } @@ -4872,7 +5011,7 @@ ] }, { - "id": 375, + "id": 385, "name": "channel", "kind": 1024, "kindString": "Property", @@ -4887,18 +5026,18 @@ "sources": [ { "fileName": "RealtimePresence.ts", - "line": 63, + "line": 64, "character": 28 } ], "type": { "type": "reference", - "id": 457, + "id": 467, "name": "RealtimeChannel" } }, { - "id": 366, + "id": 376, "name": "joinRef", "kind": 1024, "kindString": "Property", @@ -4928,7 +5067,7 @@ "defaultValue": "null" }, { - "id": 365, + "id": 375, "name": "pendingDiffs", "kind": 1024, "kindString": "Property", @@ -4946,14 +5085,14 @@ "type": "array", "elementType": { "type": "reference", - "id": 446, + "id": 456, "name": "RawPresenceDiff" } }, "defaultValue": "[]" }, { - "id": 364, + "id": 374, "name": "state", "kind": 1024, "kindString": "Property", @@ -4969,12 +5108,12 @@ ], "type": { "type": "reference", - "id": 429, + "id": 439, "name": "PresenceState" } }, { - "id": 422, + "id": 432, "name": "inPendingSyncState", "kind": 2048, "kindString": "Method", @@ -4984,7 +5123,7 @@ }, "signatures": [ { - "id": 423, + "id": 433, "name": "inPendingSyncState", "kind": 4096, "kindString": "Call signature", @@ -5000,13 +5139,13 @@ "sources": [ { "fileName": "RealtimePresence.ts", - "line": 319, + "line": 323, "character": 28 } ] }, { - "id": 418, + "id": 428, "name": "list", "kind": 2048, "kindString": "Method", @@ -5015,7 +5154,7 @@ }, "signatures": [ { - "id": 419, + "id": 429, "name": "list", "kind": 4096, "kindString": "Call signature", @@ -5024,7 +5163,7 @@ }, "typeParameter": [ { - "id": 420, + "id": 430, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -5035,7 +5174,7 @@ ], "parameters": [ { - "id": 421, + "id": 431, "name": "by", "kind": 32768, "kindString": "Parameter", @@ -5045,7 +5184,7 @@ }, "type": { "type": "reference", - "id": 450, + "id": 460, "typeArguments": [ { "type": "typeParameter", @@ -5076,13 +5215,13 @@ "sources": [ { "fileName": "RealtimePresence.ts", - "line": 315, + "line": 319, "character": 6 } ] }, { - "id": 407, + "id": 417, "name": "onJoin", "kind": 2048, "kindString": "Method", @@ -5091,7 +5230,7 @@ }, "signatures": [ { - "id": 408, + "id": 418, "name": "onJoin", "kind": 4096, "kindString": "Call signature", @@ -5100,7 +5239,7 @@ }, "parameters": [ { - "id": 409, + "id": 419, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -5122,13 +5261,13 @@ "sources": [ { "fileName": "RealtimePresence.ts", - "line": 303, + "line": 307, "character": 8 } ] }, { - "id": 410, + "id": 420, "name": "onLeave", "kind": 2048, "kindString": "Method", @@ -5137,7 +5276,7 @@ }, "signatures": [ { - "id": 411, + "id": 421, "name": "onLeave", "kind": 4096, "kindString": "Call signature", @@ -5146,7 +5285,7 @@ }, "parameters": [ { - "id": 412, + "id": 422, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -5168,13 +5307,13 @@ "sources": [ { "fileName": "RealtimePresence.ts", - "line": 307, + "line": 311, "character": 9 } ] }, { - "id": 413, + "id": 423, "name": "onSync", "kind": 2048, "kindString": "Method", @@ -5183,7 +5322,7 @@ }, "signatures": [ { - "id": 414, + "id": 424, "name": "onSync", "kind": 4096, "kindString": "Call signature", @@ -5192,7 +5331,7 @@ }, "parameters": [ { - "id": 415, + "id": 425, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -5202,7 +5341,7 @@ "type": { "type": "reflection", "declaration": { - "id": 416, + "id": 426, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5211,7 +5350,7 @@ }, "signatures": [ { - "id": 417, + "id": 427, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -5227,7 +5366,7 @@ "sources": [ { "fileName": "RealtimePresence.ts", - "line": 311, + "line": 315, "character": 18 } ] @@ -5244,13 +5383,13 @@ "sources": [ { "fileName": "RealtimePresence.ts", - "line": 311, + "line": 315, "character": 8 } ] }, { - "id": 404, + "id": 414, "name": "cloneDeep", "kind": 2048, "kindString": "Method", @@ -5261,7 +5400,7 @@ }, "signatures": [ { - "id": 405, + "id": 415, "name": "cloneDeep", "kind": 4096, "kindString": "Call signature", @@ -5270,7 +5409,7 @@ }, "parameters": [ { - "id": 406, + "id": 416, "name": "obj", "kind": 32768, "kindString": "Parameter", @@ -5292,13 +5431,13 @@ "sources": [ { "fileName": "RealtimePresence.ts", - "line": 299, + "line": 303, "character": 26 } ] }, { - "id": 391, + "id": 401, "name": "list", "kind": 2048, "kindString": "Method", @@ -5308,7 +5447,7 @@ }, "signatures": [ { - "id": 392, + "id": 402, "name": "list", "kind": 4096, "kindString": "Call signature", @@ -5320,7 +5459,7 @@ }, "typeParameter": [ { - "id": 393, + "id": 403, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -5331,7 +5470,7 @@ ], "parameters": [ { - "id": 394, + "id": 404, "name": "presences", "kind": 32768, "kindString": "Parameter", @@ -5340,12 +5479,12 @@ }, "type": { "type": "reference", - "id": 429, + "id": 439, "name": "PresenceState" } }, { - "id": 395, + "id": 405, "name": "chooser", "kind": 32768, "kindString": "Parameter", @@ -5357,7 +5496,7 @@ "types": [ { "type": "reference", - "id": 450, + "id": 460, "typeArguments": [ { "type": "typeParameter", @@ -5394,13 +5533,13 @@ "sources": [ { "fileName": "RealtimePresence.ts", - "line": 233, + "line": 237, "character": 13 } ] }, { - "id": 396, + "id": 406, "name": "map", "kind": 2048, "kindString": "Method", @@ -5411,7 +5550,7 @@ }, "signatures": [ { - "id": 397, + "id": 407, "name": "map", "kind": 4096, "kindString": "Call signature", @@ -5420,7 +5559,7 @@ }, "typeParameter": [ { - "id": 398, + "id": 408, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -5431,7 +5570,7 @@ ], "parameters": [ { - "id": 399, + "id": 409, "name": "obj", "kind": 32768, "kindString": "Parameter", @@ -5440,12 +5579,12 @@ }, "type": { "type": "reference", - "id": 429, + "id": 439, "name": "PresenceState" } }, { - "id": 400, + "id": 410, "name": "func", "kind": 32768, "kindString": "Parameter", @@ -5454,7 +5593,7 @@ }, "type": { "type": "reference", - "id": 450, + "id": 460, "typeArguments": [ { "type": "typeParameter", @@ -5485,13 +5624,13 @@ "sources": [ { "fileName": "RealtimePresence.ts", - "line": 246, + "line": 250, "character": 20 } ] }, { - "id": 385, + "id": 395, "name": "syncDiff", "kind": 2048, "kindString": "Method", @@ -5501,7 +5640,7 @@ }, "signatures": [ { - "id": 386, + "id": 396, "name": "syncDiff", "kind": 4096, "kindString": "Call signature", @@ -5509,11 +5648,12 @@ "isExported": true }, "comment": { - "shortText": "Used to sync a diff of presence join and leave\nevents from the server, as they happen. Like `syncState`, `syncDiff`\naccepts optional `onJoin` and `onLeave` callbacks to react to a user\njoining or leaving from a device." + "shortText": "Used to sync a diff of presence join and leave events from the\nserver, as they happen.", + "text": "Like `syncState`, `syncDiff` accepts optional `onJoin` and\n`onLeave` callbacks to react to a user joining or leaving from a\ndevice.\n" }, "parameters": [ { - "id": 387, + "id": 397, "name": "state", "kind": 32768, "kindString": "Parameter", @@ -5522,12 +5662,12 @@ }, "type": { "type": "reference", - "id": 429, + "id": 439, "name": "PresenceState" } }, { - "id": 388, + "id": 398, "name": "diff", "kind": 32768, "kindString": "Parameter", @@ -5539,19 +5679,19 @@ "types": [ { "type": "reference", - "id": 446, + "id": 456, "name": "RawPresenceDiff" }, { "type": "reference", - "id": 433, + "id": 443, "name": "PresenceDiff" } ] } }, { - "id": 389, + "id": 399, "name": "onJoin", "kind": 32768, "kindString": "Parameter", @@ -5564,7 +5704,7 @@ } }, { - "id": 390, + "id": 400, "name": "onLeave", "kind": 32768, "kindString": "Parameter", @@ -5579,7 +5719,7 @@ ], "type": { "type": "reference", - "id": 429, + "id": 439, "name": "PresenceState" } } @@ -5587,13 +5727,13 @@ "sources": [ { "fileName": "RealtimePresence.ts", - "line": 173, + "line": 177, "character": 17 } ] }, { - "id": 379, + "id": 389, "name": "syncState", "kind": 2048, "kindString": "Method", @@ -5603,7 +5743,7 @@ }, "signatures": [ { - "id": 380, + "id": 390, "name": "syncState", "kind": 4096, "kindString": "Call signature", @@ -5611,11 +5751,12 @@ "isExported": true }, "comment": { - "shortText": "Used to sync the list of presences on the server\nwith the client's state. An optional `onJoin` and `onLeave` callback can\nbe provided to react to changes in the client's local presences across\ndisconnects and reconnects with the server." + "shortText": "Used to sync the list of presences on the server with the\nclient's state.", + "text": "An optional `onJoin` and `onLeave` callback can be provided to\nreact to changes in the client's local presences across\ndisconnects and reconnects with the server.\n" }, "parameters": [ { - "id": 381, + "id": 391, "name": "currentState", "kind": 32768, "kindString": "Parameter", @@ -5624,12 +5765,12 @@ }, "type": { "type": "reference", - "id": 429, + "id": 439, "name": "PresenceState" } }, { - "id": 382, + "id": 392, "name": "newState", "kind": 32768, "kindString": "Parameter", @@ -5641,19 +5782,19 @@ "types": [ { "type": "reference", - "id": 437, + "id": 447, "name": "RawPresenceState" }, { "type": "reference", - "id": 429, + "id": 439, "name": "PresenceState" } ] } }, { - "id": 383, + "id": 393, "name": "onJoin", "kind": 32768, "kindString": "Parameter", @@ -5666,7 +5807,7 @@ } }, { - "id": 384, + "id": 394, "name": "onLeave", "kind": 32768, "kindString": "Parameter", @@ -5681,7 +5822,7 @@ ], "type": { "type": "reference", - "id": 429, + "id": 439, "name": "PresenceState" } } @@ -5689,13 +5830,13 @@ "sources": [ { "fileName": "RealtimePresence.ts", - "line": 119, + "line": 122, "character": 18 } ] }, { - "id": 401, + "id": 411, "name": "transformState", "kind": 2048, "kindString": "Method", @@ -5706,7 +5847,7 @@ }, "signatures": [ { - "id": 402, + "id": 412, "name": "transformState", "kind": 4096, "kindString": "Call signature", @@ -5724,7 +5865,7 @@ }, "parameters": [ { - "id": 403, + "id": 413, "name": "state", "kind": 32768, "kindString": "Parameter", @@ -5736,12 +5877,12 @@ "types": [ { "type": "reference", - "id": 437, + "id": 447, "name": "RawPresenceState" }, { "type": "reference", - "id": 429, + "id": 439, "name": "PresenceState" } ] @@ -5750,7 +5891,7 @@ ], "type": { "type": "reference", - "id": 429, + "id": 439, "name": "PresenceState" } } @@ -5758,13 +5899,13 @@ "sources": [ { "fileName": "RealtimePresence.ts", - "line": 274, + "line": 278, "character": 31 } ] }, { - "id": 367, + "id": 377, "name": "caller", "kind": 2097152, "kindString": "Object literal", @@ -5773,7 +5914,7 @@ }, "children": [ { - "id": 368, + "id": 378, "name": "onJoin", "kind": 64, "kindString": "Function", @@ -5782,7 +5923,7 @@ }, "signatures": [ { - "id": 369, + "id": 379, "name": "onJoin", "kind": 4096, "kindString": "Call signature", @@ -5804,7 +5945,7 @@ ] }, { - "id": 370, + "id": 380, "name": "onLeave", "kind": 64, "kindString": "Function", @@ -5813,7 +5954,7 @@ }, "signatures": [ { - "id": 371, + "id": 381, "name": "onLeave", "kind": 4096, "kindString": "Call signature", @@ -5835,7 +5976,7 @@ ] }, { - "id": 372, + "id": 382, "name": "onSync", "kind": 64, "kindString": "Function", @@ -5844,7 +5985,7 @@ }, "signatures": [ { - "id": 373, + "id": 383, "name": "onSync", "kind": 4096, "kindString": "Call signature", @@ -5871,9 +6012,9 @@ "title": "Functions", "kind": 64, "children": [ - 368, - 370, - 372 + 378, + 380, + 382 ] } ], @@ -5895,41 +6036,41 @@ "title": "Constructors", "kind": 512, "children": [ - 374 + 384 ] }, { "title": "Properties", "kind": 1024, "children": [ + 385, + 376, 375, - 366, - 365, - 364 + 374 ] }, { "title": "Methods", "kind": 2048, "children": [ - 422, - 418, - 407, - 410, - 413, - 404, - 391, - 396, - 385, - 379, - 401 + 432, + 428, + 417, + 420, + 423, + 414, + 401, + 406, + 395, + 389, + 411 ] }, { "title": "Object literals", "kind": 2097152, "children": [ - 367 + 377 ] } ], @@ -5942,7 +6083,7 @@ ] }, { - "id": 424, + "id": 434, "name": "Presence", "kind": 4194304, "kindString": "Type alias", @@ -5957,21 +6098,21 @@ "type": { "type": "reflection", "declaration": { - "id": 425, + "id": 435, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": [ { - "id": 427, + "id": 437, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 428, + "id": 438, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -5990,7 +6131,7 @@ ], "children": [ { - "id": 426, + "id": 436, "name": "presence_id", "kind": 32, "kindString": "Variable", @@ -6013,7 +6154,7 @@ "title": "Variables", "kind": 32, "children": [ - 426 + 436 ] } ], @@ -6028,14 +6169,14 @@ } }, { - "id": 450, + "id": 460, "name": "PresenceChooser", "kind": 4194304, "kindString": "Type alias", "flags": {}, "typeParameter": [ { - "id": 451, + "id": 461, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -6052,21 +6193,21 @@ "type": { "type": "reflection", "declaration": { - "id": 452, + "id": 462, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 453, + "id": 463, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 454, + "id": 464, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -6077,7 +6218,7 @@ } }, { - "id": 455, + "id": 465, "name": "presences", "kind": 32768, "kindString": "Parameter", @@ -6105,7 +6246,7 @@ } }, { - "id": 433, + "id": 443, "name": "PresenceDiff", "kind": 4194304, "kindString": "Type alias", @@ -6120,14 +6261,14 @@ "type": { "type": "reflection", "declaration": { - "id": 434, + "id": 444, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 435, + "id": 445, "name": "joins", "kind": 32, "kindString": "Variable", @@ -6141,12 +6282,12 @@ ], "type": { "type": "reference", - "id": 429, + "id": 439, "name": "PresenceState" } }, { - "id": 436, + "id": 446, "name": "leaves", "kind": 32, "kindString": "Variable", @@ -6160,7 +6301,7 @@ ], "type": { "type": "reference", - "id": 429, + "id": 439, "name": "PresenceState" } } @@ -6170,8 +6311,8 @@ "title": "Variables", "kind": 32, "children": [ - 435, - 436 + 445, + 446 ] } ], @@ -6186,7 +6327,7 @@ } }, { - "id": 429, + "id": 439, "name": "PresenceState", "kind": 4194304, "kindString": "Type alias", @@ -6201,21 +6342,21 @@ "type": { "type": "reflection", "declaration": { - "id": 430, + "id": 440, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": [ { - "id": 431, + "id": 441, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 432, + "id": 442, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -6230,7 +6371,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 424, + "id": 434, "name": "Presence" } } @@ -6247,7 +6388,7 @@ } }, { - "id": 446, + "id": 456, "name": "RawPresenceDiff", "kind": 4194304, "kindString": "Type alias", @@ -6262,14 +6403,14 @@ "type": { "type": "reflection", "declaration": { - "id": 447, + "id": 457, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 448, + "id": 458, "name": "joins", "kind": 32, "kindString": "Variable", @@ -6283,12 +6424,12 @@ ], "type": { "type": "reference", - "id": 437, + "id": 447, "name": "RawPresenceState" } }, { - "id": 449, + "id": 459, "name": "leaves", "kind": 32, "kindString": "Variable", @@ -6302,7 +6443,7 @@ ], "type": { "type": "reference", - "id": 437, + "id": 447, "name": "RawPresenceState" } } @@ -6312,8 +6453,8 @@ "title": "Variables", "kind": 32, "children": [ - 448, - 449 + 458, + 459 ] } ], @@ -6328,7 +6469,7 @@ } }, { - "id": 437, + "id": 447, "name": "RawPresenceState", "kind": 4194304, "kindString": "Type alias", @@ -6343,21 +6484,21 @@ "type": { "type": "reflection", "declaration": { - "id": 438, + "id": 448, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": [ { - "id": 439, + "id": 449, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 440, + "id": 450, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -6370,7 +6511,7 @@ ], "type": { "type": "reference", - "id": 606, + "id": 616, "typeArguments": [ { "type": "stringLiteral", @@ -6381,21 +6522,21 @@ "elementType": { "type": "reflection", "declaration": { - "id": 441, + "id": 451, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": [ { - "id": 444, + "id": 454, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 445, + "id": 455, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -6414,7 +6555,7 @@ ], "children": [ { - "id": 442, + "id": 452, "name": "phx_ref", "kind": 32, "kindString": "Variable", @@ -6443,7 +6584,7 @@ } }, { - "id": 443, + "id": 453, "name": "phx_ref_prev", "kind": 32, "kindString": "Variable", @@ -6477,8 +6618,8 @@ "title": "Variables", "kind": 32, "children": [ - 442, - 443 + 452, + 453 ] } ], @@ -6513,19 +6654,19 @@ "title": "Classes", "kind": 128, "children": [ - 363 + 373 ] }, { "title": "Type aliases", "kind": 4194304, "children": [ - 424, - 450, - 433, - 429, - 446, - 437 + 434, + 460, + 443, + 439, + 456, + 447 ] } ], @@ -6538,7 +6679,7 @@ ] }, { - "id": 208, + "id": 218, "name": "\"RealtimeSubscription\"", "kind": 1, "kindString": "Module", @@ -6548,7 +6689,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/RealtimeSubscription.ts", "children": [ { - "id": 209, + "id": 219, "name": "RealtimeSubscription", "kind": 128, "kindString": "Class", @@ -6557,7 +6698,7 @@ }, "children": [ { - "id": 217, + "id": 227, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -6566,7 +6707,7 @@ }, "signatures": [ { - "id": 224, + "id": 234, "name": "new RealtimeSubscription", "kind": 16384, "kindString": "Constructor signature", @@ -6575,7 +6716,7 @@ }, "parameters": [ { - "id": 225, + "id": 235, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -6588,7 +6729,7 @@ } }, { - "id": 226, + "id": 236, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -6598,7 +6739,7 @@ "type": { "type": "reflection", "declaration": { - "id": 227, + "id": 237, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6607,7 +6748,7 @@ }, "indexSignature": [ { - "id": 228, + "id": 238, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -6616,7 +6757,7 @@ }, "parameters": [ { - "id": 229, + "id": 239, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -6647,7 +6788,7 @@ "defaultValue": "{}" }, { - "id": 230, + "id": 240, "name": "socket", "kind": 32768, "kindString": "Parameter", @@ -6656,14 +6797,14 @@ }, "type": { "type": "reference", - "id": 69, + "id": 74, "name": "RealtimeClient" } } ], "type": { "type": "reference", - "id": 209, + "id": 219, "name": "RealtimeSubscription" } } @@ -6677,7 +6818,7 @@ ] }, { - "id": 210, + "id": 220, "name": "bindings", "kind": 1024, "kindString": "Property", @@ -6701,7 +6842,7 @@ "defaultValue": "[]" }, { - "id": 214, + "id": 224, "name": "joinPush", "kind": 1024, "kindString": "Property", @@ -6717,12 +6858,12 @@ ], "type": { "type": "reference", - "id": 297, + "id": 307, "name": "Push" } }, { - "id": 213, + "id": 223, "name": "joinedOnce", "kind": 1024, "kindString": "Property", @@ -6743,7 +6884,7 @@ "defaultValue": "false" }, { - "id": 219, + "id": 229, "name": "params", "kind": 1024, "kindString": "Property", @@ -6762,7 +6903,7 @@ "type": { "type": "reflection", "declaration": { - "id": 220, + "id": 230, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6771,7 +6912,7 @@ }, "indexSignature": [ { - "id": 221, + "id": 231, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -6780,7 +6921,7 @@ }, "parameters": [ { - "id": 222, + "id": 232, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -6810,7 +6951,7 @@ } }, { - "id": 216, + "id": 226, "name": "pushBuffer", "kind": 1024, "kindString": "Property", @@ -6828,14 +6969,14 @@ "type": "array", "elementType": { "type": "reference", - "id": 297, + "id": 307, "name": "Push" } }, "defaultValue": "[]" }, { - "id": 215, + "id": 225, "name": "rejoinTimer", "kind": 1024, "kindString": "Property", @@ -6851,12 +6992,12 @@ ], "type": { "type": "reference", - "id": 30, + "id": 35, "name": "Timer" } }, { - "id": 223, + "id": 233, "name": "socket", "kind": 1024, "kindString": "Property", @@ -6874,12 +7015,12 @@ ], "type": { "type": "reference", - "id": 69, + "id": 74, "name": "RealtimeClient" } }, { - "id": 212, + "id": 222, "name": "state", "kind": 1024, "kindString": "Property", @@ -6901,7 +7042,7 @@ "defaultValue": "CHANNEL_STATES.closed" }, { - "id": 211, + "id": 221, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -6921,7 +7062,7 @@ } }, { - "id": 218, + "id": 228, "name": "topic", "kind": 1024, "kindString": "Property", @@ -6943,7 +7084,7 @@ } }, { - "id": 249, + "id": 259, "name": "canPush", "kind": 2048, "kindString": "Method", @@ -6952,7 +7093,7 @@ }, "signatures": [ { - "id": 250, + "id": 260, "name": "canPush", "kind": 4096, "kindString": "Call signature", @@ -6974,7 +7115,7 @@ ] }, { - "id": 286, + "id": 296, "name": "isClosed", "kind": 2048, "kindString": "Method", @@ -6983,7 +7124,7 @@ }, "signatures": [ { - "id": 287, + "id": 297, "name": "isClosed", "kind": 4096, "kindString": "Call signature", @@ -7005,7 +7146,7 @@ ] }, { - "id": 288, + "id": 298, "name": "isErrored", "kind": 2048, "kindString": "Method", @@ -7014,7 +7155,7 @@ }, "signatures": [ { - "id": 289, + "id": 299, "name": "isErrored", "kind": 4096, "kindString": "Call signature", @@ -7036,7 +7177,7 @@ ] }, { - "id": 290, + "id": 300, "name": "isJoined", "kind": 2048, "kindString": "Method", @@ -7045,7 +7186,7 @@ }, "signatures": [ { - "id": 291, + "id": 301, "name": "isJoined", "kind": 4096, "kindString": "Call signature", @@ -7067,7 +7208,7 @@ ] }, { - "id": 292, + "id": 302, "name": "isJoining", "kind": 2048, "kindString": "Method", @@ -7076,7 +7217,7 @@ }, "signatures": [ { - "id": 293, + "id": 303, "name": "isJoining", "kind": 4096, "kindString": "Call signature", @@ -7098,7 +7239,7 @@ ] }, { - "id": 294, + "id": 304, "name": "isLeaving", "kind": 2048, "kindString": "Method", @@ -7107,7 +7248,7 @@ }, "signatures": [ { - "id": 295, + "id": 305, "name": "isLeaving", "kind": 4096, "kindString": "Call signature", @@ -7129,7 +7270,7 @@ ] }, { - "id": 270, + "id": 280, "name": "isMember", "kind": 2048, "kindString": "Method", @@ -7138,7 +7279,7 @@ }, "signatures": [ { - "id": 271, + "id": 281, "name": "isMember", "kind": 4096, "kindString": "Call signature", @@ -7147,7 +7288,7 @@ }, "parameters": [ { - "id": 272, + "id": 282, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -7175,7 +7316,7 @@ ] }, { - "id": 273, + "id": 283, "name": "joinRef", "kind": 2048, "kindString": "Method", @@ -7184,7 +7325,7 @@ }, "signatures": [ { - "id": 274, + "id": 284, "name": "joinRef", "kind": 4096, "kindString": "Call signature", @@ -7206,7 +7347,7 @@ ] }, { - "id": 246, + "id": 256, "name": "off", "kind": 2048, "kindString": "Method", @@ -7215,7 +7356,7 @@ }, "signatures": [ { - "id": 247, + "id": 257, "name": "off", "kind": 4096, "kindString": "Call signature", @@ -7224,7 +7365,7 @@ }, "parameters": [ { - "id": 248, + "id": 258, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -7252,7 +7393,7 @@ ] }, { - "id": 242, + "id": 252, "name": "on", "kind": 2048, "kindString": "Method", @@ -7261,7 +7402,7 @@ }, "signatures": [ { - "id": 243, + "id": 253, "name": "on", "kind": 4096, "kindString": "Call signature", @@ -7270,7 +7411,7 @@ }, "parameters": [ { - "id": 244, + "id": 254, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -7283,7 +7424,7 @@ } }, { - "id": 245, + "id": 255, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -7311,7 +7452,7 @@ ] }, { - "id": 236, + "id": 246, "name": "onClose", "kind": 2048, "kindString": "Method", @@ -7320,7 +7461,7 @@ }, "signatures": [ { - "id": 237, + "id": 247, "name": "onClose", "kind": 4096, "kindString": "Call signature", @@ -7329,7 +7470,7 @@ }, "parameters": [ { - "id": 238, + "id": 248, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -7357,7 +7498,7 @@ ] }, { - "id": 239, + "id": 249, "name": "onError", "kind": 2048, "kindString": "Method", @@ -7366,7 +7507,7 @@ }, "signatures": [ { - "id": 240, + "id": 250, "name": "onError", "kind": 4096, "kindString": "Call signature", @@ -7375,7 +7516,7 @@ }, "parameters": [ { - "id": 241, + "id": 251, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -7403,7 +7544,7 @@ ] }, { - "id": 265, + "id": 275, "name": "onMessage", "kind": 2048, "kindString": "Method", @@ -7412,7 +7553,7 @@ }, "signatures": [ { - "id": 266, + "id": 276, "name": "onMessage", "kind": 4096, "kindString": "Call signature", @@ -7425,7 +7566,7 @@ }, "parameters": [ { - "id": 267, + "id": 277, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -7438,7 +7579,7 @@ } }, { - "id": 268, + "id": 278, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -7451,7 +7592,7 @@ } }, { - "id": 269, + "id": 279, "name": "ref", "kind": 32768, "kindString": "Parameter", @@ -7489,7 +7630,7 @@ ] }, { - "id": 251, + "id": 261, "name": "push", "kind": 2048, "kindString": "Method", @@ -7498,7 +7639,7 @@ }, "signatures": [ { - "id": 252, + "id": 262, "name": "push", "kind": 4096, "kindString": "Call signature", @@ -7507,7 +7648,7 @@ }, "parameters": [ { - "id": 253, + "id": 263, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -7521,7 +7662,7 @@ } }, { - "id": 254, + "id": 264, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -7534,7 +7675,7 @@ } }, { - "id": 255, + "id": 265, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -7550,7 +7691,7 @@ ], "type": { "type": "reference", - "id": 297, + "id": 307, "name": "Push" } } @@ -7564,7 +7705,7 @@ ] }, { - "id": 275, + "id": 285, "name": "rejoin", "kind": 2048, "kindString": "Method", @@ -7573,7 +7714,7 @@ }, "signatures": [ { - "id": 276, + "id": 286, "name": "rejoin", "kind": 4096, "kindString": "Call signature", @@ -7582,7 +7723,7 @@ }, "parameters": [ { - "id": 277, + "id": 287, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -7611,7 +7752,7 @@ ] }, { - "id": 231, + "id": 241, "name": "rejoinUntilConnected", "kind": 2048, "kindString": "Method", @@ -7620,7 +7761,7 @@ }, "signatures": [ { - "id": 232, + "id": 242, "name": "rejoinUntilConnected", "kind": 4096, "kindString": "Call signature", @@ -7642,7 +7783,7 @@ ] }, { - "id": 283, + "id": 293, "name": "replyEventName", "kind": 2048, "kindString": "Method", @@ -7651,7 +7792,7 @@ }, "signatures": [ { - "id": 284, + "id": 294, "name": "replyEventName", "kind": 4096, "kindString": "Call signature", @@ -7660,7 +7801,7 @@ }, "parameters": [ { - "id": 285, + "id": 295, "name": "ref", "kind": 32768, "kindString": "Parameter", @@ -7688,7 +7829,7 @@ ] }, { - "id": 233, + "id": 243, "name": "subscribe", "kind": 2048, "kindString": "Method", @@ -7697,7 +7838,7 @@ }, "signatures": [ { - "id": 234, + "id": 244, "name": "subscribe", "kind": 4096, "kindString": "Call signature", @@ -7706,7 +7847,7 @@ }, "parameters": [ { - "id": 235, + "id": 245, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -7722,7 +7863,7 @@ ], "type": { "type": "reference", - "id": 297, + "id": 307, "name": "Push" } } @@ -7736,7 +7877,7 @@ ] }, { - "id": 278, + "id": 288, "name": "trigger", "kind": 2048, "kindString": "Method", @@ -7745,7 +7886,7 @@ }, "signatures": [ { - "id": 279, + "id": 289, "name": "trigger", "kind": 4096, "kindString": "Call signature", @@ -7754,7 +7895,7 @@ }, "parameters": [ { - "id": 280, + "id": 290, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -7767,7 +7908,7 @@ } }, { - "id": 281, + "id": 291, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -7781,7 +7922,7 @@ } }, { - "id": 282, + "id": 292, "name": "ref", "kind": 32768, "kindString": "Parameter", @@ -7819,7 +7960,7 @@ ] }, { - "id": 262, + "id": 272, "name": "unsubscribe", "kind": 2048, "kindString": "Method", @@ -7828,7 +7969,7 @@ }, "signatures": [ { - "id": 263, + "id": 273, "name": "unsubscribe", "kind": 4096, "kindString": "Call signature", @@ -7841,7 +7982,7 @@ }, "parameters": [ { - "id": 264, + "id": 274, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -7857,7 +7998,7 @@ ], "type": { "type": "reference", - "id": 297, + "id": 307, "name": "Push" } } @@ -7871,7 +8012,7 @@ ] }, { - "id": 256, + "id": 266, "name": "updateJoinPayload", "kind": 2048, "kindString": "Method", @@ -7880,7 +8021,7 @@ }, "signatures": [ { - "id": 257, + "id": 267, "name": "updateJoinPayload", "kind": 4096, "kindString": "Call signature", @@ -7889,7 +8030,7 @@ }, "parameters": [ { - "id": 258, + "id": 268, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -7899,7 +8040,7 @@ "type": { "type": "reflection", "declaration": { - "id": 259, + "id": 269, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -7908,7 +8049,7 @@ }, "indexSignature": [ { - "id": 260, + "id": 270, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -7917,7 +8058,7 @@ }, "parameters": [ { - "id": 261, + "id": 271, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -7967,50 +8108,50 @@ "title": "Constructors", "kind": 512, "children": [ - 217 + 227 ] }, { "title": "Properties", "kind": 1024, "children": [ - 210, - 214, - 213, - 219, - 216, - 215, + 220, + 224, 223, - 212, - 211, - 218 + 229, + 226, + 225, + 233, + 222, + 221, + 228 ] }, { "title": "Methods", "kind": 2048, "children": [ - 249, - 286, - 288, - 290, - 292, - 294, - 270, - 273, - 246, - 242, - 236, - 239, - 265, - 251, - 275, - 231, + 259, + 296, + 298, + 300, + 302, + 304, + 280, 283, - 233, - 278, - 262, - 256 + 256, + 252, + 246, + 249, + 275, + 261, + 285, + 241, + 293, + 243, + 288, + 272, + 266 ] } ], @@ -8028,7 +8169,7 @@ "title": "Classes", "kind": 128, "children": [ - 209 + 219 ] } ], @@ -8041,7 +8182,7 @@ ] }, { - "id": 646, + "id": 656, "name": "\"index\"", "kind": 1, "kindString": "Module", @@ -8317,6 +8458,104 @@ } ] }, + { + "id": 24, + "name": "CONNECTION_STATE", + "kind": 4, + "kindString": "Enumeration", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 28, + "name": "Closed", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 43, + "character": 8 + } + ], + "defaultValue": "\"closed\"" + }, + { + "id": 27, + "name": "Closing", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 42, + "character": 9 + } + ], + "defaultValue": "\"closing\"" + }, + { + "id": 25, + "name": "Connecting", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 40, + "character": 12 + } + ], + "defaultValue": "\"connecting\"" + }, + { + "id": 26, + "name": "Open", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 41, + "character": 6 + } + ], + "defaultValue": "\"open\"" + } + ], + "groups": [ + { + "title": "Enumeration members", + "kind": 16, + "children": [ + 28, + 27, + 25, + 26 + ] + } + ], + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 39, + "character": 28 + } + ] + }, { "id": 4, "name": "SOCKET_STATES", @@ -8460,7 +8699,7 @@ ] }, { - "id": 27, + "id": 32, "name": "DEFAULT_TIMEOUT", "kind": 32, "kindString": "Variable", @@ -8482,7 +8721,7 @@ "defaultValue": "10000" }, { - "id": 26, + "id": 31, "name": "VSN", "kind": 32, "kindString": "Variable", @@ -8504,7 +8743,7 @@ "defaultValue": "\"1.0.0\"" }, { - "id": 28, + "id": 33, "name": "WS_CLOSE_NORMAL", "kind": 32, "kindString": "Variable", @@ -8526,7 +8765,7 @@ "defaultValue": "1000" }, { - "id": 24, + "id": 29, "name": "DEFAULT_HEADERS", "kind": 2097152, "kindString": "Object literal", @@ -8536,7 +8775,7 @@ }, "children": [ { - "id": 25, + "id": 30, "name": "X-Client-Info", "kind": 32, "kindString": "Variable", @@ -8562,7 +8801,7 @@ "title": "Variables", "kind": 32, "children": [ - 25 + 30 ] } ], @@ -8586,6 +8825,7 @@ "children": [ 15, 9, + 24, 4, 22 ] @@ -8594,16 +8834,16 @@ "title": "Variables", "kind": 32, "children": [ - 27, - 26, - 28 + 32, + 31, + 33 ] }, { "title": "Object literals", "kind": 2097152, "children": [ - 24 + 29 ] } ], @@ -8616,7 +8856,7 @@ ] }, { - "id": 296, + "id": 306, "name": "\"lib/push\"", "kind": 1, "kindString": "Module", @@ -8626,7 +8866,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/push.ts", "children": [ { - "id": 297, + "id": 307, "name": "Push", "kind": 128, "kindString": "Class", @@ -8635,7 +8875,7 @@ }, "children": [ { - "id": 310, + "id": 320, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -8647,7 +8887,7 @@ }, "signatures": [ { - "id": 318, + "id": 328, "name": "new Push", "kind": 16384, "kindString": "Constructor signature", @@ -8659,7 +8899,7 @@ }, "parameters": [ { - "id": 319, + "id": 329, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -8674,19 +8914,19 @@ "types": [ { "type": "reference", - "id": 209, + "id": 219, "name": "RealtimeSubscription" }, { "type": "reference", - "id": 457, + "id": 467, "name": "RealtimeChannel" } ] } }, { - "id": 320, + "id": 330, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -8702,7 +8942,7 @@ } }, { - "id": 321, + "id": 331, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -8715,7 +8955,7 @@ "type": { "type": "reflection", "declaration": { - "id": 322, + "id": 332, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -8724,7 +8964,7 @@ }, "indexSignature": [ { - "id": 323, + "id": 333, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -8733,7 +8973,7 @@ }, "parameters": [ { - "id": 324, + "id": 334, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -8764,7 +9004,7 @@ "defaultValue": "{}" }, { - "id": 325, + "id": 335, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -8783,7 +9023,7 @@ ], "type": { "type": "reference", - "id": 297, + "id": 307, "name": "Push" } } @@ -8797,7 +9037,7 @@ ] }, { - "id": 311, + "id": 321, "name": "channel", "kind": 1024, "kindString": "Property", @@ -8821,19 +9061,19 @@ "types": [ { "type": "reference", - "id": 209, + "id": 219, "name": "RealtimeSubscription" }, { "type": "reference", - "id": 457, + "id": 467, "name": "RealtimeChannel" } ] } }, { - "id": 312, + "id": 322, "name": "event", "kind": 1024, "kindString": "Property", @@ -8858,7 +9098,7 @@ } }, { - "id": 313, + "id": 323, "name": "payload", "kind": 1024, "kindString": "Property", @@ -8880,7 +9120,7 @@ "type": { "type": "reflection", "declaration": { - "id": 314, + "id": 324, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -8889,7 +9129,7 @@ }, "indexSignature": [ { - "id": 315, + "id": 325, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -8898,7 +9138,7 @@ }, "parameters": [ { - "id": 316, + "id": 326, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -8928,7 +9168,7 @@ } }, { - "id": 305, + "id": 315, "name": "recHooks", "kind": 1024, "kindString": "Property", @@ -8947,7 +9187,7 @@ "elementType": { "type": "reflection", "declaration": { - "id": 306, + "id": 316, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -8956,7 +9196,7 @@ }, "children": [ { - "id": 308, + "id": 318, "name": "callback", "kind": 32, "kindString": "Variable", @@ -8976,7 +9216,7 @@ } }, { - "id": 307, + "id": 317, "name": "status", "kind": 32, "kindString": "Variable", @@ -9001,8 +9241,8 @@ "title": "Variables", "kind": 32, "children": [ - 308, - 307 + 318, + 317 ] } ], @@ -9019,7 +9259,7 @@ "defaultValue": "[]" }, { - "id": 301, + "id": 311, "name": "receivedResp", "kind": 1024, "kindString": "Property", @@ -9039,7 +9279,7 @@ { "type": "reflection", "declaration": { - "id": 302, + "id": 312, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9048,7 +9288,7 @@ }, "children": [ { - "id": 304, + "id": 314, "name": "response", "kind": 32, "kindString": "Variable", @@ -9068,7 +9308,7 @@ } }, { - "id": 303, + "id": 313, "name": "status", "kind": 32, "kindString": "Variable", @@ -9093,8 +9333,8 @@ "title": "Variables", "kind": 32, "children": [ - 304, - 303 + 314, + 313 ] } ], @@ -9116,7 +9356,7 @@ "defaultValue": "null" }, { - "id": 300, + "id": 310, "name": "ref", "kind": 1024, "kindString": "Property", @@ -9137,7 +9377,7 @@ "defaultValue": "\"\"" }, { - "id": 309, + "id": 319, "name": "refEvent", "kind": 1024, "kindString": "Property", @@ -9167,7 +9407,7 @@ "defaultValue": "null" }, { - "id": 298, + "id": 308, "name": "sent", "kind": 1024, "kindString": "Property", @@ -9188,7 +9428,7 @@ "defaultValue": "false" }, { - "id": 317, + "id": 327, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -9213,7 +9453,7 @@ } }, { - "id": 299, + "id": 309, "name": "timeoutTimer", "kind": 1024, "kindString": "Property", @@ -9243,7 +9483,7 @@ "defaultValue": "undefined" }, { - "id": 349, + "id": 359, "name": "_cancelRefEvent", "kind": 2048, "kindString": "Method", @@ -9253,7 +9493,7 @@ }, "signatures": [ { - "id": 350, + "id": 360, "name": "_cancelRefEvent", "kind": 4096, "kindString": "Call signature", @@ -9275,7 +9515,7 @@ ] }, { - "id": 351, + "id": 361, "name": "_cancelTimeout", "kind": 2048, "kindString": "Method", @@ -9285,7 +9525,7 @@ }, "signatures": [ { - "id": 352, + "id": 362, "name": "_cancelTimeout", "kind": 4096, "kindString": "Call signature", @@ -9307,7 +9547,7 @@ ] }, { - "id": 359, + "id": 369, "name": "_hasReceived", "kind": 2048, "kindString": "Method", @@ -9317,7 +9557,7 @@ }, "signatures": [ { - "id": 360, + "id": 370, "name": "_hasReceived", "kind": 4096, "kindString": "Call signature", @@ -9326,7 +9566,7 @@ }, "parameters": [ { - "id": 361, + "id": 371, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -9367,7 +9607,7 @@ ] }, { - "id": 353, + "id": 363, "name": "_matchReceive", "kind": 2048, "kindString": "Method", @@ -9377,7 +9617,7 @@ }, "signatures": [ { - "id": 354, + "id": 364, "name": "_matchReceive", "kind": 4096, "kindString": "Call signature", @@ -9386,7 +9626,7 @@ }, "parameters": [ { - "id": 355, + "id": 365, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -9397,7 +9637,7 @@ "type": { "type": "reflection", "declaration": { - "id": 356, + "id": 366, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9406,7 +9646,7 @@ }, "children": [ { - "id": 358, + "id": 368, "name": "response", "kind": 32, "kindString": "Variable", @@ -9426,7 +9666,7 @@ } }, { - "id": 357, + "id": 367, "name": "status", "kind": 32, "kindString": "Variable", @@ -9451,8 +9691,8 @@ "title": "Variables", "kind": 32, "children": [ - 358, - 357 + 368, + 367 ] } ], @@ -9482,7 +9722,7 @@ ] }, { - "id": 347, + "id": 357, "name": "destroy", "kind": 2048, "kindString": "Method", @@ -9491,7 +9731,7 @@ }, "signatures": [ { - "id": 348, + "id": 358, "name": "destroy", "kind": 4096, "kindString": "Call signature", @@ -9513,7 +9753,7 @@ ] }, { - "id": 337, + "id": 347, "name": "receive", "kind": 2048, "kindString": "Method", @@ -9522,7 +9762,7 @@ }, "signatures": [ { - "id": 338, + "id": 348, "name": "receive", "kind": 4096, "kindString": "Call signature", @@ -9531,7 +9771,7 @@ }, "parameters": [ { - "id": 339, + "id": 349, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -9544,7 +9784,7 @@ } }, { - "id": 340, + "id": 350, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -9572,7 +9812,7 @@ ] }, { - "id": 326, + "id": 336, "name": "resend", "kind": 2048, "kindString": "Method", @@ -9581,7 +9821,7 @@ }, "signatures": [ { - "id": 327, + "id": 337, "name": "resend", "kind": 4096, "kindString": "Call signature", @@ -9590,7 +9830,7 @@ }, "parameters": [ { - "id": 328, + "id": 338, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -9618,7 +9858,7 @@ ] }, { - "id": 329, + "id": 339, "name": "send", "kind": 2048, "kindString": "Method", @@ -9627,7 +9867,7 @@ }, "signatures": [ { - "id": 330, + "id": 340, "name": "send", "kind": 4096, "kindString": "Call signature", @@ -9649,7 +9889,7 @@ ] }, { - "id": 341, + "id": 351, "name": "startTimeout", "kind": 2048, "kindString": "Method", @@ -9658,7 +9898,7 @@ }, "signatures": [ { - "id": 342, + "id": 352, "name": "startTimeout", "kind": 4096, "kindString": "Call signature", @@ -9680,7 +9920,7 @@ ] }, { - "id": 343, + "id": 353, "name": "trigger", "kind": 2048, "kindString": "Method", @@ -9689,7 +9929,7 @@ }, "signatures": [ { - "id": 344, + "id": 354, "name": "trigger", "kind": 4096, "kindString": "Call signature", @@ -9698,7 +9938,7 @@ }, "parameters": [ { - "id": 345, + "id": 355, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -9711,7 +9951,7 @@ } }, { - "id": 346, + "id": 356, "name": "response", "kind": 32768, "kindString": "Parameter", @@ -9739,7 +9979,7 @@ ] }, { - "id": 331, + "id": 341, "name": "updatePayload", "kind": 2048, "kindString": "Method", @@ -9748,7 +9988,7 @@ }, "signatures": [ { - "id": 332, + "id": 342, "name": "updatePayload", "kind": 4096, "kindString": "Call signature", @@ -9757,7 +9997,7 @@ }, "parameters": [ { - "id": 333, + "id": 343, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -9767,7 +10007,7 @@ "type": { "type": "reflection", "declaration": { - "id": 334, + "id": 344, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9776,7 +10016,7 @@ }, "indexSignature": [ { - "id": 335, + "id": 345, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -9785,7 +10025,7 @@ }, "parameters": [ { - "id": 336, + "id": 346, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -9835,40 +10075,40 @@ "title": "Constructors", "kind": 512, "children": [ - 310 + 320 ] }, { "title": "Properties", "kind": 1024, "children": [ + 321, + 322, + 323, + 315, 311, - 312, - 313, - 305, - 301, - 300, - 309, - 298, - 317, - 299 + 310, + 319, + 308, + 327, + 309 ] }, { "title": "Methods", "kind": 2048, "children": [ - 349, - 351, 359, - 353, + 361, + 369, + 363, + 357, 347, - 337, - 326, - 329, - 341, - 343, - 331 + 336, + 339, + 351, + 353, + 341 ] } ], @@ -9886,7 +10126,7 @@ "title": "Classes", "kind": 128, "children": [ - 297 + 307 ] } ], @@ -9899,7 +10139,7 @@ ] }, { - "id": 43, + "id": 48, "name": "\"lib/serializer\"", "kind": 1, "kindString": "Module", @@ -9909,7 +10149,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/serializer.ts", "children": [ { - "id": 44, + "id": 49, "name": "Serializer", "kind": 128, "kindString": "Class", @@ -9918,7 +10158,7 @@ }, "children": [ { - "id": 45, + "id": 50, "name": "HEADER_LENGTH", "kind": 1024, "kindString": "Property", @@ -9939,7 +10179,7 @@ "defaultValue": "1" }, { - "id": 50, + "id": 55, "name": "_binaryDecode", "kind": 2048, "kindString": "Method", @@ -9949,7 +10189,7 @@ }, "signatures": [ { - "id": 51, + "id": 56, "name": "_binaryDecode", "kind": 4096, "kindString": "Call signature", @@ -9958,7 +10198,7 @@ }, "parameters": [ { - "id": 52, + "id": 57, "name": "buffer", "kind": 32768, "kindString": "Parameter", @@ -9974,7 +10214,7 @@ "type": { "type": "reflection", "declaration": { - "id": 53, + "id": 58, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9983,7 +10223,7 @@ }, "children": [ { - "id": 56, + "id": 61, "name": "event", "kind": 32, "kindString": "Variable", @@ -10003,7 +10243,7 @@ } }, { - "id": 57, + "id": 62, "name": "payload", "kind": 32, "kindString": "Variable", @@ -10023,7 +10263,7 @@ } }, { - "id": 54, + "id": 59, "name": "ref", "kind": 32, "kindString": "Variable", @@ -10043,7 +10283,7 @@ } }, { - "id": 55, + "id": 60, "name": "topic", "kind": 32, "kindString": "Variable", @@ -10068,10 +10308,10 @@ "title": "Variables", "kind": 32, "children": [ - 56, - 57, - 54, - 55 + 61, + 62, + 59, + 60 ] } ] @@ -10088,7 +10328,7 @@ ] }, { - "id": 58, + "id": 63, "name": "_decodeBroadcast", "kind": 2048, "kindString": "Method", @@ -10098,7 +10338,7 @@ }, "signatures": [ { - "id": 59, + "id": 64, "name": "_decodeBroadcast", "kind": 4096, "kindString": "Call signature", @@ -10107,7 +10347,7 @@ }, "parameters": [ { - "id": 60, + "id": 65, "name": "buffer", "kind": 32768, "kindString": "Parameter", @@ -10120,7 +10360,7 @@ } }, { - "id": 61, + "id": 66, "name": "view", "kind": 32768, "kindString": "Parameter", @@ -10133,7 +10373,7 @@ } }, { - "id": 62, + "id": 67, "name": "decoder", "kind": 32768, "kindString": "Parameter", @@ -10149,7 +10389,7 @@ "type": { "type": "reflection", "declaration": { - "id": 63, + "id": 68, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -10158,7 +10398,7 @@ }, "children": [ { - "id": 66, + "id": 71, "name": "event", "kind": 32, "kindString": "Variable", @@ -10178,7 +10418,7 @@ } }, { - "id": 67, + "id": 72, "name": "payload", "kind": 32, "kindString": "Variable", @@ -10198,7 +10438,7 @@ } }, { - "id": 64, + "id": 69, "name": "ref", "kind": 32, "kindString": "Variable", @@ -10218,7 +10458,7 @@ } }, { - "id": 65, + "id": 70, "name": "topic", "kind": 32, "kindString": "Variable", @@ -10243,10 +10483,10 @@ "title": "Variables", "kind": 32, "children": [ - 66, - 67, - 64, - 65 + 71, + 72, + 69, + 70 ] } ], @@ -10270,7 +10510,7 @@ ] }, { - "id": 46, + "id": 51, "name": "decode", "kind": 2048, "kindString": "Method", @@ -10279,7 +10519,7 @@ }, "signatures": [ { - "id": 47, + "id": 52, "name": "decode", "kind": 4096, "kindString": "Call signature", @@ -10288,7 +10528,7 @@ }, "parameters": [ { - "id": 48, + "id": 53, "name": "rawPayload", "kind": 32768, "kindString": "Parameter", @@ -10310,7 +10550,7 @@ } }, { - "id": 49, + "id": 54, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -10343,16 +10583,16 @@ "title": "Properties", "kind": 1024, "children": [ - 45 + 50 ] }, { "title": "Methods", "kind": 2048, "children": [ - 50, - 58, - 46 + 55, + 63, + 51 ] } ], @@ -10370,7 +10610,7 @@ "title": "Classes", "kind": 128, "children": [ - 44 + 49 ] } ], @@ -10383,7 +10623,7 @@ ] }, { - "id": 29, + "id": 34, "name": "\"lib/timer\"", "kind": 1, "kindString": "Module", @@ -10393,7 +10633,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/timer.ts", "children": [ { - "id": 30, + "id": 35, "name": "Timer", "kind": 128, "kindString": "Class", @@ -10411,7 +10651,7 @@ }, "children": [ { - "id": 33, + "id": 38, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -10420,7 +10660,7 @@ }, "signatures": [ { - "id": 36, + "id": 41, "name": "new Timer", "kind": 16384, "kindString": "Constructor signature", @@ -10429,7 +10669,7 @@ }, "parameters": [ { - "id": 37, + "id": 42, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -10442,7 +10682,7 @@ } }, { - "id": 38, + "id": 43, "name": "timerCalc", "kind": 32768, "kindString": "Parameter", @@ -10457,7 +10697,7 @@ ], "type": { "type": "reference", - "id": 30, + "id": 35, "name": "Timer" } } @@ -10471,7 +10711,7 @@ ] }, { - "id": 34, + "id": 39, "name": "callback", "kind": 1024, "kindString": "Property", @@ -10493,7 +10733,7 @@ } }, { - "id": 31, + "id": 36, "name": "timer", "kind": 1024, "kindString": "Property", @@ -10523,7 +10763,7 @@ "defaultValue": "undefined" }, { - "id": 35, + "id": 40, "name": "timerCalc", "kind": 1024, "kindString": "Property", @@ -10545,7 +10785,7 @@ } }, { - "id": 32, + "id": 37, "name": "tries", "kind": 1024, "kindString": "Property", @@ -10566,7 +10806,7 @@ "defaultValue": "0" }, { - "id": 39, + "id": 44, "name": "reset", "kind": 2048, "kindString": "Method", @@ -10575,7 +10815,7 @@ }, "signatures": [ { - "id": 40, + "id": 45, "name": "reset", "kind": 4096, "kindString": "Call signature", @@ -10597,7 +10837,7 @@ ] }, { - "id": 41, + "id": 46, "name": "scheduleTimeout", "kind": 2048, "kindString": "Method", @@ -10606,7 +10846,7 @@ }, "signatures": [ { - "id": 42, + "id": 47, "name": "scheduleTimeout", "kind": 4096, "kindString": "Call signature", @@ -10633,25 +10873,25 @@ "title": "Constructors", "kind": 512, "children": [ - 33 + 38 ] }, { "title": "Properties", "kind": 1024, "children": [ - 34, - 31, - 35, - 32 + 39, + 36, + 40, + 37 ] }, { "title": "Methods", "kind": 2048, "children": [ - 39, - 41 + 44, + 46 ] } ], @@ -10669,7 +10909,7 @@ "title": "Classes", "kind": 128, "children": [ - 30 + 35 ] } ], @@ -10682,7 +10922,7 @@ ] }, { - "id": 572, + "id": 582, "name": "\"lib/transformers\"", "kind": 1, "kindString": "Module", @@ -10692,7 +10932,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/transformers.ts", "children": [ { - "id": 573, + "id": 583, "name": "PostgresTypes", "kind": 4, "kindString": "Enumeration", @@ -10704,7 +10944,7 @@ }, "children": [ { - "id": 574, + "id": 584, "name": "abstime", "kind": 16, "kindString": "Enumeration member", @@ -10721,7 +10961,7 @@ "defaultValue": "\"abstime\"" }, { - "id": 575, + "id": 585, "name": "bool", "kind": 16, "kindString": "Enumeration member", @@ -10738,7 +10978,7 @@ "defaultValue": "\"bool\"" }, { - "id": 576, + "id": 586, "name": "date", "kind": 16, "kindString": "Enumeration member", @@ -10755,7 +10995,7 @@ "defaultValue": "\"date\"" }, { - "id": 577, + "id": 587, "name": "daterange", "kind": 16, "kindString": "Enumeration member", @@ -10772,7 +11012,7 @@ "defaultValue": "\"daterange\"" }, { - "id": 578, + "id": 588, "name": "float4", "kind": 16, "kindString": "Enumeration member", @@ -10789,7 +11029,7 @@ "defaultValue": "\"float4\"" }, { - "id": 579, + "id": 589, "name": "float8", "kind": 16, "kindString": "Enumeration member", @@ -10806,7 +11046,7 @@ "defaultValue": "\"float8\"" }, { - "id": 580, + "id": 590, "name": "int2", "kind": 16, "kindString": "Enumeration member", @@ -10823,7 +11063,7 @@ "defaultValue": "\"int2\"" }, { - "id": 581, + "id": 591, "name": "int4", "kind": 16, "kindString": "Enumeration member", @@ -10840,7 +11080,7 @@ "defaultValue": "\"int4\"" }, { - "id": 582, + "id": 592, "name": "int4range", "kind": 16, "kindString": "Enumeration member", @@ -10857,7 +11097,7 @@ "defaultValue": "\"int4range\"" }, { - "id": 583, + "id": 593, "name": "int8", "kind": 16, "kindString": "Enumeration member", @@ -10874,7 +11114,7 @@ "defaultValue": "\"int8\"" }, { - "id": 584, + "id": 594, "name": "int8range", "kind": 16, "kindString": "Enumeration member", @@ -10891,7 +11131,7 @@ "defaultValue": "\"int8range\"" }, { - "id": 585, + "id": 595, "name": "json", "kind": 16, "kindString": "Enumeration member", @@ -10908,7 +11148,7 @@ "defaultValue": "\"json\"" }, { - "id": 586, + "id": 596, "name": "jsonb", "kind": 16, "kindString": "Enumeration member", @@ -10925,7 +11165,7 @@ "defaultValue": "\"jsonb\"" }, { - "id": 587, + "id": 597, "name": "money", "kind": 16, "kindString": "Enumeration member", @@ -10942,7 +11182,7 @@ "defaultValue": "\"money\"" }, { - "id": 588, + "id": 598, "name": "numeric", "kind": 16, "kindString": "Enumeration member", @@ -10959,7 +11199,7 @@ "defaultValue": "\"numeric\"" }, { - "id": 589, + "id": 599, "name": "oid", "kind": 16, "kindString": "Enumeration member", @@ -10976,7 +11216,7 @@ "defaultValue": "\"oid\"" }, { - "id": 590, + "id": 600, "name": "reltime", "kind": 16, "kindString": "Enumeration member", @@ -10993,7 +11233,7 @@ "defaultValue": "\"reltime\"" }, { - "id": 591, + "id": 601, "name": "text", "kind": 16, "kindString": "Enumeration member", @@ -11010,7 +11250,7 @@ "defaultValue": "\"text\"" }, { - "id": 592, + "id": 602, "name": "time", "kind": 16, "kindString": "Enumeration member", @@ -11027,7 +11267,7 @@ "defaultValue": "\"time\"" }, { - "id": 593, + "id": 603, "name": "timestamp", "kind": 16, "kindString": "Enumeration member", @@ -11044,7 +11284,7 @@ "defaultValue": "\"timestamp\"" }, { - "id": 594, + "id": 604, "name": "timestamptz", "kind": 16, "kindString": "Enumeration member", @@ -11061,7 +11301,7 @@ "defaultValue": "\"timestamptz\"" }, { - "id": 595, + "id": 605, "name": "timetz", "kind": 16, "kindString": "Enumeration member", @@ -11078,7 +11318,7 @@ "defaultValue": "\"timetz\"" }, { - "id": 596, + "id": 606, "name": "tsrange", "kind": 16, "kindString": "Enumeration member", @@ -11095,7 +11335,7 @@ "defaultValue": "\"tsrange\"" }, { - "id": 597, + "id": 607, "name": "tstzrange", "kind": 16, "kindString": "Enumeration member", @@ -11117,16 +11357,6 @@ "title": "Enumeration members", "kind": 16, "children": [ - 574, - 575, - 576, - 577, - 578, - 579, - 580, - 581, - 582, - 583, 584, 585, 586, @@ -11140,7 +11370,17 @@ 594, 595, 596, - 597 + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607 ] } ], @@ -11153,7 +11393,7 @@ ] }, { - "id": 604, + "id": 614, "name": "BaseValue", "kind": 4194304, "kindString": "Type alias", @@ -11188,7 +11428,7 @@ } }, { - "id": 598, + "id": 608, "name": "Columns", "kind": 4194304, "kindString": "Type alias", @@ -11205,14 +11445,14 @@ "elementType": { "type": "reflection", "declaration": { - "id": 599, + "id": 609, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 602, + "id": 612, "name": "flags", "kind": 32, "kindString": "Variable", @@ -11235,7 +11475,7 @@ } }, { - "id": 600, + "id": 610, "name": "name", "kind": 32, "kindString": "Variable", @@ -11253,7 +11493,7 @@ } }, { - "id": 601, + "id": 611, "name": "type", "kind": 32, "kindString": "Variable", @@ -11271,7 +11511,7 @@ } }, { - "id": 603, + "id": 613, "name": "type_modifier", "kind": 32, "kindString": "Variable", @@ -11305,10 +11545,10 @@ "title": "Variables", "kind": 32, "children": [ - 602, - 600, - 601, - 603 + 612, + 610, + 611, + 613 ] } ], @@ -11324,7 +11564,7 @@ } }, { - "id": 606, + "id": 616, "name": "Record", "kind": 4194304, "kindString": "Type alias", @@ -11339,21 +11579,21 @@ "type": { "type": "reflection", "declaration": { - "id": 607, + "id": 617, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": [ { - "id": 608, + "id": 618, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 609, + "id": 619, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -11366,7 +11606,7 @@ ], "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } } @@ -11382,7 +11622,7 @@ } }, { - "id": 605, + "id": 615, "name": "RecordValue", "kind": 4194304, "kindString": "Type alias", @@ -11399,14 +11639,14 @@ "types": [ { "type": "reference", - "id": 604, + "id": 614, "name": "BaseValue" }, { "type": "array", "elementType": { "type": "reference", - "id": 604, + "id": 614, "name": "BaseValue" } } @@ -11414,7 +11654,7 @@ } }, { - "id": 623, + "id": 633, "name": "convertCell", "kind": 64, "kindString": "Function", @@ -11441,7 +11681,7 @@ }, "signatures": [ { - "id": 624, + "id": 634, "name": "convertCell", "kind": 4096, "kindString": "Call signature", @@ -11467,7 +11707,7 @@ }, "parameters": [ { - "id": 625, + "id": 635, "name": "type", "kind": 32768, "kindString": "Parameter", @@ -11483,7 +11723,7 @@ } }, { - "id": 626, + "id": 636, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -11492,14 +11732,14 @@ }, "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } } ], "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } } @@ -11513,7 +11753,7 @@ ] }, { - "id": 610, + "id": 620, "name": "convertChangeData", "kind": 64, "kindString": "Function", @@ -11532,7 +11772,7 @@ }, "signatures": [ { - "id": 611, + "id": 621, "name": "convertChangeData", "kind": 4096, "kindString": "Call signature", @@ -11550,7 +11790,7 @@ }, "parameters": [ { - "id": 612, + "id": 622, "name": "columns", "kind": 32768, "kindString": "Parameter", @@ -11559,12 +11799,12 @@ }, "type": { "type": "reference", - "id": 598, + "id": 608, "name": "Columns" } }, { - "id": 613, + "id": 623, "name": "record", "kind": 32768, "kindString": "Parameter", @@ -11574,12 +11814,12 @@ "comment": {}, "type": { "type": "reference", - "id": 606, + "id": 616, "name": "Record" } }, { - "id": 614, + "id": 624, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -11592,7 +11832,7 @@ "type": { "type": "reflection", "declaration": { - "id": 615, + "id": 625, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -11601,7 +11841,7 @@ }, "children": [ { - "id": 616, + "id": 626, "name": "skipTypes", "kind": 32, "kindString": "Variable", @@ -11630,7 +11870,7 @@ "title": "Variables", "kind": 32, "children": [ - 616 + 626 ] } ], @@ -11648,7 +11888,7 @@ ], "type": { "type": "reference", - "id": 606, + "id": 616, "name": "Record" } } @@ -11662,7 +11902,7 @@ ] }, { - "id": 617, + "id": 627, "name": "convertColumn", "kind": 64, "kindString": "Function", @@ -11686,7 +11926,7 @@ }, "signatures": [ { - "id": 618, + "id": 628, "name": "convertColumn", "kind": 4096, "kindString": "Call signature", @@ -11709,7 +11949,7 @@ }, "parameters": [ { - "id": 619, + "id": 629, "name": "columnName", "kind": 32768, "kindString": "Parameter", @@ -11725,7 +11965,7 @@ } }, { - "id": 620, + "id": 630, "name": "columns", "kind": 32768, "kindString": "Parameter", @@ -11734,12 +11974,12 @@ }, "type": { "type": "reference", - "id": 598, + "id": 608, "name": "Columns" } }, { - "id": 621, + "id": 631, "name": "record", "kind": 32768, "kindString": "Parameter", @@ -11751,12 +11991,12 @@ }, "type": { "type": "reference", - "id": 606, + "id": 616, "name": "Record" } }, { - "id": 622, + "id": 632, "name": "skipTypes", "kind": 32768, "kindString": "Parameter", @@ -11777,7 +12017,7 @@ ], "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } } @@ -11791,7 +12031,7 @@ ] }, { - "id": 627, + "id": 637, "name": "noop", "kind": 64, "kindString": "Function", @@ -11800,28 +12040,28 @@ }, "signatures": [ { - "id": 628, + "id": 638, "name": "noop", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 629, + "id": 639, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } } ], "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } } @@ -11835,7 +12075,7 @@ ] }, { - "id": 639, + "id": 649, "name": "toArray", "kind": 64, "kindString": "Function", @@ -11862,7 +12102,7 @@ }, "signatures": [ { - "id": 640, + "id": 650, "name": "toArray", "kind": 4096, "kindString": "Call signature", @@ -11888,7 +12128,7 @@ }, "parameters": [ { - "id": 641, + "id": 651, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -11897,12 +12137,12 @@ }, "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } }, { - "id": 642, + "id": 652, "name": "type", "kind": 32768, "kindString": "Parameter", @@ -11917,7 +12157,7 @@ ], "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } } @@ -11931,7 +12171,7 @@ ] }, { - "id": 630, + "id": 640, "name": "toBoolean", "kind": 64, "kindString": "Function", @@ -11941,7 +12181,7 @@ }, "signatures": [ { - "id": 631, + "id": 641, "name": "toBoolean", "kind": 4096, "kindString": "Call signature", @@ -11950,7 +12190,7 @@ }, "parameters": [ { - "id": 632, + "id": 642, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -11959,14 +12199,14 @@ }, "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } } ], "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } } @@ -11980,7 +12220,7 @@ ] }, { - "id": 636, + "id": 646, "name": "toJson", "kind": 64, "kindString": "Function", @@ -11990,7 +12230,7 @@ }, "signatures": [ { - "id": 637, + "id": 647, "name": "toJson", "kind": 4096, "kindString": "Call signature", @@ -11999,7 +12239,7 @@ }, "parameters": [ { - "id": 638, + "id": 648, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -12008,14 +12248,14 @@ }, "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } } ], "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } } @@ -12029,7 +12269,7 @@ ] }, { - "id": 633, + "id": 643, "name": "toNumber", "kind": 64, "kindString": "Function", @@ -12039,7 +12279,7 @@ }, "signatures": [ { - "id": 634, + "id": 644, "name": "toNumber", "kind": 4096, "kindString": "Call signature", @@ -12048,7 +12288,7 @@ }, "parameters": [ { - "id": 635, + "id": 645, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -12057,14 +12297,14 @@ }, "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } } ], "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } } @@ -12078,7 +12318,7 @@ ] }, { - "id": 643, + "id": 653, "name": "toTimestampString", "kind": 64, "kindString": "Function", @@ -12097,7 +12337,7 @@ }, "signatures": [ { - "id": 644, + "id": 654, "name": "toTimestampString", "kind": 4096, "kindString": "Call signature", @@ -12115,7 +12355,7 @@ }, "parameters": [ { - "id": 645, + "id": 655, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -12124,14 +12364,14 @@ }, "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } } ], "type": { "type": "reference", - "id": 605, + "id": 615, "name": "RecordValue" } } @@ -12150,32 +12390,32 @@ "title": "Enumerations", "kind": 4, "children": [ - 573 + 583 ] }, { "title": "Type aliases", "kind": 4194304, "children": [ - 604, - 598, - 606, - 605 + 614, + 608, + 616, + 615 ] }, { "title": "Functions", "kind": 64, "children": [ - 623, - 610, - 617, - 627, - 639, - 630, - 636, 633, - 643 + 620, + 627, + 637, + 649, + 640, + 646, + 643, + 653 ] } ], @@ -12243,16 +12483,16 @@ "title": "Modules", "kind": 1, "children": [ - 456, - 68, - 362, - 208, - 646, + 466, + 73, + 372, + 218, + 656, 3, - 296, - 43, - 29, - 572, + 306, + 48, + 34, + 582, 1 ] } diff --git a/web/spec/storage.json b/web/spec/storage.json index 065c29f3726..82c0be5f743 100644 --- a/web/spec/storage.json +++ b/web/spec/storage.json @@ -6,7 +6,7 @@ "originalName": "", "children": [ { - "id": 311, + "id": 312, "name": "\"StorageClient\"", "kind": 1, "kindString": "Module", @@ -16,7 +16,7 @@ "originalName": "/home/runner/work/storage-js/storage-js/src/StorageClient.ts", "children": [ { - "id": 312, + "id": 313, "name": "StorageClient", "kind": 128, "kindString": "Class", @@ -25,7 +25,7 @@ }, "children": [ { - "id": 313, + "id": 314, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -34,7 +34,7 @@ }, "signatures": [ { - "id": 314, + "id": 315, "name": "new StorageClient", "kind": 16384, "kindString": "Constructor signature", @@ -43,7 +43,7 @@ }, "parameters": [ { - "id": 315, + "id": 316, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -56,7 +56,7 @@ } }, { - "id": 316, + "id": 317, "name": "headers", "kind": 32768, "kindString": "Parameter", @@ -66,7 +66,7 @@ "type": { "type": "reflection", "declaration": { - "id": 317, + "id": 318, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -75,7 +75,7 @@ }, "indexSignature": [ { - "id": 318, + "id": 319, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -84,7 +84,7 @@ }, "parameters": [ { - "id": 319, + "id": 320, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -115,7 +115,7 @@ "defaultValue": "{}" }, { - "id": 320, + "id": 321, "name": "fetch", "kind": 32768, "kindString": "Parameter", @@ -132,12 +132,12 @@ ], "type": { "type": "reference", - "id": 312, + "id": 313, "name": "StorageClient" }, "overwrites": { "type": "reference", - "id": 113, + "id": 114, "name": "StorageBucketApi.__constructor" } } @@ -151,12 +151,12 @@ ], "overwrites": { "type": "reference", - "id": 113, + "id": 114, "name": "StorageBucketApi.__constructor" } }, { - "id": 329, + "id": 330, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -178,12 +178,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 112, + "id": 113, "name": "StorageBucketApi.fetch" } }, { - "id": 325, + "id": 326, "name": "headers", "kind": 1024, "kindString": "Property", @@ -201,7 +201,7 @@ "type": { "type": "reflection", "declaration": { - "id": 326, + "id": 327, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -210,7 +210,7 @@ }, "indexSignature": [ { - "id": 327, + "id": 328, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -219,7 +219,7 @@ }, "parameters": [ { - "id": 328, + "id": 329, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -249,12 +249,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 108, + "id": 109, "name": "StorageBucketApi.headers" } }, { - "id": 324, + "id": 325, "name": "url", "kind": 1024, "kindString": "Property", @@ -275,12 +275,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 107, + "id": 108, "name": "StorageBucketApi.url" } }, { - "id": 341, + "id": 342, "name": "createBucket", "kind": 2048, "kindString": "Method", @@ -289,7 +289,7 @@ }, "signatures": [ { - "id": 342, + "id": 343, "name": "createBucket", "kind": 4096, "kindString": "Call signature", @@ -302,7 +302,7 @@ }, "parameters": [ { - "id": 343, + "id": 344, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -318,7 +318,7 @@ } }, { - "id": 344, + "id": 345, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -328,7 +328,7 @@ "type": { "type": "reflection", "declaration": { - "id": 345, + "id": 346, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -337,7 +337,7 @@ }, "children": [ { - "id": 346, + "id": 347, "name": "public", "kind": 32, "kindString": "Variable", @@ -362,7 +362,7 @@ "title": "Variables", "kind": 32, "children": [ - 346 + 347 ] } ], @@ -384,7 +384,7 @@ { "type": "reflection", "declaration": { - "id": 347, + "id": 348, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -393,7 +393,7 @@ }, "children": [ { - "id": 348, + "id": 349, "name": "data", "kind": 32, "kindString": "Variable", @@ -422,7 +422,7 @@ } }, { - "id": 349, + "id": 350, "name": "error", "kind": 32, "kindString": "Variable", @@ -456,8 +456,8 @@ "title": "Variables", "kind": 32, "children": [ - 348, - 349 + 349, + 350 ] } ], @@ -475,7 +475,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 132, + "id": 133, "name": "StorageBucketApi.createBucket" } } @@ -489,12 +489,12 @@ ], "inheritedFrom": { "type": "reference", - "id": 132, + "id": 133, "name": "StorageBucketApi.createBucket" } }, { - "id": 369, + "id": 370, "name": "deleteBucket", "kind": 2048, "kindString": "Method", @@ -503,7 +503,7 @@ }, "signatures": [ { - "id": 370, + "id": 371, "name": "deleteBucket", "kind": 4096, "kindString": "Call signature", @@ -515,7 +515,7 @@ }, "parameters": [ { - "id": 371, + "id": 372, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -537,7 +537,7 @@ { "type": "reflection", "declaration": { - "id": 372, + "id": 373, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -546,7 +546,7 @@ }, "children": [ { - "id": 373, + "id": 374, "name": "data", "kind": 32, "kindString": "Variable", @@ -566,7 +566,7 @@ { "type": "reflection", "declaration": { - "id": 374, + "id": 375, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -575,7 +575,7 @@ }, "children": [ { - "id": 375, + "id": 376, "name": "message", "kind": 32, "kindString": "Variable", @@ -600,7 +600,7 @@ "title": "Variables", "kind": 32, "children": [ - 375 + 376 ] } ], @@ -621,7 +621,7 @@ } }, { - "id": 376, + "id": 377, "name": "error", "kind": 32, "kindString": "Variable", @@ -655,8 +655,8 @@ "title": "Variables", "kind": 32, "children": [ - 373, - 376 + 374, + 377 ] } ], @@ -674,7 +674,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 160, + "id": 161, "name": "StorageBucketApi.deleteBucket" } } @@ -688,12 +688,12 @@ ], "inheritedFrom": { "type": "reference", - "id": 160, + "id": 161, "name": "StorageBucketApi.deleteBucket" } }, { - "id": 361, + "id": 362, "name": "emptyBucket", "kind": 2048, "kindString": "Method", @@ -702,7 +702,7 @@ }, "signatures": [ { - "id": 362, + "id": 363, "name": "emptyBucket", "kind": 4096, "kindString": "Call signature", @@ -714,7 +714,7 @@ }, "parameters": [ { - "id": 363, + "id": 364, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -736,7 +736,7 @@ { "type": "reflection", "declaration": { - "id": 364, + "id": 365, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -745,7 +745,7 @@ }, "children": [ { - "id": 365, + "id": 366, "name": "data", "kind": 32, "kindString": "Variable", @@ -765,7 +765,7 @@ { "type": "reflection", "declaration": { - "id": 366, + "id": 367, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -774,7 +774,7 @@ }, "children": [ { - "id": 367, + "id": 368, "name": "message", "kind": 32, "kindString": "Variable", @@ -799,7 +799,7 @@ "title": "Variables", "kind": 32, "children": [ - 367 + 368 ] } ], @@ -820,7 +820,7 @@ } }, { - "id": 368, + "id": 369, "name": "error", "kind": 32, "kindString": "Variable", @@ -854,8 +854,8 @@ "title": "Variables", "kind": 32, "children": [ - 365, - 368 + 366, + 369 ] } ], @@ -873,7 +873,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 152, + "id": 153, "name": "StorageBucketApi.emptyBucket" } } @@ -887,12 +887,12 @@ ], "inheritedFrom": { "type": "reference", - "id": 152, + "id": 153, "name": "StorageBucketApi.emptyBucket" } }, { - "id": 321, + "id": 322, "name": "from", "kind": 2048, "kindString": "Method", @@ -901,7 +901,7 @@ }, "signatures": [ { - "id": 322, + "id": 323, "name": "from", "kind": 4096, "kindString": "Call signature", @@ -913,7 +913,7 @@ }, "parameters": [ { - "id": 323, + "id": 324, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -931,7 +931,7 @@ ], "type": { "type": "reference", - "id": 169, + "id": 170, "name": "StorageFileApi" } } @@ -945,7 +945,7 @@ ] }, { - "id": 335, + "id": 336, "name": "getBucket", "kind": 2048, "kindString": "Method", @@ -954,7 +954,7 @@ }, "signatures": [ { - "id": 336, + "id": 337, "name": "getBucket", "kind": 4096, "kindString": "Call signature", @@ -966,7 +966,7 @@ }, "parameters": [ { - "id": 337, + "id": 338, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -988,7 +988,7 @@ { "type": "reflection", "declaration": { - "id": 338, + "id": 339, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -997,7 +997,7 @@ }, "children": [ { - "id": 339, + "id": 340, "name": "data", "kind": 32, "kindString": "Variable", @@ -1027,7 +1027,7 @@ } }, { - "id": 340, + "id": 341, "name": "error", "kind": 32, "kindString": "Variable", @@ -1061,8 +1061,8 @@ "title": "Variables", "kind": 32, "children": [ - 339, - 340 + 340, + 341 ] } ], @@ -1080,7 +1080,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 126, + "id": 127, "name": "StorageBucketApi.getBucket" } } @@ -1094,12 +1094,12 @@ ], "inheritedFrom": { "type": "reference", - "id": 126, + "id": 127, "name": "StorageBucketApi.getBucket" } }, { - "id": 330, + "id": 331, "name": "listBuckets", "kind": 2048, "kindString": "Method", @@ -1108,7 +1108,7 @@ }, "signatures": [ { - "id": 331, + "id": 332, "name": "listBuckets", "kind": 4096, "kindString": "Call signature", @@ -1116,7 +1116,7 @@ "isExported": true }, "comment": { - "shortText": "Retrieves the details of all Storage buckets within an existing product." + "shortText": "Retrieves the details of all Storage buckets within an existing project." }, "type": { "type": "reference", @@ -1124,7 +1124,7 @@ { "type": "reflection", "declaration": { - "id": 332, + "id": 333, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1133,7 +1133,7 @@ }, "children": [ { - "id": 333, + "id": 334, "name": "data", "kind": 32, "kindString": "Variable", @@ -1166,7 +1166,7 @@ } }, { - "id": 334, + "id": 335, "name": "error", "kind": 32, "kindString": "Variable", @@ -1200,8 +1200,8 @@ "title": "Variables", "kind": 32, "children": [ - 333, - 334 + 334, + 335 ] } ], @@ -1219,7 +1219,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 121, + "id": 122, "name": "StorageBucketApi.listBuckets" } } @@ -1233,12 +1233,12 @@ ], "inheritedFrom": { "type": "reference", - "id": 121, + "id": 122, "name": "StorageBucketApi.listBuckets" } }, { - "id": 350, + "id": 351, "name": "updateBucket", "kind": 2048, "kindString": "Method", @@ -1247,7 +1247,7 @@ }, "signatures": [ { - "id": 351, + "id": 352, "name": "updateBucket", "kind": 4096, "kindString": "Call signature", @@ -1259,7 +1259,7 @@ }, "parameters": [ { - "id": 352, + "id": 353, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -1275,7 +1275,7 @@ } }, { - "id": 353, + "id": 354, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -1285,7 +1285,7 @@ "type": { "type": "reflection", "declaration": { - "id": 354, + "id": 355, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1294,7 +1294,7 @@ }, "children": [ { - "id": 355, + "id": 356, "name": "public", "kind": 32, "kindString": "Variable", @@ -1319,7 +1319,7 @@ "title": "Variables", "kind": 32, "children": [ - 355 + 356 ] } ], @@ -1340,7 +1340,7 @@ { "type": "reflection", "declaration": { - "id": 356, + "id": 357, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1349,7 +1349,7 @@ }, "children": [ { - "id": 357, + "id": 358, "name": "data", "kind": 32, "kindString": "Variable", @@ -1369,7 +1369,7 @@ { "type": "reflection", "declaration": { - "id": 358, + "id": 359, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1378,7 +1378,7 @@ }, "children": [ { - "id": 359, + "id": 360, "name": "message", "kind": 32, "kindString": "Variable", @@ -1403,7 +1403,7 @@ "title": "Variables", "kind": 32, "children": [ - 359 + 360 ] } ], @@ -1424,7 +1424,7 @@ } }, { - "id": 360, + "id": 361, "name": "error", "kind": 32, "kindString": "Variable", @@ -1458,8 +1458,8 @@ "title": "Variables", "kind": 32, "children": [ - 357, - 360 + 358, + 361 ] } ], @@ -1477,7 +1477,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 141, + "id": 142, "name": "StorageBucketApi.updateBucket" } } @@ -1491,7 +1491,7 @@ ], "inheritedFrom": { "type": "reference", - "id": 141, + "id": 142, "name": "StorageBucketApi.updateBucket" } } @@ -1501,29 +1501,29 @@ "title": "Constructors", "kind": 512, "children": [ - 313 + 314 ] }, { "title": "Properties", "kind": 1024, "children": [ - 329, - 325, - 324 + 330, + 326, + 325 ] }, { "title": "Methods", "kind": 2048, "children": [ - 341, - 369, - 361, - 321, - 335, - 330, - 350 + 342, + 370, + 362, + 322, + 336, + 331, + 351 ] } ], @@ -1537,7 +1537,7 @@ "extendedTypes": [ { "type": "reference", - "id": 106, + "id": 107, "name": "StorageBucketApi" } ] @@ -1548,7 +1548,7 @@ "title": "Classes", "kind": 128, "children": [ - 312 + 313 ] } ], @@ -1561,7 +1561,7 @@ ] }, { - "id": 377, + "id": 378, "name": "\"index\"", "kind": 1, "kindString": "Module", @@ -1571,7 +1571,7 @@ "originalName": "/home/runner/work/storage-js/storage-js/src/index.ts", "children": [ { - "id": 380, + "id": 381, "name": "Bucket", "kind": 16777216, "kindString": "Reference", @@ -1581,7 +1581,7 @@ "target": 74 }, { - "id": 381, + "id": 382, "name": "FileObject", "kind": 16777216, "kindString": "Reference", @@ -1591,7 +1591,7 @@ "target": 81 }, { - "id": 383, + "id": 384, "name": "FileOptions", "kind": 16777216, "kindString": "Reference", @@ -1601,17 +1601,17 @@ "target": 95 }, { - "id": 385, + "id": 386, "name": "Metadata", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 103 + "target": 104 }, { - "id": 384, + "id": 385, "name": "SearchOptions", "kind": 16777216, "kindString": "Reference", @@ -1621,7 +1621,7 @@ "target": 99 }, { - "id": 382, + "id": 383, "name": "SortBy", "kind": 16777216, "kindString": "Reference", @@ -1631,24 +1631,24 @@ "target": 92 }, { - "id": 378, + "id": 379, "name": "StorageClient", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 312 + "target": 313 }, { - "id": 379, + "id": 380, "name": "SupabaseStorageClient", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 312 + "target": 313 } ], "groups": [ @@ -1656,14 +1656,14 @@ "title": "References", "kind": 16777216, "children": [ - 380, 381, - 383, - 385, - 384, 382, - 378, - 379 + 384, + 386, + 385, + 383, + 379, + 380 ] } ], @@ -1676,7 +1676,7 @@ ] }, { - "id": 105, + "id": 106, "name": "\"lib/StorageBucketApi\"", "kind": 1, "kindString": "Module", @@ -1686,7 +1686,7 @@ "originalName": "/home/runner/work/storage-js/storage-js/src/lib/StorageBucketApi.ts", "children": [ { - "id": 106, + "id": 107, "name": "StorageBucketApi", "kind": 128, "kindString": "Class", @@ -1695,7 +1695,7 @@ }, "children": [ { - "id": 113, + "id": 114, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -1704,7 +1704,7 @@ }, "signatures": [ { - "id": 114, + "id": 115, "name": "new StorageBucketApi", "kind": 16384, "kindString": "Constructor signature", @@ -1713,7 +1713,7 @@ }, "parameters": [ { - "id": 115, + "id": 116, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -1726,7 +1726,7 @@ } }, { - "id": 116, + "id": 117, "name": "headers", "kind": 32768, "kindString": "Parameter", @@ -1736,7 +1736,7 @@ "type": { "type": "reflection", "declaration": { - "id": 117, + "id": 118, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1745,7 +1745,7 @@ }, "indexSignature": [ { - "id": 118, + "id": 119, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -1754,7 +1754,7 @@ }, "parameters": [ { - "id": 119, + "id": 120, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -1785,7 +1785,7 @@ "defaultValue": "{}" }, { - "id": 120, + "id": 121, "name": "fetch", "kind": 32768, "kindString": "Parameter", @@ -1802,7 +1802,7 @@ ], "type": { "type": "reference", - "id": 106, + "id": 107, "name": "StorageBucketApi" } } @@ -1816,7 +1816,7 @@ ] }, { - "id": 112, + "id": 113, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -1838,7 +1838,7 @@ } }, { - "id": 108, + "id": 109, "name": "headers", "kind": 1024, "kindString": "Property", @@ -1856,7 +1856,7 @@ "type": { "type": "reflection", "declaration": { - "id": 109, + "id": 110, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1865,7 +1865,7 @@ }, "indexSignature": [ { - "id": 110, + "id": 111, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -1874,7 +1874,7 @@ }, "parameters": [ { - "id": 111, + "id": 112, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -1904,7 +1904,7 @@ } }, { - "id": 107, + "id": 108, "name": "url", "kind": 1024, "kindString": "Property", @@ -1925,7 +1925,7 @@ } }, { - "id": 132, + "id": 133, "name": "createBucket", "kind": 2048, "kindString": "Method", @@ -1934,7 +1934,7 @@ }, "signatures": [ { - "id": 133, + "id": 134, "name": "createBucket", "kind": 4096, "kindString": "Call signature", @@ -1947,7 +1947,7 @@ }, "parameters": [ { - "id": 134, + "id": 135, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -1963,7 +1963,7 @@ } }, { - "id": 135, + "id": 136, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -1973,7 +1973,7 @@ "type": { "type": "reflection", "declaration": { - "id": 136, + "id": 137, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1982,7 +1982,7 @@ }, "children": [ { - "id": 137, + "id": 138, "name": "public", "kind": 32, "kindString": "Variable", @@ -2007,7 +2007,7 @@ "title": "Variables", "kind": 32, "children": [ - 137 + 138 ] } ], @@ -2029,7 +2029,7 @@ { "type": "reflection", "declaration": { - "id": 138, + "id": 139, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2038,7 +2038,7 @@ }, "children": [ { - "id": 139, + "id": 140, "name": "data", "kind": 32, "kindString": "Variable", @@ -2067,7 +2067,7 @@ } }, { - "id": 140, + "id": 141, "name": "error", "kind": 32, "kindString": "Variable", @@ -2101,8 +2101,8 @@ "title": "Variables", "kind": 32, "children": [ - 139, - 140 + 140, + 141 ] } ], @@ -2129,7 +2129,7 @@ ] }, { - "id": 160, + "id": 161, "name": "deleteBucket", "kind": 2048, "kindString": "Method", @@ -2138,7 +2138,7 @@ }, "signatures": [ { - "id": 161, + "id": 162, "name": "deleteBucket", "kind": 4096, "kindString": "Call signature", @@ -2150,7 +2150,7 @@ }, "parameters": [ { - "id": 162, + "id": 163, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -2172,7 +2172,7 @@ { "type": "reflection", "declaration": { - "id": 163, + "id": 164, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2181,7 +2181,7 @@ }, "children": [ { - "id": 164, + "id": 165, "name": "data", "kind": 32, "kindString": "Variable", @@ -2201,7 +2201,7 @@ { "type": "reflection", "declaration": { - "id": 165, + "id": 166, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2210,7 +2210,7 @@ }, "children": [ { - "id": 166, + "id": 167, "name": "message", "kind": 32, "kindString": "Variable", @@ -2235,7 +2235,7 @@ "title": "Variables", "kind": 32, "children": [ - 166 + 167 ] } ], @@ -2256,7 +2256,7 @@ } }, { - "id": 167, + "id": 168, "name": "error", "kind": 32, "kindString": "Variable", @@ -2290,8 +2290,8 @@ "title": "Variables", "kind": 32, "children": [ - 164, - 167 + 165, + 168 ] } ], @@ -2318,7 +2318,7 @@ ] }, { - "id": 152, + "id": 153, "name": "emptyBucket", "kind": 2048, "kindString": "Method", @@ -2327,7 +2327,7 @@ }, "signatures": [ { - "id": 153, + "id": 154, "name": "emptyBucket", "kind": 4096, "kindString": "Call signature", @@ -2339,7 +2339,7 @@ }, "parameters": [ { - "id": 154, + "id": 155, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -2361,7 +2361,7 @@ { "type": "reflection", "declaration": { - "id": 155, + "id": 156, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2370,7 +2370,7 @@ }, "children": [ { - "id": 156, + "id": 157, "name": "data", "kind": 32, "kindString": "Variable", @@ -2390,7 +2390,7 @@ { "type": "reflection", "declaration": { - "id": 157, + "id": 158, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2399,7 +2399,7 @@ }, "children": [ { - "id": 158, + "id": 159, "name": "message", "kind": 32, "kindString": "Variable", @@ -2424,7 +2424,7 @@ "title": "Variables", "kind": 32, "children": [ - 158 + 159 ] } ], @@ -2445,7 +2445,7 @@ } }, { - "id": 159, + "id": 160, "name": "error", "kind": 32, "kindString": "Variable", @@ -2479,8 +2479,8 @@ "title": "Variables", "kind": 32, "children": [ - 156, - 159 + 157, + 160 ] } ], @@ -2507,7 +2507,7 @@ ] }, { - "id": 126, + "id": 127, "name": "getBucket", "kind": 2048, "kindString": "Method", @@ -2516,7 +2516,7 @@ }, "signatures": [ { - "id": 127, + "id": 128, "name": "getBucket", "kind": 4096, "kindString": "Call signature", @@ -2528,7 +2528,7 @@ }, "parameters": [ { - "id": 128, + "id": 129, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -2550,7 +2550,7 @@ { "type": "reflection", "declaration": { - "id": 129, + "id": 130, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2559,7 +2559,7 @@ }, "children": [ { - "id": 130, + "id": 131, "name": "data", "kind": 32, "kindString": "Variable", @@ -2589,7 +2589,7 @@ } }, { - "id": 131, + "id": 132, "name": "error", "kind": 32, "kindString": "Variable", @@ -2623,8 +2623,8 @@ "title": "Variables", "kind": 32, "children": [ - 130, - 131 + 131, + 132 ] } ], @@ -2651,7 +2651,7 @@ ] }, { - "id": 121, + "id": 122, "name": "listBuckets", "kind": 2048, "kindString": "Method", @@ -2660,7 +2660,7 @@ }, "signatures": [ { - "id": 122, + "id": 123, "name": "listBuckets", "kind": 4096, "kindString": "Call signature", @@ -2668,7 +2668,7 @@ "isExported": true }, "comment": { - "shortText": "Retrieves the details of all Storage buckets within an existing product." + "shortText": "Retrieves the details of all Storage buckets within an existing project." }, "type": { "type": "reference", @@ -2676,7 +2676,7 @@ { "type": "reflection", "declaration": { - "id": 123, + "id": 124, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2685,7 +2685,7 @@ }, "children": [ { - "id": 124, + "id": 125, "name": "data", "kind": 32, "kindString": "Variable", @@ -2718,7 +2718,7 @@ } }, { - "id": 125, + "id": 126, "name": "error", "kind": 32, "kindString": "Variable", @@ -2752,8 +2752,8 @@ "title": "Variables", "kind": 32, "children": [ - 124, - 125 + 125, + 126 ] } ], @@ -2780,7 +2780,7 @@ ] }, { - "id": 141, + "id": 142, "name": "updateBucket", "kind": 2048, "kindString": "Method", @@ -2789,7 +2789,7 @@ }, "signatures": [ { - "id": 142, + "id": 143, "name": "updateBucket", "kind": 4096, "kindString": "Call signature", @@ -2801,7 +2801,7 @@ }, "parameters": [ { - "id": 143, + "id": 144, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -2817,7 +2817,7 @@ } }, { - "id": 144, + "id": 145, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -2827,7 +2827,7 @@ "type": { "type": "reflection", "declaration": { - "id": 145, + "id": 146, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2836,7 +2836,7 @@ }, "children": [ { - "id": 146, + "id": 147, "name": "public", "kind": 32, "kindString": "Variable", @@ -2861,7 +2861,7 @@ "title": "Variables", "kind": 32, "children": [ - 146 + 147 ] } ], @@ -2882,7 +2882,7 @@ { "type": "reflection", "declaration": { - "id": 147, + "id": 148, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2891,7 +2891,7 @@ }, "children": [ { - "id": 148, + "id": 149, "name": "data", "kind": 32, "kindString": "Variable", @@ -2911,7 +2911,7 @@ { "type": "reflection", "declaration": { - "id": 149, + "id": 150, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2920,7 +2920,7 @@ }, "children": [ { - "id": 150, + "id": 151, "name": "message", "kind": 32, "kindString": "Variable", @@ -2945,7 +2945,7 @@ "title": "Variables", "kind": 32, "children": [ - 150 + 151 ] } ], @@ -2966,7 +2966,7 @@ } }, { - "id": 151, + "id": 152, "name": "error", "kind": 32, "kindString": "Variable", @@ -3000,8 +3000,8 @@ "title": "Variables", "kind": 32, "children": [ - 148, - 151 + 149, + 152 ] } ], @@ -3033,28 +3033,28 @@ "title": "Constructors", "kind": 512, "children": [ - 113 + 114 ] }, { "title": "Properties", "kind": 1024, "children": [ - 112, - 108, - 107 + 113, + 109, + 108 ] }, { "title": "Methods", "kind": 2048, "children": [ - 132, - 160, - 152, - 126, - 121, - 141 + 133, + 161, + 153, + 127, + 122, + 142 ] } ], @@ -3068,7 +3068,7 @@ "extendedBy": [ { "type": "reference", - "id": 312, + "id": 313, "name": "StorageClient" } ] @@ -3079,7 +3079,7 @@ "title": "Classes", "kind": 128, "children": [ - 106 + 107 ] } ], @@ -3092,7 +3092,7 @@ ] }, { - "id": 168, + "id": 169, "name": "\"lib/StorageFileApi\"", "kind": 1, "kindString": "Module", @@ -3102,7 +3102,7 @@ "originalName": "/home/runner/work/storage-js/storage-js/src/lib/StorageFileApi.ts", "children": [ { - "id": 169, + "id": 170, "name": "StorageFileApi", "kind": 128, "kindString": "Class", @@ -3111,7 +3111,7 @@ }, "children": [ { - "id": 177, + "id": 178, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -3120,7 +3120,7 @@ }, "signatures": [ { - "id": 178, + "id": 179, "name": "new StorageFileApi", "kind": 16384, "kindString": "Constructor signature", @@ -3129,7 +3129,7 @@ }, "parameters": [ { - "id": 179, + "id": 180, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -3142,7 +3142,7 @@ } }, { - "id": 180, + "id": 181, "name": "headers", "kind": 32768, "kindString": "Parameter", @@ -3152,7 +3152,7 @@ "type": { "type": "reflection", "declaration": { - "id": 181, + "id": 182, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3161,7 +3161,7 @@ }, "indexSignature": [ { - "id": 182, + "id": 183, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -3170,7 +3170,7 @@ }, "parameters": [ { - "id": 183, + "id": 184, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -3201,7 +3201,7 @@ "defaultValue": "{}" }, { - "id": 184, + "id": 185, "name": "bucketId", "kind": 32768, "kindString": "Parameter", @@ -3224,7 +3224,7 @@ } }, { - "id": 185, + "id": 186, "name": "fetch", "kind": 32768, "kindString": "Parameter", @@ -3241,7 +3241,7 @@ ], "type": { "type": "reference", - "id": 169, + "id": 170, "name": "StorageFileApi" } } @@ -3255,7 +3255,7 @@ ] }, { - "id": 175, + "id": 176, "name": "bucketId", "kind": 1024, "kindString": "Property", @@ -3286,7 +3286,7 @@ } }, { - "id": 176, + "id": 177, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -3308,7 +3308,7 @@ } }, { - "id": 171, + "id": 172, "name": "headers", "kind": 1024, "kindString": "Property", @@ -3326,7 +3326,7 @@ "type": { "type": "reflection", "declaration": { - "id": 172, + "id": 173, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3335,7 +3335,7 @@ }, "indexSignature": [ { - "id": 173, + "id": 174, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -3344,7 +3344,7 @@ }, "parameters": [ { - "id": 174, + "id": 175, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -3374,7 +3374,7 @@ } }, { - "id": 170, + "id": 171, "name": "url", "kind": 1024, "kindString": "Property", @@ -3395,7 +3395,7 @@ } }, { - "id": 285, + "id": 286, "name": "_getFinalPath", "kind": 2048, "kindString": "Method", @@ -3404,7 +3404,7 @@ }, "signatures": [ { - "id": 286, + "id": 287, "name": "_getFinalPath", "kind": 4096, "kindString": "Call signature", @@ -3413,7 +3413,7 @@ }, "parameters": [ { - "id": 287, + "id": 288, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -3441,7 +3441,7 @@ ] }, { - "id": 288, + "id": 289, "name": "_removeEmptyFolders", "kind": 2048, "kindString": "Method", @@ -3450,7 +3450,7 @@ }, "signatures": [ { - "id": 289, + "id": 290, "name": "_removeEmptyFolders", "kind": 4096, "kindString": "Call signature", @@ -3459,7 +3459,7 @@ }, "parameters": [ { - "id": 290, + "id": 291, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -3487,7 +3487,7 @@ ] }, { - "id": 226, + "id": 227, "name": "copy", "kind": 2048, "kindString": "Method", @@ -3496,7 +3496,7 @@ }, "signatures": [ { - "id": 227, + "id": 228, "name": "copy", "kind": 4096, "kindString": "Call signature", @@ -3508,7 +3508,7 @@ }, "parameters": [ { - "id": 228, + "id": 229, "name": "fromPath", "kind": 32768, "kindString": "Parameter", @@ -3524,7 +3524,7 @@ } }, { - "id": 229, + "id": 230, "name": "toPath", "kind": 32768, "kindString": "Parameter", @@ -3546,7 +3546,7 @@ { "type": "reflection", "declaration": { - "id": 230, + "id": 231, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3555,7 +3555,7 @@ }, "children": [ { - "id": 231, + "id": 232, "name": "data", "kind": 32, "kindString": "Variable", @@ -3575,7 +3575,7 @@ { "type": "reflection", "declaration": { - "id": 232, + "id": 233, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3584,7 +3584,7 @@ }, "children": [ { - "id": 233, + "id": 234, "name": "message", "kind": 32, "kindString": "Variable", @@ -3609,7 +3609,7 @@ "title": "Variables", "kind": 32, "children": [ - 233 + 234 ] } ], @@ -3630,7 +3630,7 @@ } }, { - "id": 234, + "id": 235, "name": "error", "kind": 32, "kindString": "Variable", @@ -3664,8 +3664,8 @@ "title": "Variables", "kind": 32, "children": [ - 231, - 234 + 232, + 235 ] } ], @@ -3692,7 +3692,7 @@ ] }, { - "id": 235, + "id": 236, "name": "createSignedUrl", "kind": 2048, "kindString": "Method", @@ -3701,7 +3701,7 @@ }, "signatures": [ { - "id": 236, + "id": 237, "name": "createSignedUrl", "kind": 4096, "kindString": "Call signature", @@ -3713,7 +3713,7 @@ }, "parameters": [ { - "id": 237, + "id": 238, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -3729,7 +3729,7 @@ } }, { - "id": 238, + "id": 239, "name": "expiresIn", "kind": 32768, "kindString": "Parameter", @@ -3751,7 +3751,7 @@ { "type": "reflection", "declaration": { - "id": 239, + "id": 240, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3760,7 +3760,7 @@ }, "children": [ { - "id": 240, + "id": 241, "name": "data", "kind": 32, "kindString": "Variable", @@ -3780,7 +3780,7 @@ { "type": "reflection", "declaration": { - "id": 241, + "id": 242, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3789,7 +3789,7 @@ }, "children": [ { - "id": 242, + "id": 243, "name": "signedURL", "kind": 32, "kindString": "Variable", @@ -3814,7 +3814,7 @@ "title": "Variables", "kind": 32, "children": [ - 242 + 243 ] } ], @@ -3835,7 +3835,7 @@ } }, { - "id": 243, + "id": 244, "name": "error", "kind": 32, "kindString": "Variable", @@ -3864,7 +3864,7 @@ } }, { - "id": 244, + "id": 245, "name": "signedURL", "kind": 32, "kindString": "Variable", @@ -3898,9 +3898,9 @@ "title": "Variables", "kind": 32, "children": [ - 240, - 243, - 244 + 241, + 244, + 245 ] } ], @@ -3927,7 +3927,7 @@ ] }, { - "id": 245, + "id": 246, "name": "createSignedUrls", "kind": 2048, "kindString": "Method", @@ -3936,7 +3936,7 @@ }, "signatures": [ { - "id": 246, + "id": 247, "name": "createSignedUrls", "kind": 4096, "kindString": "Call signature", @@ -3948,7 +3948,7 @@ }, "parameters": [ { - "id": 247, + "id": 248, "name": "paths", "kind": 32768, "kindString": "Parameter", @@ -3967,7 +3967,7 @@ } }, { - "id": 248, + "id": 249, "name": "expiresIn", "kind": 32768, "kindString": "Parameter", @@ -3989,7 +3989,7 @@ { "type": "reflection", "declaration": { - "id": 249, + "id": 250, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3998,7 +3998,7 @@ }, "children": [ { - "id": 250, + "id": 251, "name": "data", "kind": 32, "kindString": "Variable", @@ -4020,7 +4020,7 @@ "elementType": { "type": "reflection", "declaration": { - "id": 251, + "id": 252, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4029,7 +4029,7 @@ }, "children": [ { - "id": 252, + "id": 253, "name": "error", "kind": 32, "kindString": "Variable", @@ -4058,7 +4058,7 @@ } }, { - "id": 253, + "id": 254, "name": "path", "kind": 32, "kindString": "Variable", @@ -4087,7 +4087,7 @@ } }, { - "id": 254, + "id": 255, "name": "signedURL", "kind": 32, "kindString": "Variable", @@ -4112,9 +4112,9 @@ "title": "Variables", "kind": 32, "children": [ - 252, 253, - 254 + 254, + 255 ] } ], @@ -4136,7 +4136,7 @@ } }, { - "id": 255, + "id": 256, "name": "error", "kind": 32, "kindString": "Variable", @@ -4170,8 +4170,8 @@ "title": "Variables", "kind": 32, "children": [ - 250, - 255 + 251, + 256 ] } ], @@ -4198,7 +4198,7 @@ ] }, { - "id": 256, + "id": 257, "name": "download", "kind": 2048, "kindString": "Method", @@ -4207,7 +4207,7 @@ }, "signatures": [ { - "id": 257, + "id": 258, "name": "download", "kind": 4096, "kindString": "Call signature", @@ -4219,7 +4219,7 @@ }, "parameters": [ { - "id": 258, + "id": 259, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -4241,7 +4241,7 @@ { "type": "reflection", "declaration": { - "id": 259, + "id": 260, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4250,7 +4250,7 @@ }, "children": [ { - "id": 260, + "id": 261, "name": "data", "kind": 32, "kindString": "Variable", @@ -4279,7 +4279,7 @@ } }, { - "id": 261, + "id": 262, "name": "error", "kind": 32, "kindString": "Variable", @@ -4313,8 +4313,8 @@ "title": "Variables", "kind": 32, "children": [ - 260, - 261 + 261, + 262 ] } ], @@ -4341,7 +4341,7 @@ ] }, { - "id": 262, + "id": 263, "name": "getPublicUrl", "kind": 2048, "kindString": "Method", @@ -4350,7 +4350,7 @@ }, "signatures": [ { - "id": 263, + "id": 264, "name": "getPublicUrl", "kind": 4096, "kindString": "Call signature", @@ -4362,7 +4362,7 @@ }, "parameters": [ { - "id": 264, + "id": 265, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -4381,7 +4381,7 @@ "type": { "type": "reflection", "declaration": { - "id": 265, + "id": 266, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4390,7 +4390,7 @@ }, "children": [ { - "id": 266, + "id": 267, "name": "data", "kind": 32, "kindString": "Variable", @@ -4410,7 +4410,7 @@ { "type": "reflection", "declaration": { - "id": 267, + "id": 268, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4419,7 +4419,7 @@ }, "children": [ { - "id": 268, + "id": 269, "name": "publicURL", "kind": 32, "kindString": "Variable", @@ -4444,7 +4444,7 @@ "title": "Variables", "kind": 32, "children": [ - 268 + 269 ] } ], @@ -4465,7 +4465,7 @@ } }, { - "id": 269, + "id": 270, "name": "error", "kind": 32, "kindString": "Variable", @@ -4494,7 +4494,7 @@ } }, { - "id": 270, + "id": 271, "name": "publicURL", "kind": 32, "kindString": "Variable", @@ -4528,9 +4528,9 @@ "title": "Variables", "kind": 32, "children": [ - 266, - 269, - 270 + 267, + 270, + 271 ] } ], @@ -4554,7 +4554,7 @@ ] }, { - "id": 277, + "id": 278, "name": "list", "kind": 2048, "kindString": "Method", @@ -4563,7 +4563,7 @@ }, "signatures": [ { - "id": 278, + "id": 279, "name": "list", "kind": 4096, "kindString": "Call signature", @@ -4575,7 +4575,7 @@ }, "parameters": [ { - "id": 279, + "id": 280, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -4601,7 +4601,7 @@ } }, { - "id": 280, + "id": 281, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -4619,7 +4619,7 @@ } }, { - "id": 281, + "id": 282, "name": "parameters", "kind": 32768, "kindString": "Parameter", @@ -4643,7 +4643,7 @@ { "type": "reflection", "declaration": { - "id": 282, + "id": 283, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4652,7 +4652,7 @@ }, "children": [ { - "id": 283, + "id": 284, "name": "data", "kind": 32, "kindString": "Variable", @@ -4685,7 +4685,7 @@ } }, { - "id": 284, + "id": 285, "name": "error", "kind": 32, "kindString": "Variable", @@ -4719,8 +4719,8 @@ "title": "Variables", "kind": 32, "children": [ - 283, - 284 + 284, + 285 ] } ], @@ -4747,7 +4747,7 @@ ] }, { - "id": 217, + "id": 218, "name": "move", "kind": 2048, "kindString": "Method", @@ -4756,7 +4756,7 @@ }, "signatures": [ { - "id": 218, + "id": 219, "name": "move", "kind": 4096, "kindString": "Call signature", @@ -4768,7 +4768,7 @@ }, "parameters": [ { - "id": 219, + "id": 220, "name": "fromPath", "kind": 32768, "kindString": "Parameter", @@ -4784,7 +4784,7 @@ } }, { - "id": 220, + "id": 221, "name": "toPath", "kind": 32768, "kindString": "Parameter", @@ -4806,7 +4806,7 @@ { "type": "reflection", "declaration": { - "id": 221, + "id": 222, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4815,7 +4815,7 @@ }, "children": [ { - "id": 222, + "id": 223, "name": "data", "kind": 32, "kindString": "Variable", @@ -4835,7 +4835,7 @@ { "type": "reflection", "declaration": { - "id": 223, + "id": 224, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4844,7 +4844,7 @@ }, "children": [ { - "id": 224, + "id": 225, "name": "message", "kind": 32, "kindString": "Variable", @@ -4869,7 +4869,7 @@ "title": "Variables", "kind": 32, "children": [ - 224 + 225 ] } ], @@ -4890,7 +4890,7 @@ } }, { - "id": 225, + "id": 226, "name": "error", "kind": 32, "kindString": "Variable", @@ -4924,8 +4924,8 @@ "title": "Variables", "kind": 32, "children": [ - 222, - 225 + 223, + 226 ] } ], @@ -4952,7 +4952,7 @@ ] }, { - "id": 271, + "id": 272, "name": "remove", "kind": 2048, "kindString": "Method", @@ -4961,7 +4961,7 @@ }, "signatures": [ { - "id": 272, + "id": 273, "name": "remove", "kind": 4096, "kindString": "Call signature", @@ -4973,7 +4973,7 @@ }, "parameters": [ { - "id": 273, + "id": 274, "name": "paths", "kind": 32768, "kindString": "Parameter", @@ -4998,7 +4998,7 @@ { "type": "reflection", "declaration": { - "id": 274, + "id": 275, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5007,7 +5007,7 @@ }, "children": [ { - "id": 275, + "id": 276, "name": "data", "kind": 32, "kindString": "Variable", @@ -5040,7 +5040,7 @@ } }, { - "id": 276, + "id": 277, "name": "error", "kind": 32, "kindString": "Variable", @@ -5074,8 +5074,8 @@ "title": "Variables", "kind": 32, "children": [ - 275, - 276 + 276, + 277 ] } ], @@ -5102,7 +5102,7 @@ ] }, { - "id": 207, + "id": 208, "name": "update", "kind": 2048, "kindString": "Method", @@ -5111,7 +5111,7 @@ }, "signatures": [ { - "id": 208, + "id": 209, "name": "update", "kind": 4096, "kindString": "Call signature", @@ -5123,7 +5123,7 @@ }, "parameters": [ { - "id": 209, + "id": 210, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -5139,7 +5139,7 @@ } }, { - "id": 210, + "id": 211, "name": "fileBody", "kind": 32768, "kindString": "Parameter", @@ -5202,7 +5202,7 @@ } }, { - "id": 211, + "id": 212, "name": "fileOptions", "kind": 32768, "kindString": "Parameter", @@ -5226,7 +5226,7 @@ { "type": "reflection", "declaration": { - "id": 212, + "id": 213, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5235,7 +5235,7 @@ }, "children": [ { - "id": 213, + "id": 214, "name": "data", "kind": 32, "kindString": "Variable", @@ -5255,7 +5255,7 @@ { "type": "reflection", "declaration": { - "id": 214, + "id": 215, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5264,7 +5264,7 @@ }, "children": [ { - "id": 215, + "id": 216, "name": "Key", "kind": 32, "kindString": "Variable", @@ -5289,7 +5289,7 @@ "title": "Variables", "kind": 32, "children": [ - 215 + 216 ] } ], @@ -5310,7 +5310,7 @@ } }, { - "id": 216, + "id": 217, "name": "error", "kind": 32, "kindString": "Variable", @@ -5344,8 +5344,8 @@ "title": "Variables", "kind": 32, "children": [ - 213, - 216 + 214, + 217 ] } ], @@ -5372,7 +5372,7 @@ ] }, { - "id": 197, + "id": 198, "name": "upload", "kind": 2048, "kindString": "Method", @@ -5381,7 +5381,7 @@ }, "signatures": [ { - "id": 198, + "id": 199, "name": "upload", "kind": 4096, "kindString": "Call signature", @@ -5393,7 +5393,7 @@ }, "parameters": [ { - "id": 199, + "id": 200, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -5409,7 +5409,7 @@ } }, { - "id": 200, + "id": 201, "name": "fileBody", "kind": 32768, "kindString": "Parameter", @@ -5472,7 +5472,7 @@ } }, { - "id": 201, + "id": 202, "name": "fileOptions", "kind": 32768, "kindString": "Parameter", @@ -5496,7 +5496,7 @@ { "type": "reflection", "declaration": { - "id": 202, + "id": 203, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5505,7 +5505,7 @@ }, "children": [ { - "id": 203, + "id": 204, "name": "data", "kind": 32, "kindString": "Variable", @@ -5525,7 +5525,7 @@ { "type": "reflection", "declaration": { - "id": 204, + "id": 205, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5534,7 +5534,7 @@ }, "children": [ { - "id": 205, + "id": 206, "name": "Key", "kind": 32, "kindString": "Variable", @@ -5559,7 +5559,7 @@ "title": "Variables", "kind": 32, "children": [ - 205 + 206 ] } ], @@ -5580,7 +5580,7 @@ } }, { - "id": 206, + "id": 207, "name": "error", "kind": 32, "kindString": "Variable", @@ -5614,8 +5614,8 @@ "title": "Variables", "kind": 32, "children": [ - 203, - 206 + 204, + 207 ] } ], @@ -5642,7 +5642,7 @@ ] }, { - "id": 186, + "id": 187, "name": "uploadOrUpdate", "kind": 2048, "kindString": "Method", @@ -5652,7 +5652,7 @@ }, "signatures": [ { - "id": 187, + "id": 188, "name": "uploadOrUpdate", "kind": 4096, "kindString": "Call signature", @@ -5664,7 +5664,7 @@ }, "parameters": [ { - "id": 188, + "id": 189, "name": "method", "kind": 32768, "kindString": "Parameter", @@ -5689,7 +5689,7 @@ } }, { - "id": 189, + "id": 190, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -5705,7 +5705,7 @@ } }, { - "id": 190, + "id": 191, "name": "fileBody", "kind": 32768, "kindString": "Parameter", @@ -5768,7 +5768,7 @@ } }, { - "id": 191, + "id": 192, "name": "fileOptions", "kind": 32768, "kindString": "Parameter", @@ -5792,7 +5792,7 @@ { "type": "reflection", "declaration": { - "id": 192, + "id": 193, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5801,7 +5801,7 @@ }, "children": [ { - "id": 193, + "id": 194, "name": "data", "kind": 32, "kindString": "Variable", @@ -5821,7 +5821,7 @@ { "type": "reflection", "declaration": { - "id": 194, + "id": 195, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5830,7 +5830,7 @@ }, "children": [ { - "id": 195, + "id": 196, "name": "Key", "kind": 32, "kindString": "Variable", @@ -5855,7 +5855,7 @@ "title": "Variables", "kind": 32, "children": [ - 195 + 196 ] } ], @@ -5876,7 +5876,7 @@ } }, { - "id": 196, + "id": 197, "name": "error", "kind": 32, "kindString": "Variable", @@ -5910,8 +5910,8 @@ "title": "Variables", "kind": 32, "children": [ - 193, - 196 + 194, + 197 ] } ], @@ -5943,36 +5943,36 @@ "title": "Constructors", "kind": 512, "children": [ - 177 + 178 ] }, { "title": "Properties", "kind": 1024, "children": [ - 175, 176, - 171, - 170 + 177, + 172, + 171 ] }, { "title": "Methods", "kind": 2048, "children": [ - 285, - 288, - 226, - 235, - 245, - 256, - 262, - 277, - 217, - 271, - 207, - 197, - 186 + 286, + 289, + 227, + 236, + 246, + 257, + 263, + 278, + 218, + 272, + 208, + 198, + 187 ] } ], @@ -5985,7 +5985,7 @@ ] }, { - "id": 297, + "id": 298, "name": "DEFAULT_FILE_OPTIONS", "kind": 2097152, "kindString": "Object literal", @@ -5994,7 +5994,7 @@ }, "children": [ { - "id": 298, + "id": 299, "name": "cacheControl", "kind": 32, "kindString": "Variable", @@ -6013,7 +6013,7 @@ "defaultValue": "\"3600\"" }, { - "id": 299, + "id": 300, "name": "contentType", "kind": 32, "kindString": "Variable", @@ -6032,7 +6032,7 @@ "defaultValue": "\"text/plain;charset=UTF-8\"" }, { - "id": 300, + "id": 301, "name": "upsert", "kind": 32, "kindString": "Variable", @@ -6056,9 +6056,9 @@ "title": "Variables", "kind": 32, "children": [ - 298, 299, - 300 + 300, + 301 ] } ], @@ -6075,7 +6075,7 @@ } }, { - "id": 291, + "id": 292, "name": "DEFAULT_SEARCH_OPTIONS", "kind": 2097152, "kindString": "Object literal", @@ -6084,7 +6084,7 @@ }, "children": [ { - "id": 292, + "id": 293, "name": "limit", "kind": 32, "kindString": "Variable", @@ -6103,7 +6103,7 @@ "defaultValue": "100" }, { - "id": 293, + "id": 294, "name": "offset", "kind": 32, "kindString": "Variable", @@ -6122,14 +6122,14 @@ "defaultValue": "0" }, { - "id": 294, + "id": 295, "name": "sortBy", "kind": 2097152, "kindString": "Object literal", "flags": {}, "children": [ { - "id": 295, + "id": 296, "name": "column", "kind": 32, "kindString": "Variable", @@ -6148,7 +6148,7 @@ "defaultValue": "\"name\"" }, { - "id": 296, + "id": 297, "name": "order", "kind": 32, "kindString": "Variable", @@ -6172,8 +6172,8 @@ "title": "Variables", "kind": 32, "children": [ - 295, - 296 + 296, + 297 ] } ], @@ -6195,15 +6195,15 @@ "title": "Variables", "kind": 32, "children": [ - 292, - 293 + 293, + 294 ] }, { "title": "Object literals", "kind": 2097152, "children": [ - 294 + 295 ] } ], @@ -6225,15 +6225,15 @@ "title": "Classes", "kind": 128, "children": [ - 169 + 170 ] }, { "title": "Object literals", "kind": 2097152, "children": [ - 297, - 291 + 298, + 292 ] } ], @@ -7485,7 +7485,7 @@ ] }, { - "id": 301, + "id": 302, "name": "\"lib/index\"", "kind": 1, "kindString": "Module", @@ -7495,7 +7495,7 @@ "originalName": "/home/runner/work/storage-js/storage-js/src/lib/index.ts", "children": [ { - "id": 304, + "id": 305, "name": "Bucket", "kind": 16777216, "kindString": "Reference", @@ -7505,7 +7505,7 @@ "target": 74 }, { - "id": 310, + "id": 311, "name": "DEFAULT_HEADERS", "kind": 16777216, "kindString": "Reference", @@ -7515,7 +7515,7 @@ "target": 4 }, { - "id": 305, + "id": 306, "name": "FileObject", "kind": 16777216, "kindString": "Reference", @@ -7525,7 +7525,7 @@ "target": 81 }, { - "id": 307, + "id": 308, "name": "FileOptions", "kind": 16777216, "kindString": "Reference", @@ -7535,17 +7535,17 @@ "target": 95 }, { - "id": 309, + "id": 310, "name": "Metadata", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 103 + "target": 104 }, { - "id": 308, + "id": 309, "name": "SearchOptions", "kind": 16777216, "kindString": "Reference", @@ -7555,7 +7555,7 @@ "target": 99 }, { - "id": 306, + "id": 307, "name": "SortBy", "kind": 16777216, "kindString": "Reference", @@ -7565,24 +7565,24 @@ "target": 92 }, { - "id": 302, + "id": 303, "name": "StorageBucketApi", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 106 + "target": 107 }, { - "id": 303, + "id": 304, "name": "StorageFileApi", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 169 + "target": 170 } ], "groups": [ @@ -7590,15 +7590,15 @@ "title": "References", "kind": 16777216, "children": [ - 304, - 310, 305, - 307, - 309, - 308, + 311, 306, - 302, - 303 + 308, + 310, + 309, + 307, + 303, + 304 ] } ], @@ -8127,7 +8127,7 @@ ] }, { - "id": 103, + "id": 104, "name": "Metadata", "kind": 256, "kindString": "Interface", @@ -8136,7 +8136,7 @@ }, "children": [ { - "id": 104, + "id": 105, "name": "name", "kind": 1024, "kindString": "Property", @@ -8146,7 +8146,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 46, + "line": 49, "character": 6 } ], @@ -8161,14 +8161,14 @@ "title": "Properties", "kind": 1024, "children": [ - 104 + 105 ] } ], "sources": [ { "fileName": "lib/types.ts", - "line": 45, + "line": 48, "character": 25 } ] @@ -8248,6 +8248,39 @@ ] } }, + { + "id": 103, + "name": "search", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "The search string to filter files by." + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 44, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, { "id": 102, "name": "sortBy", @@ -8281,6 +8314,7 @@ "children": [ 100, 101, + 103, 102 ] } @@ -8390,7 +8424,7 @@ 74, 81, 95, - 103, + 104, 99, 92 ] @@ -8460,14 +8494,14 @@ "title": "Modules", "kind": 1, "children": [ - 311, - 377, - 105, - 168, + 312, + 378, + 106, + 169, 3, 6, 68, - 301, + 302, 73, 1 ] diff --git a/web/spec/supabase.json b/web/spec/supabase.json index 5c0997af186..1d5da45e300 100644 --- a/web/spec/supabase.json +++ b/web/spec/supabase.json @@ -19859,8 +19859,11 @@ } ], "type": { - "type": "literal", - "value": "sms" + "type": "reference", + "id": 783, + "qualifiedName": "MobileOTPType", + "package": "@supabase/gotrue-js", + "name": "MobileOTPType" } } ], @@ -19986,8 +19989,17 @@ } ], "type": { - "type": "literal", - "value": "sms" + "type": "union", + "types": [ + { + "type": "literal", + "value": "sms" + }, + { + "type": "literal", + "value": "phone_change" + } + ] } }, { diff --git a/web/static/img/guides/connection-pool.png b/web/static/img/guides/database/connection-pool.png similarity index 100% rename from web/static/img/guides/connection-pool.png rename to web/static/img/guides/database/connection-pool.png diff --git a/web/static/img/guides/database/foreign-keys.png b/web/static/img/guides/database/foreign-keys.png new file mode 100644 index 00000000000..1025e6e5ee2 Binary files /dev/null and b/web/static/img/guides/database/foreign-keys.png differ diff --git a/web/static/img/guides/database/schema-tables.png b/web/static/img/guides/database/schema-tables.png new file mode 100644 index 00000000000..6bb2316aa97 Binary files /dev/null and b/web/static/img/guides/database/schema-tables.png differ diff --git a/web/static/img/guides/database/tables-columns.png b/web/static/img/guides/database/tables-columns.png new file mode 100644 index 00000000000..d4d3ab03d3d Binary files /dev/null and b/web/static/img/guides/database/tables-columns.png differ diff --git a/www/_blog/2022-04-15-beta-update-march-2022.mdx b/www/_blog/2022-04-15-beta-update-march-2022.mdx new file mode 100644 index 00000000000..9888153c9d4 --- /dev/null +++ b/www/_blog/2022-04-15-beta-update-march-2022.mdx @@ -0,0 +1,108 @@ +--- +title: Supabase Beta March 2022 +description: Functions, GraphQL, and much more. +author: ant_wilson +image: 2022-march/thumb.jpg +thumb: 2022-march/thumb.jpg +tags: + - launch-week +date: '2022-04-15T11:00:00' +toc_depth: 3 +--- + +Definitely our most feature-packed month so far. Here's a ton of stuff we shipped throughout March... + +## Functions + +The one we've all been waiting for. You can now [deploy Javascript & Typescript functions](/blog/2022/03/31/supabase-edge-functions) to Supabase. You can develop and test locally, link a project, and deploy globally to the edge in a matter of seconds! + +[![supabase functions](/images/blog/2022-march/functions.png)](/blog/2022/03/31/supabase-edge-functions) + +## GraphQL + +You can now [query your Supabase database with GraphQL](/blog/2022/03/29/graphql-now-available). We built this as a postgres extension, so it's portable, open source, and solves some of the problems that exist in other GraphQL implementations. + +[![graphql](/images/blog/2022-march/graphql.jpg)](/blog/2022/03/29/graphql-now-available) + +## Realtime + +Supabase Realtime [now supports multiplayer and presence](/blog/2022/04/01/supabase-realtime-with-multiplayer-features), so you can build collaborative applications like Figma and Google Docs with Supabase. Come and have some fun on our demo application. + +[![realtime](/images/blog/2022-march/realtime.png)](/blog/2022/04/01/supabase-realtime-with-multiplayer-features) + +## Enterprise + +[Logging and Observability dashboard](/blog/2022/03/30/supabase-enterprise), Prometheus endpoint, SLAs, premium support, pricing updates, and Point-In-Time-Recovery. Everything you need to use Supabase at scale. + +[![enterprise](/images/blog/2022-march/enterprise.png)](/blog/2022/03/30/supabase-enterprise) + +## GitHub Secret Scanning + +We're now an official [GitHub secret scanning partner](/blog/2022/03/28/community-day#supabase-is-now-a-github-secret-scanning-partner), meaning that if you accidentally push your service_role key to GitHub, you'll get a notification email, and your keys will automatically be rolled on Supabase. For private repos you can disable this. + +[![secret scanning](/images/blog/2022-march/secret-scanning.png)](/blog/2022/03/28/community-day#supabase-is-now-a-github-secret-scanning-partner) + +## Community Day + +[PostgREST 10 pre-release](/blog/2022/03/28/community-day#postgrest-10-pre-release), new OAuth providers, Next-JS auth helpers, new courses, and an open source Partner Gallery. + +[![community day](/images/blog/2022-march/community-day.png)](/blog/2022/03/28/community-day) + +## Should I open source my company? + +[We wrote an article](/blog/2022/03/25/should-i-open-source-my-company) for anyone considoring making their codebase open source. We explore the advantages and tackle some common concerns. + +[![open source](/images/blog/2022-march/open-source.png)](/blog/2022/03/25/should-i-open-source-my-company) + +## Supabrew - Never Code Thirsty + +For April Fools - [we announced a non-alcoholic](/blog/2022/04/01/supabrew), light, and refreshing brew. Perfect for coding late into the night. We're pushing the boundaries of Developer Experience. + +[![supabrew](/images/blog/2022-march/supabrew.png)](/blog/2022/04/01/supabrew) + +## Video Highlights + +Relive all the action from Launch Week 4: +- [Community Day Live Stream](https://www.youtube.com/watch?v=D0gIgjozOzc) on YouTube +- [GraphQL Announcement Live Stream](https://www.youtube.com/watch?v=fApxu_U_hdw) on YouTube +- [Enterprise Announcements Live Stream](https://www.youtube.com/watch?v=UZrl1cwzTDg) on YouTube +- [Functions Announcement with Deno Team](https://www.youtube.com/watch?v=Xci5SOv76k0) on YouTube +- [Realtime Demo App](https://www.youtube.com/watch?v=BelYEMJ2N00) on YouTube +- [Realtime Remix w/Supabase Launch Party](https://www.youtube.com/watch?v=rntEMgaenHs) on YouTube +- [Building an Image Gallery with Vercel](https://www.youtube.com/watch?v=BSoRXk1FIw8) by Lee Robinson + +## Hiring + +We're Hiring - for a ton of new roles across engineering, marketing, and HR. We hire fully remotely, and you'll get to work alongside some incredible people, on one of the fastest growing open source companies. [See which roles we're hiring for](https://about.supabase.com/careers). + +[![supabase is hiring](/images/blog/2021-dec/hiring.png)](https://about.supabase.com/careers) + +## Twitter + +We're having a 24/7*365 meme-fest on [Twitter](https://twitter.com/supabase). Come join us. + +[![supabase twitter](/images/blog/2022-march/twitter.png)](https://twitter.com/supabase) + +## TikTok + +Check us out on [TikTok](https://www.tiktok.com/@supabase.com?fromUrl=%2Fsupabase.com&lang=en) + +[![tiktok](/images/blog/2021-dec/tiktok.png)](https://www.tiktok.com/@supabase.com?fromUrl=%2Fsupabase.com&lang=en) + +## Swag Store + +A reminder that we have a [Supabase Swag Store](https://store.supabase.com) + +[![swag store](/images/blog/2021-dec/swag.jpg)](https://store.supabase.com) + +## GitHub + +We hit 30K stars!!: [github.com/supabase/supabase](http://github.com/supabase/supabase) + +## Get started + +- Start using Supabase today: **[app.supabase.io](https://app.supabase.io/)** +- Make sure to **[star us on GitHub](https://github.com/supabase/supabase)** +- Follow us **[on Twitter](https://twitter.com/supabase)** +- Subscribe to our **[YouTube channel](https://www.youtube.com/c/supabase)** +- Become a **[sponsor](https://github.com/sponsors/supabase)** diff --git a/www/components/Sections/GithubExamples.tsx b/www/components/Sections/GithubExamples.tsx index d0a9c1bfcf2..34cf953f3b3 100644 --- a/www/components/Sections/GithubExamples.tsx +++ b/www/components/Sections/GithubExamples.tsx @@ -100,15 +100,11 @@ function GithubExamples() { ) })}
-
-

- -

+
+
-
-

- -

+
+
diff --git a/www/components/Sections/TwitterSocialProof.tsx b/www/components/Sections/TwitterSocialProof.tsx index a0ced418265..f0c79cec352 100644 --- a/www/components/Sections/TwitterSocialProof.tsx +++ b/www/components/Sections/TwitterSocialProof.tsx @@ -48,7 +48,7 @@ function TwitterSocialProof() { GitHub discussions - +