Skip to content

feat(order): Order and Authorization Model Improvements#215

Merged
Stivenjs merged 3 commits into
mainfrom
core-engine
Aug 21, 2025
Merged

feat(order): Order and Authorization Model Improvements#215
Stivenjs merged 3 commits into
mainfrom
core-engine

Conversation

@Stivenjs
Copy link
Copy Markdown
Contributor

  • 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.

- 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.
@Stivenjs Stivenjs self-assigned this Aug 21, 2025
@Stivenjs Stivenjs added the enhancement New feature or request label Aug 21, 2025
- 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.
@Stivenjs Stivenjs merged commit 492cb1d into main Aug 21, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant