Skip to content

Release 1.0.0#114

Merged
andres15alvarez merged 102 commits intomainfrom
dev
May 29, 2025
Merged

Release 1.0.0#114
andres15alvarez merged 102 commits intomainfrom
dev

Conversation

@andres15alvarez
Copy link
Member

This pull request introduces several new features and enhancements, including the addition of an ActivePrinciple module, bulk operations for coupons and promos, and improvements to the branch module to support geospatial queries. It also includes general updates like versioning and configuration changes.

New Features and Enhancements:

Active Principle Module:

  • Added a new ActivePrinciple module, including its controller, service, entity, DTO, and database migration to manage active principles. This includes support for pagination, search, and Swagger documentation. (src/active-principle/active-principle.controller.ts, src/active-principle/active-principle.module.ts, src/active-principle/active-principle.service.ts, src/active-principle/dto/active-principle.dto.ts, src/active-principle/entities/active-principle.entity.ts, src/active-principle/migrations/1747107651171-add-active-principle-migration.ts) [1] [2] [3] [4] [5] [6]

Bulk Operations for Discounts:

  • Added bulk delete and bulk update endpoints for both coupons and promos, allowing administrators and branch administrators to manage them more efficiently. (src/discount/controllers/coupon.controller.ts, src/discount/controllers/promo.controller.ts) [1] [2]

Branch Module Enhancements:

  • Added a method in the BranchService to find the nearest branch based on latitude and longitude using geospatial queries. (src/branch/branch.service.ts, src/database/migrations/1747014730112-enable-postgis-extension-migration.ts) [1] [2]

General Updates:

Versioning and Configuration:

  • Updated the application version in package.json to 1.0.0 and added a new ADMIN_EMAIL configuration in .env.example. (package.json, .env.example) [1] [2]

Code Quality and Structure:

  • Refactored the BranchModule to use forwardRef for circular dependencies and exported the BranchService. (src/branch/branch.module.ts)

@andres15alvarez andres15alvarez self-assigned this May 29, 2025
@andres15alvarez andres15alvarez added the feature New feature or request label May 29, 2025
@andres15alvarez andres15alvarez merged commit 1ef73e5 into main May 29, 2025
2 checks passed
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.

3 participants