@pvh-afl/core
v1.2.3
Published
AFL Core - Shared services for multi-brand commerce platform
Readme
@pvh-afl/core
Core shared services and utilities for the AFL multi-brand commerce platform.
Installation
npm install @pvh-afl/corePeer Dependencies
This package requires the following peer dependencies:
npm install @nestjs/common @nestjs/core ioredis rxjsModules
CacheModule
Redis-based caching service for application data.
import { CacheModule } from '@pvh-afl/core';
@Module({
imports: [CacheModule],
})
export class AppModule {}ConfigModule
Brand configuration management with support for multi-brand setups.
import { ConfigModule, ConfigService } from '@pvh-afl/core';
@Module({
imports: [ConfigModule.forRoot({ brand: 'tommy' })],
})
export class AppModule {}IntegrationsModule
Unified integrations for commerce (Shopify), OMS (Omuni), and loyalty (Capillary) services.
import { IntegrationsModule, ShopifyService } from '@pvh-afl/core';
@Module({
imports: [IntegrationsModule],
})
export class AppModule {}Common Utilities
Shared utilities including logging, guards, and decorators.
import { Logger, TenantGuard, Brand } from '@pvh-afl/core';QueueModule
Background job processing with Bull/Redis.
import { QueueModule, QueueService } from '@pvh-afl/core';ThemeModule
Shopify theme content fetching and processing.
import { ThemeModule, ThemeContentService } from '@pvh-afl/core';API Reference
See the API documentation for detailed usage information.
Development
# Build the package
npm run build
# Run tests
npm test
# Run linting
npm run lintLicense
UNLICENSED - Private package
