UNPKG

@warriorteam/zalo-personal

Version:

Unofficial Zalo Personal API for JavaScript - A powerful library for interacting with Zalo personal accounts with URL attachment support, auto-reply, product catalog, and business features

251 lines (192 loc) 7.04 kB
# Release Notes v1.3.0 ## 🎉 MILESTONE RELEASE - BUSINESS & E-COMMERCE FEATURES We're excited to announce **v1.3.0** - a major feature release that transforms your Zalo SDK into a complete business and e-commerce solution! --- ## 🚀 WHAT'S NEW ### 💼 ZALO BUSINESS FEATURES Complete auto-reply system for professional customer service: - **Smart Auto-Reply**: Configure automatic responses with different scopes - **Time-Based Scheduling**: Set specific active periods for auto-replies - **Content Management**: Easily update and manage reply content - **Multi-Target Support**: Different replies for different user groups **Perfect for:** - Customer service automation - After-hours responses - Welcome messages - FAQ automation ### 🛒 PRODUCT CATALOG SYSTEM Full e-commerce integration for Zalo businesses: - **Product Management**: Create, update, delete products easily - **Rich Media Support**: Upload up to 5 high-quality product photos - **Pricing & Currency**: Complete product information management - **Catalog Organization**: Organized product listings with pagination **Perfect for:** - Online stores - Product showcases - Service listings - Inventory management --- ## 📊 FEATURE BREAKDOWN ### ✨ New APIs (9 Total) #### Auto Reply APIs (4) ```typescript api.createAutoReply(options) // Create auto-reply rules api.deleteAutoReply(id) // Delete specific rules api.updateAutoReply(options) // Update existing rules api.getAutoReplyList() // Get all rules ``` #### Product Catalog APIs (5) ```typescript api.createProductCatalog(options) // Add new products api.deleteProductCatalog(options) // Remove products api.updateProductCatalog(options) // Update product info api.getProductCatalogList(options) // List products api.uploadProductPhoto(file) // Upload product images ``` ### 🎯 New Models & Types #### Business Models - `AutoReplyItem` - Complete auto-reply configuration - `ProductCatalogItem` - Full product information - `AutoReplyScope` - Reply targeting options - `BusinessCategory` - Business type classifications #### Enhanced TypeScript Support - Full type safety for all new features - IntelliSense support for better development experience - Comprehensive error handling --- ## 💡 USE CASES ### 🤖 Automated Customer Service ```typescript // Set up after-hours auto-reply await api.createAutoReply({ content: "Cảm ơn đã liên hệ! Chúng tôi sẽ trả lời vào giờ hành chính (8:00-17:00).", isEnable: true, startTime: getTodayAt(17), // 5 PM endTime: getTomorrowAt(8), // 8 AM next day scope: AutoReplyScope.Everyone }); ``` ### 🛍️ E-commerce Integration ```typescript // Add new product to catalog await api.createProductCatalog({ catalogId: "main_catalog", productName: "Áo Thun Premium", price: "299000", description: "Chất liệu cao cấp, form dáng chuẩn", product_photos: [ await api.uploadProductPhoto({ file: "front.jpg" }), await api.uploadProductPhoto({ file: "back.jpg" }) ] }); ``` ### 🎯 Targeted Marketing ```typescript // Special reply for strangers await api.createAutoReply({ content: "Chào mừng bạn! Đừng quên theo dõi chúng tôi để nhận ưu đãi nhé!", scope: AutoReplyScope.Stranger, // Only new contacts isEnable: true, startTime: Date.now(), endTime: Date.now() + 7 * 24 * 60 * 60 * 1000 // 1 week }); ``` --- ## 🔧 TECHNICAL IMPROVEMENTS ### ⚡ Performance - Optimized API response handling - Better memory management for large product catalogs - Enhanced error recovery mechanisms ### 🔒 Security - All new APIs use existing secure encryption - No breaking changes to authentication system - Maintained compatibility with current security standards ### 🛠️ Development Experience - Enhanced TypeScript definitions - Better error messages for debugging - Improved documentation with examples --- ## 📈 COMPATIBILITY ### ✅ Fully Backward Compatible - **Zero Breaking Changes** - All existing code works - **Drop-in Upgrade** - Simply update package version - **Same API Structure** - No learning curve for existing users ### 🔄 Migration Path ```bash # Simple upgrade npm install @warriorteam/zalo-personal@1.3.0 # Or with yarn yarn add @warriorteam/zalo-personal@1.3.0 ``` ### 📋 Requirements - **Node.js**: >= 18.0.0 (unchanged) - **TypeScript**: >= 4.5.0 (recommended) - **No new dependencies** - Same lightweight footprint --- ## 🎯 WHO SHOULD UPGRADE? ### ✅ Perfect for: - **Business Owners** - Automate customer service - **E-commerce Stores** - Sell products directly on Zalo - **Customer Support Teams** - Handle queries efficiently - **Marketing Teams** - Engage with customers automatically - **Developers** - Build business applications on Zalo ### ⚠️ Note for: - **Personal Users** - Existing features remain unchanged - **Basic Users** - No impact on current functionality - **Enterprise Users** - Enhanced capabilities for business use --- ## 🔮 WHAT'S NEXT ### Version 1.4.0 (Coming Soon) - [ ] Advanced Group Management - [ ] Poll & Voting Systems - [ ] Enhanced Friend Features - [ ] Improved Security Features ### Long-term Roadmap - [ ] Analytics & Reporting - [ ] Multi-language Support - [ ] Advanced Bot Framework - [ ] Webhook Integration --- ## 🙏 ACKNOWLEDGMENTS ### Special Thanks To: - **Community Contributors** - Feedback and feature requests - **Beta Testers** - Testing business features - **Business Users** - Real-world use case validation - **Development Team** - Hard work and dedication ### Contributors Welcome! We're always looking for contributions: - 🐛 Bug Reports - 💡 Feature Requests - 📖 Documentation Improvements - 🔧 Code Contributions --- ## 📞 SUPPORT & RESOURCES ### 🆘 Get Help - **Documentation**: [GitHub Wiki](https://github.com/redai-redon/zalo-personal-sdk/wiki) - **Issues**: [Report Bugs](https://github.com/redai-redon/zalo-personal-sdk/issues) - **Discussions**: [Community Forum](https://github.com/redai-redon/zalo-personal-sdk/discussions) ### 📚 Learn More - **Examples**: [Sample Code](https://github.com/redai-redon/zalo-personal-sdk/tree/main/examples) - **API Reference**: [Full Documentation](https://github.com/redai-redon/zalo-personal-sdk) - **Migration Guide**: [Upgrade Instructions](CHANGELOG.md#-migration-guide) --- ## 🚀 GET STARTED NOW! ```bash # Install the latest version npm install @warriorteam/zalo-personal@1.3.0 # Start building your Zalo business solution! import { Zalo, AutoReplyScope } from '@warriorteam/zalo-personal'; const zalo = new Zalo(); const api = await zalo.login(credentials); // Create your first auto-reply await api.createAutoReply({ content: "Welcome to our business! 🎉", scope: AutoReplyScope.Everyone, isEnable: true, startTime: Date.now(), endTime: Date.now() + 86400000 }); ``` --- **Version 1.3.0** - *Empowering Businesses on Zalo* 🚀 *Released on November 5, 2025*