diff --git a/library/modules/supabase/nodes/data/call-a-postgres-function.md b/library/modules/supabase/nodes/data/call-a-postgres-function.md new file mode 100644 index 0000000..8b0a124 --- /dev/null +++ b/library/modules/supabase/nodes/data/call-a-postgres-function.md @@ -0,0 +1,11 @@ +--- +hide_title: true +--- + +{/*##head##*/} + +# Supabase Call a Postgres function + +{/*##head##*/} + +This is based on the [Supabase Client SDK - Call a Postgres function](https://supabase.com/docs/reference/javascript/rpc). diff --git a/library/modules/supabase/nodes/realtime/broadcast-message.md b/library/modules/supabase/nodes/realtime/broadcast-message.md index 40e2f6b..1b2b169 100644 --- a/library/modules/supabase/nodes/realtime/broadcast-message.md +++ b/library/modules/supabase/nodes/realtime/broadcast-message.md @@ -7,3 +7,5 @@ hide_title: true # Supabase Realtime Broadcast Message {/*##head##*/} + +This is based on the [Supabase Client SDK - Broadcast a message](https://supabase.com/docs/reference/javascript/broadcastmessage). diff --git a/library/modules/supabase/nodes/realtime/subscribe-to-channel.md b/library/modules/supabase/nodes/realtime/subscribe-to-channel.md index f8c4d16..fb48c33 100644 --- a/library/modules/supabase/nodes/realtime/subscribe-to-channel.md +++ b/library/modules/supabase/nodes/realtime/subscribe-to-channel.md @@ -7,3 +7,5 @@ hide_title: true # Supabase Realtime Subscribe To Channel {/*##head##*/} + +This is based on the [Supabase Client SDK - Subscribe to channel](https://supabase.com/docs/reference/javascript/subscribe). diff --git a/library/modules/supabase/nodes/storage/create-signed-file-url.md b/library/modules/supabase/nodes/storage/create-signed-file-url.md deleted file mode 100644 index 33394b3..0000000 --- a/library/modules/supabase/nodes/storage/create-signed-file-url.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -hide_title: true ---- - -{/*##head##*/} - -# Create Signed File URL - -{/*##head##*/} diff --git a/library/modules/supabase/nodes/storage/delete-files.md b/library/modules/supabase/nodes/storage/delete-files.md new file mode 100644 index 0000000..91a15fc --- /dev/null +++ b/library/modules/supabase/nodes/storage/delete-files.md @@ -0,0 +1,42 @@ +--- +hide_title: true +--- + +{/*##head##*/} + +# Supabase Delete Files + +{/*##head##*/} + +This is based on the [Supabase Client SDK - Delete files in a bucket](https://supabase.com/docs/reference/javascript/storage-from-remove). + +## Inputs + +
+ +| Data | Type | Description | +| ------------------------------------------------- | ------------- | ----------- | +| Delete | signal | | +| Bucket | string | | +| Paths to Delete | array of string | | + +
+ +## Outputs + +
+ +| Data | Type | Description | +| ----------------------------------------------- | ------------- | ----------- | +| Deleted Paths | array of string | | +| Is Deleting | boolean | | +| Is Deleted | boolean | | +| Status | string | | +| Is Success | boolean | | +| Is Error | boolean | | +| Error Text | string | | +| Success | signal | | +| Failure | signal | | +| Finally | signal | | + +
diff --git a/library/modules/supabase/nodes/storage/download-file.md b/library/modules/supabase/nodes/storage/download-file.md index 7a2024c..c4c6002 100644 --- a/library/modules/supabase/nodes/storage/download-file.md +++ b/library/modules/supabase/nodes/storage/download-file.md @@ -7,3 +7,38 @@ hide_title: true # Download File {/*##head##*/} + +This is based on the [Supabase Client SDK - Download a file](https://supabase.com/docs/reference/javascript/storage-from-download). + +## Inputs + +
+ +| Data | Type | Description | +| ------------------------------------------------------ | ------ | ----------- | +| Download | signal | | +| Bucket | string | | +| Path (within bucket) | string | | + +
+ +## Outputs + +
+ +| Data | Type | Description | +| --------------------------------------------------- | ------- | ----------- | +| File Blob | \* | | +| File Text | string | | +| File Array Buffer | \* | | +| Is Downloading | boolean | | +| Is Downloaded | boolean | | +| Status | string | | +| Is Success | boolean | | +| Is Error | boolean | | +| Error Text | string | | +| Success | signal | | +| Failure | signal | | +| Finally | signal | | + +
diff --git a/library/modules/supabase/nodes/storage/retrieve-public-file-urls.md b/library/modules/supabase/nodes/storage/retrieve-public-file-urls.md new file mode 100644 index 0000000..907061e --- /dev/null +++ b/library/modules/supabase/nodes/storage/retrieve-public-file-urls.md @@ -0,0 +1,43 @@ +--- +hide_title: true +--- + +{/*##head##*/} + +# Supabase Retrieve Public File URLs + +{/*##head##*/} + +This is based on the [Supabase Client SDK - Retrieve public URL](https://supabase.com/docs/reference/javascript/storage-from-getpublicurl). + +## Inputs + +
+ +| Data | Type | Description | +| ---------------------------------------------------------- | --------------- | ----------- | +| Fetch | signal | | +| Bucket | string | | +| Paths (array of strings) | array of string | | +| Expires In (seconds) | number | | + +
+ +## Outputs + +
+ +| Data | Type | Description | +| --------------------------------------------- | --------------- | ----------- | +| Signed URLs | array of string | | +| Is Fetching | boolean | | +| Is Fetched | boolean | | +| Is Success | boolean | | +| Is Error | boolean | | +| Status | string | | +| Error Text | string | | +| Success | signal | | +| Failure | signal | | +| Finally | signal | | + +
diff --git a/library/modules/supabase/nodes/storage/upload-file-resumable.md b/library/modules/supabase/nodes/storage/upload-file-resumable.md index 1499e89..e473f11 100644 --- a/library/modules/supabase/nodes/storage/upload-file-resumable.md +++ b/library/modules/supabase/nodes/storage/upload-file-resumable.md @@ -4,6 +4,45 @@ hide_title: true {/*##head##*/} -# Upload File (Resumable) +# Supabase Upload File (Resumable) {/*##head##*/} + +This is based on the [Resumable Uploads](https://supabase.com/docs/guides/storage/uploads/resumable-uploads). + +## Inputs + +
+ +| Data | Type | Description | +| ------------------------------------------------------ | ----------- | ----------- | +| Upload | signal | | +| Bucket | string | | +| Path (within bucket) | string | | +| Upsert | boolean | | +| File | Blob / File | | +| Pause Upload | signal | | +| Resume Upload | signal | | +| Cancel Upload | signal | | + +
+ +## Outputs + +
+ +| Data | Type | Description | +| ------------------------------------------------- | ------- | --------------------------------------------- | +| Upload Progress | number | | +| Public Url | string | | +| Is Uploading | boolean | | +| Is Uploaded | boolean | | +| Status | string | "idle" or "uploading" or "success" or "error" | +| Is Success | boolean | | +| Is Error | boolean | | +| Error Text | string | | +| Success | signal | | +| Failure | signal | | +| Finally | signal | | + +
diff --git a/library/modules/supabase/nodes/storage/upload-file.md b/library/modules/supabase/nodes/storage/upload-file.md index 35d87b3..8911df3 100644 --- a/library/modules/supabase/nodes/storage/upload-file.md +++ b/library/modules/supabase/nodes/storage/upload-file.md @@ -4,6 +4,46 @@ hide_title: true {/*##head##*/} -# Upload File +# Supabase Upload File + +Uploads a file to an existing bucket. {/*##head##*/} + +This is based on the [Supabase Client SDK - Upload a file](https://supabase.com/docs/reference/javascript/storage-from-upload). + +## Inputs + +
+ +| Data | Type | Description | +| ------------------------------------------------------ | ----------- | ----------- | +| Upload | signal | | +| Bucket | string | | +| Path (within bucket) | string | | +| Upsert | boolean | | +| File | Blob / File | | + +
+ +## Outputs + +
+ +| Data | Type | Description | +| ------------------------------------------------ | ------- | --------------------------------------------- | +| File ID | string | | +| File Path | string | | +| File Full Path | string | | +| Public Url | string | | +| Is Uploading | boolean | | +| Is Uploaded | boolean | | +| Status | string | "idle" or "uploading" or "success" or "error" | +| Is Success | boolean | | +| Is Error | boolean | | +| Error Text | string | | +| Success | signal | | +| Failure | signal | | +| Finally | signal | | + +
diff --git a/sidebarsLibrary.js b/sidebarsLibrary.js index 67c89a3..6bc384f 100644 --- a/sidebarsLibrary.js +++ b/sidebarsLibrary.js @@ -215,7 +215,7 @@ const sidebars = { { type: "category", label: "Auth Nodes", - collapsible: false, + collapsible: true, items: [ { type: "doc", @@ -237,8 +237,13 @@ const sidebars = { { type: "category", label: "Data Nodes", - collapsible: false, + collapsible: true, items: [ + { + type: "doc", + label: "Call a Postgres function", + id: "modules/supabase/nodes/data/call-a-postgres-function", + }, { type: "doc", label: "Create new Record", @@ -264,7 +269,7 @@ const sidebars = { { type: "category", label: "Edge Function Nodes", - collapsible: false, + collapsible: true, items: [ { type: "doc", @@ -276,7 +281,7 @@ const sidebars = { { type: "category", label: "Events Nodes", - collapsible: false, + collapsible: true, items: [ { type: "doc", @@ -295,6 +300,60 @@ const sidebars = { }, ], }, + { + type: "category", + label: "Realtime Nodes", + collapsible: true, + items: [ + { + type: "doc", + label: "Broadcast Message", + id: "modules/supabase/nodes/realtime/broadcast-message", + }, + { + type: "doc", + label: "Set Presence", + id: "modules/supabase/nodes/realtime/set-presence", + }, + { + type: "doc", + label: "Subscribe To Channel", + id: "modules/supabase/nodes/realtime/subscribe-to-channel", + }, + ], + }, + { + type: "category", + label: "Storage Nodes", + collapsible: true, + items: [ + { + type: "doc", + label: "Retrieve Public File URLs", + id: "modules/supabase/nodes/storage/retrieve-public-file-urls", + }, + { + type: "doc", + label: "Delete Files", + id: "modules/supabase/nodes/storage/delete-files", + }, + { + type: "doc", + label: "Download File", + id: "modules/supabase/nodes/storage/download-file", + }, + { + type: "doc", + label: "Upload File (Resumable)", + id: "modules/supabase/nodes/storage/upload-file-resumable", + }, + { + type: "doc", + label: "Download File", + id: "modules/supabase/nodes/storage/upload-file", + }, + ], + }, { type: "doc", label: "Release Notes",