UNPKG

@trycourier/courier-react-native

Version:

Inbox, Push Notifications, and Preferences for React Native

25 lines (23 loc) 738 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BrandClient = void 0; var _Modules = require("../Modules"); class BrandClient { constructor(clientId) { this.clientId = clientId; } /** * Retrieves brand information for a specific brand ID. * @param props - The properties for getting the brand. * @param props.brandId - The ID of the brand to retrieve. * @returns A promise that resolves with the CourierBrandResponse containing brand information. */ async getBrand(props) { const json = await _Modules.Modules.Client.getBrand(this.clientId, props.brandId); return JSON.parse(json); } } exports.BrandClient = BrandClient; //# sourceMappingURL=BrandClient.js.map