@bizon/amazon-ids
Version:
Collection of Amazon identifiers
38 lines (36 loc) • 1.05 kB
TypeScript
interface Marketplace {
code: string;
id: string;
name: string;
region: string;
domain?: string;
advertisingApiDomain?: string;
imagesDomain?: string;
vendorId?: string;
sellerCentralDomain?: string;
vendorCentralDomain?: string;
currencyCode: string;
}
/**
* All the available marketplaces
*/
declare const marketplaces: Marketplace[];
/**
* Get a marketplace by its id
* @param id The marketplace's id
* @returns The marketplace
*/
declare function getMarketplaceById(id: string): Marketplace | undefined;
/**
* Get a marketplace by its code
* @param code The marketplace's code
* @returns The markerplace
*/
declare function getMarketplaceByCode(code: string): Marketplace | undefined;
/**
* Get a marketplace by its domain
* @param domain The marketplace's domain
* @returns The marketplace
*/
declare function getMarketplaceByDomain(domain: string): Marketplace | undefined;
export { type Marketplace, getMarketplaceByCode, getMarketplaceByDomain, getMarketplaceById, marketplaces };