Files
marketplaces/src/app/shared/models/config/seller.model.ts

21 lines
714 B
TypeScript
Raw Normal View History

import { UUID } from '../../types/primitive.types';
/**
* Optional child scope beneath a marketplace (tenant). Mirrors `TenantConfig`'s
* shape at the fields a seller scope genuinely needs, not a copy of every
* tenant field - a seller is not a tenant (see ADR-011).
*
* The frontend never resolves which seller is active; the backend resolves it
* (same as tenant resolution, ADR-001) and includes it in the bootstrap
* response only when `modules.sellerManagement.enabled` is true and a seller
* scope actually applies to the current request.
*/
export interface SellerConfig {
id: UUID;
marketplaceId: UUID;
slug: string;
name: string;
defaultLocale: string;
supportedLocales: string[];
}