Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(storage): internal uploadData implementation #13888

Conversation

AllanZhengYP
Copy link
Member

Description of changes

  • Move uploadData folder to providers/s3/apis/internal folder
  • Add storage-browser specific internal uploadData API

Issue #, if available

Description of how you validated changes

Unit test

Checklist

  • PR description included
  • yarn test passes
  • Unit Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)

Checklist for repo maintainers

  • Verify E2E tests for existing workflows are working as expected or add E2E tests for newly added workflows
  • New source file paths included in this PR have been added to CODEOWNERS, if appropriate

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

/**
* Generic types that extend the public non-copy API input types with extended
* options. This is a temporary solution to support advanced options from internal APIs.
*/
type ExtendInputWithAdvancedOptions<InputType, ExtendedOptionsType> =
InputType extends StorageOperationInputWithPath &
StorageOperationOptionsInput<infer PublicInputOptionsType>
? {
path: InputType['path'];
? InputType & {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change to support the uploadData input which contains additonal data properties besides path.

@AllanZhengYP AllanZhengYP marked this pull request as ready for review October 7, 2024 17:28
ashwinkumar6
ashwinkumar6 previously approved these changes Oct 8, 2024
Copy link
Member

@ashwinkumar6 ashwinkumar6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thank you !

ashwinkumar6
ashwinkumar6 previously approved these changes Oct 9, 2024
@AllanZhengYP AllanZhengYP merged commit fb4237b into aws-amplify:storage-browser/integrity Oct 9, 2024
28 checks passed
@AllanZhengYP AllanZhengYP deleted the storage-browser/internals-upload branch October 9, 2024 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants