Updated the attachment method to allow for file uploads #28
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

TL;DR
Enhanced the
attachToTaskmethod in Asana API to support both URL attachments and file uploads from buffers.What changed?
attachToTaskmethod to accept either a URL string or a Buffer/Uint8Array as the resource parameteroptionsparameter that allows specifying filename and content type for buffer uploadsHow to test?
Test URL attachment:
Test buffer upload:
Verify that both methods correctly attach files to Asana tasks
Why make this change?
This enhancement provides more flexibility when attaching files to Asana tasks. Previously, the method only supported attaching external URLs, but now it can also handle direct file uploads from memory buffers, which is useful for programmatically generated files or when processing files without saving them to disk first.
📦 Published PR as canary version:
Canary Versions✨ Test out this PR locally via:
npm install @friggframework/api-module-asana@1.1.6-canary.28.ae47af4.0 # or yarn add @friggframework/api-module-asana@1.1.6-canary.28.ae47af4.0Version
Published prerelease version:
@friggframework/api-module-asana@2.0.0-next.3Changelog
🐛 Bug Fix
@friggframework/api-module-asana@friggframework/api-module-microsoft-teams,@friggframework/api-module-slack,@friggframework/api-module-42matters,@friggframework/api-module-asana,@friggframework/api-module-attio,@friggframework/api-module-connectwise,@friggframework/api-module-contentful,@friggframework/api-module-contentstack,@friggframework/api-module-crossbeam,@friggframework/api-module-deel,@friggframework/api-module-frontify,@friggframework/api-module-google-calendar,@friggframework/api-module-google-drive,@friggframework/api-module-helpscout,@friggframework/api-module-hubspot,@friggframework/api-module-ironclad,@friggframework/api-module-linear,@friggframework/api-module-salesforce,@friggframework/api-module-stripe,@friggframework/api-module-unbabel-projects,@friggframework/api-module-unbabel,@friggframework/api-module-zoho-crm,@friggframework/api-module-zoomAuthors: 1