Skip to content

feature/add-search-query-presentations-promo-and-coupons#86

Merged
andres15alvarez merged 5 commits into
devfrom
feature/add-search-query-presentations-promo-and-coupons
Apr 27, 2025
Merged

feature/add-search-query-presentations-promo-and-coupons#86
andres15alvarez merged 5 commits into
devfrom
feature/add-search-query-presentations-promo-and-coupons

Conversation

@andres15alvarez
Copy link
Copy Markdown
Member

This pull request introduces enhancements to the filtering and pagination capabilities for the Coupon, Promo, and Presentation modules. The changes include adding query parameters for filtering by search text and date ranges, updating the respective DTOs and services to handle these filters, and improving the API documentation with new query parameter descriptions.

Enhancements to Filtering and Pagination:

Coupon Module:

  • Added q (search by code) and expirationBetween (filter by expiration date range) query parameters in CouponController. Updated API documentation to reflect these new filters. [1] [2]
  • Introduced CouponQueryDTO in coupon.dto.ts to extend PaginationQueryDTO and handle the new query parameters.
  • Updated CouponService to support filtering by q and expirationBetween using query builder logic.

Promo Module:

  • Added q (search by name) and expirationBetween (filter by expiration date range) query parameters in PromoController. Updated API documentation accordingly. [1] [2]
  • Introduced PromoQueryDTO in promo.dto.ts to extend PaginationQueryDTO and handle the new query parameters.
  • Updated PromoService to support filtering by q and expirationBetween using query builder logic.

Presentation Module:

  • Added q (filter by name) query parameter in PresentationController and updated API documentation.
  • Updated PresentationService to support filtering by q using repository find method with conditional where clause.

@andres15alvarez andres15alvarez added the feature New feature or request label Apr 27, 2025
@andres15alvarez andres15alvarez self-assigned this Apr 27, 2025
@andres15alvarez andres15alvarez merged commit 0957c7f into dev Apr 27, 2025
2 checks passed
@andres15alvarez andres15alvarez deleted the feature/add-search-query-presentations-promo-and-coupons branch April 27, 2025 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant