-
Notifications
You must be signed in to change notification settings - Fork 65
feat: Shipping methods integration #2847
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
Merged
lucasfp13
merged 16 commits into
feat/delivery-promise-1.2
from
feat/shipping-methods-integration
May 30, 2025
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
87c1db7
feat: Add support to `shipping` facet
lucasfp13 30efe64
fix: GraphQL types adjustments
lucasfp13 772ebe7
feat: Add `pickupPoints` query
lucasfp13 132a421
fix: Revert change
lucasfp13 e69b977
fix: Undo changes
lucasfp13 6072603
fix: Type order after rebase
lucasfp13 cd55d33
fix: Tests
lucasfp13 d406657
fix: Use `pickupPoint` facet as query string param
lucasfp13 a85e768
fix: Schema tests
lucasfp13 78dd809
feat: Add support `unique` prop for `toggleFacets` function
lucasfp13 0a47a5b
feat: Add `toggleFacets` action type for reducer
lucasfp13 3b7092a
chore: Improve `usePickupPoints` hook
lucasfp13 7da3c9d
feat: Build and display `pickup-in-point` facet when it should
lucasfp13 333ba67
fix: Prevent undefined CMS data values
lucasfp13 43b50ca
fix: Facets behavior when changing postal code
lucasfp13 700407a
chore: Improve code readability
lucasfp13 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 4 additions & 4 deletions
8
packages/api/src/platforms/vtex/clients/commerce/types/PickupPoints.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
type PickupPointAddress { | ||
""" | ||
Address id. | ||
""" | ||
addressId: String | ||
""" | ||
Address type. | ||
""" | ||
addressType: String | ||
""" | ||
Address city. | ||
""" | ||
city: String | ||
""" | ||
Address complement | ||
""" | ||
complement: String | ||
""" | ||
Address country. | ||
""" | ||
country: String | ||
""" | ||
Address geo coordinates. | ||
""" | ||
geoCoordinates: [Float] | ||
""" | ||
Inform whether the address is disposable. | ||
""" | ||
isDisposable: Boolean | ||
""" | ||
Address neighborhood. | ||
""" | ||
neighborhood: String | ||
""" | ||
Address number. | ||
""" | ||
number: String | ||
""" | ||
Address postal code. | ||
""" | ||
postalCode: String | ||
""" | ||
Address receiver name. | ||
""" | ||
receiverName: String | ||
""" | ||
Address reference. | ||
""" | ||
reference: String | ||
""" | ||
Address state. | ||
""" | ||
state: String | ||
""" | ||
Address street. | ||
""" | ||
street: String | ||
} | ||
|
||
type BusinessHour { | ||
""" | ||
Number that represents the day of the week. | ||
""" | ||
DayOfWeek: Int | ||
""" | ||
Business hour opening time. | ||
""" | ||
OpeningTime: String | ||
""" | ||
Business hour closing time. | ||
""" | ||
ClosingTime: String | ||
} | ||
|
||
type PickupPoint { | ||
""" | ||
Pickup point additional info. | ||
""" | ||
additionalInfo: String | ||
""" | ||
Pickup point address. | ||
""" | ||
address: PickupPointAddress | ||
""" | ||
Pickup point business hours. | ||
""" | ||
businessHours: BusinessHour | ||
""" | ||
Pickup point friendly name. | ||
""" | ||
friendlyName: String | ||
""" | ||
Pickup point id. | ||
""" | ||
id: String | ||
} | ||
|
||
type Item { | ||
""" | ||
Pickup point distance. | ||
""" | ||
distance: Float | ||
""" | ||
Pickup point. | ||
""" | ||
pickupPoint: PickupPoint | ||
} | ||
|
||
type Paging { | ||
""" | ||
Current page. | ||
""" | ||
page: Int | ||
""" | ||
Total number of pages. | ||
""" | ||
pages: Int | ||
""" | ||
Number of items per page. | ||
""" | ||
pageSize: Int | ||
""" | ||
Total number of items. | ||
""" | ||
total: Int | ||
} | ||
|
||
type PickupPoints { | ||
""" | ||
List of pickup points of the given location. | ||
""" | ||
items: [Item] | ||
""" | ||
Pagination details. | ||
""" | ||
paging: Paging | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.