UNPKG

@trycourier/courier-react-native

Version:

Inbox, Push Notifications, and Preferences for React Native

29 lines (28 loc) 952 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EU_COURIER_API_URLS = exports.DEFAULT_COURIER_API_URLS = void 0; exports.getCourierApiUrlsForRegion = getCourierApiUrlsForRegion; const DEFAULT_COURIER_API_URLS = { rest: 'https://api.courier.com', graphql: 'https://api.courier.com/client/q', inboxGraphql: 'https://inbox.courier.io/q', inboxWebSocket: 'wss://realtime.courier.io' }; exports.DEFAULT_COURIER_API_URLS = DEFAULT_COURIER_API_URLS; const EU_COURIER_API_URLS = { rest: 'https://api.eu.courier.com', graphql: 'https://api.eu.courier.com/client/q', inboxGraphql: 'https://inbox.eu.courier.io/q', inboxWebSocket: 'wss://realtime.eu.courier.io' }; exports.EU_COURIER_API_URLS = EU_COURIER_API_URLS; function getCourierApiUrlsForRegion(region) { return region === 'eu' ? { ...EU_COURIER_API_URLS } : { ...DEFAULT_COURIER_API_URLS }; } //# sourceMappingURL=CourierApiUrls.js.map