feat(order): Order and Authorization Model Improvements#215
Merged
Conversation
- Authorization rules have been added for several fields in the Order model, allowing access to store owners and public API keys for create and read operations. - New fields such as `customerEmail`, `subtotal`, `shippingCost`, `taxAmount`, `totalAmount`, and `currency` have been added, all with their respective authorization settings. - Obsolete files related to cart management and checkout processes have been removed, optimizing the code structure. - Imports in several files have been adjusted to use relative paths, improving code organization.
- Specific types (`ProductCreateInput`, `ProductUpdateInput`, `IProduct`) have been added to the product creation, update, and deletion functions, improving code clarity and security. - The use of `sortField` in product queries has been adjusted to ensure it is correctly used as the key for `IProduct`.
…nd optimized transformations - Improved typing in `cart-fetcher.ts` by forcing the `cart` type to `Cart`. - Added a new `userId` field to the `UserStoreCurrency` interface in `checkout-types.ts`. - Optimized collection transformation in `collection-query-manager.ts` using `collectionTransformer`. - Adjusted type imports in `page-fetcher.ts` and improved page transformation. - Updated the search function in `search-data-loader.ts` to use a more generic type for product transformations.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
customerEmail,subtotal,shippingCost,taxAmount,totalAmount, andcurrencyhave been added, all with their respective authorization settings.