UNPKG

zephyr-edge-contract

Version:

Edge contract for Zephyr

72 lines (71 loc) • 2.76 kB
"use strict"; var __webpack_require__ = {}; (()=>{ __webpack_require__.d = (exports1, getters, values)=>{ var define = (defs, kind)=>{ for(var key in defs)if (__webpack_require__.o(defs, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, { enumerable: true, [kind]: defs[key] }); }; define(getters, "get"); define(values, "value"); }; })(); (()=>{ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop); })(); (()=>{ __webpack_require__.r = (exports1)=>{ if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, { value: 'Module' }); Object.defineProperty(exports1, '__esModule', { value: true }); }; })(); var __webpack_exports__ = {}; __webpack_require__.r(__webpack_exports__); const ZEPHYR_API_ENDPOINT = ()=>process.env['ZE_API']?.length ? process.env['ZE_API'] : 'https://api.zephyr-cloud.io'; const ZE_API_ENDPOINT = ()=>process.env['ZE_API_GATE']?.length ? process.env['ZE_API_GATE'] : 'https://zeapi.zephyrcloud.app'; const ZE_API_ENDPOINT_HOST = ()=>new URL(ZE_API_ENDPOINT()).host; const ZE_IS_PREVIEW = ()=>'true' === process.env['ZE_IS_PREVIEW']; const ZE_ENV = ()=>process.env['ZE_ENV']; const ze_api_gateway = { logs: '/logs', build_stats: '/build-stats', authorize_link: '/authorize-link', resolve: '/resolve', application_config: '/application-config', user_info: '/user-info', websocket: '/websocket', get_access_token_by_server_token: 'get-access-token-by-server-token', ci_token_exchange: 'ci-token-exchange' }; __webpack_require__.d(__webpack_exports__, {}, { ZEPHYR_API_ENDPOINT: ZEPHYR_API_ENDPOINT, ZE_API_ENDPOINT: ZE_API_ENDPOINT, ZE_API_ENDPOINT_HOST: ZE_API_ENDPOINT_HOST, ZE_ENV: ZE_ENV, ZE_IS_PREVIEW: ZE_IS_PREVIEW, ze_api_gateway: ze_api_gateway }); exports.ZEPHYR_API_ENDPOINT = __webpack_exports__.ZEPHYR_API_ENDPOINT; exports.ZE_API_ENDPOINT = __webpack_exports__.ZE_API_ENDPOINT; exports.ZE_API_ENDPOINT_HOST = __webpack_exports__.ZE_API_ENDPOINT_HOST; exports.ZE_ENV = __webpack_exports__.ZE_ENV; exports.ZE_IS_PREVIEW = __webpack_exports__.ZE_IS_PREVIEW; exports.ze_api_gateway = __webpack_exports__.ze_api_gateway; for(var __rspack_i in __webpack_exports__)if (-1 === [ "ZEPHYR_API_ENDPOINT", "ZE_API_ENDPOINT", "ZE_API_ENDPOINT_HOST", "ZE_ENV", "ZE_IS_PREVIEW", "ze_api_gateway" ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i]; Object.defineProperty(exports, '__esModule', { value: true }); //# sourceMappingURL=get-api-contract.js.map