@everfur/sdk 0.16.1 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +141 -0
- package/dist/{Chat.d-D3ScVQ22.d.cts → Chat.d-BYY1U61e.d.cts} +1 -1
- package/dist/{Chat.d-CzI2228d.d.ts → Chat.d-uETscjrL.d.ts} +1 -1
- package/dist/{DepthViews.d-DVIydPLt.d.ts → DepthViews.d-B4SE5GUD.d.ts} +1 -1
- package/dist/{DepthViews.d-Cwbel5o4.d.ts → DepthViews.d-BsZ73mzL.d.ts} +1 -1
- package/dist/{DepthViews.d-BLx_ZTwa.d.cts → DepthViews.d-DL8MP_kA.d.cts} +1 -1
- package/dist/{DepthViews.d-6U4QqaW3.d.cts → DepthViews.d-D_Qp4glO.d.cts} +1 -1
- package/dist/{RecordsPage.d-Do7T8Fns.d.cts → RecordsPage.d-CYotk2R9.d.cts} +1 -1
- package/dist/{RecordsPage.d-Bwalb0wU.d.ts → RecordsPage.d-D4gP4leq.d.ts} +1 -1
- package/dist/animations/index.d.cts +3 -3
- package/dist/animations/index.d.ts +3 -3
- package/dist/{appStateLifecycle.d-Bd-rNy6K.d.ts → appStateLifecycle.d-CXJzBS3c.d.ts} +3 -3
- package/dist/{appStateLifecycle.d-_mh4CEAq.d.cts → appStateLifecycle.d-DJXdDOJY.d.cts} +3 -3
- package/dist/{attachments.d-GlO5UP7H.d.cts → attachments.d-B8kOCb6q.d.cts} +5 -5
- package/dist/{attachments.d-BiBGBE4o.d.ts → attachments.d-BTIGzXWD.d.ts} +5 -5
- package/dist/{attachments.d-CyB8hzDo.d.ts → attachments.d-BgatKf7d.d.ts} +2 -2
- package/dist/{attachments.d-Y-qvSHVU.d.cts → attachments.d-C61URT8r.d.cts} +2 -2
- package/dist/{bookingCopy.d-BIaCiRuW.d.cts → bookingCopy.d-B-bSYgqS.d.cts} +2 -2
- package/dist/{bookingCopy.d-DgWvNKD5.d.ts → bookingCopy.d-JQW2SLM-.d.ts} +2 -2
- package/dist/{casesRepository.d-BW8DTYeN.d.ts → casesRepository.d-CHEjzT4h.d.ts} +1 -1
- package/dist/{casesRepository.d-_0AO2YrL.d.cts → casesRepository.d-CVG2EXcg.d.cts} +1 -1
- package/dist/chat/index.d.cts +10 -10
- package/dist/chat/index.d.ts +10 -10
- package/dist/chat/lite/index.d.cts +10 -10
- package/dist/chat/lite/index.d.ts +10 -10
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.d.cts +6 -6
- package/dist/client/index.d.ts +6 -6
- package/dist/client/index.js +1 -1
- package/dist/{clinicBatch.d-BcuSaOkv.d.cts → clinicBatch.d-DdlFy4pD.d.cts} +2 -2
- package/dist/{clinicBatch.d-BXwATY3-.d.ts → clinicBatch.d-oNwH_dbI.d.ts} +2 -2
- package/dist/{config.d-D1xcxALX.d.cts → config.d-Cy_hJBJG.d.cts} +1 -1
- package/dist/{config.d-jTVsAeky.d.ts → config.d-DopRLD4f.d.ts} +1 -1
- package/dist/consent/index.d.cts +5 -5
- package/dist/consent/index.d.ts +5 -5
- package/dist/{context.d-goZeZO2I.d.ts → context.d-Ban-Hhqu.d.ts} +5 -5
- package/dist/{context.d-C3x-z665.d.cts → context.d-C42juGn6.d.cts} +5 -5
- package/dist/{copy.d-DPwFY4r5.d.cts → copy.d-BTS5l6Ri.d.cts} +2 -2
- package/dist/{copy.d-yfJv7fl6.d.ts → copy.d-qdbygul9.d.ts} +2 -2
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.cts +13 -13
- package/dist/core/index.d.ts +13 -13
- package/dist/core/index.js +1 -1
- package/dist/{depth.d-SJzknw_P.d.ts → depth.d-BGkHm2Se.d.ts} +2 -2
- package/dist/{depth.d-e_8_icip.d.cts → depth.d-BfVrhq9o.d.cts} +2 -2
- package/dist/{entitlementRepository.d-BNgZhwoE.d.ts → entitlementRepository.d-CjwqCyhS.d.ts} +2 -2
- package/dist/{entitlementRepository.d-C_LdzINM.d.cts → entitlementRepository.d-npT7L_7_.d.cts} +2 -2
- package/dist/{focus.d-CXpIkIuU.d.cts → focus.d-DS7Ze1Pp.d.cts} +2 -2
- package/dist/{focus.d-DzIgOqNB.d.ts → focus.d-S0nq_k1A.d.ts} +2 -2
- package/dist/health-plan/index.cjs +1 -1
- package/dist/health-plan/index.d.cts +9 -9
- package/dist/health-plan/index.d.ts +9 -9
- package/dist/health-plan/index.js +1 -1
- package/dist/{idempotency.d-0biUa_Vw.d.cts → idempotency.d-COIrwuCb.d.ts} +334 -3
- package/dist/{idempotency.d-DcqIqmf9.d.ts → idempotency.d-gfiN4Qnp.d.cts} +334 -3
- package/dist/{identity.d-BEJcHY-5.d.ts → identity.d-B3mFvvRq.d.ts} +1 -1
- package/dist/{identity.d-COcNGuCJ.d.cts → identity.d-D76vXtkJ.d.cts} +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.js +3 -3
- package/dist/{introEvents.d-D8N9bbGO.d.cts → introEvents.d-3FLEemX3.d.cts} +1 -1
- package/dist/{introEvents.d-GCdyQyUG.d.ts → introEvents.d-BYnr37bd.d.ts} +1 -1
- package/dist/notifications/index.d.cts +4 -4
- package/dist/notifications/index.d.ts +4 -4
- package/dist/{optInView.d-CY2IueSZ.d.ts → optInView.d-BqFMcum4.d.ts} +2 -2
- package/dist/{optInView.d-DVuuWDRw.d.cts → optInView.d-DXRUGDiD.d.cts} +2 -2
- package/dist/{parse.d--ztmWIIP.d.ts → parse.d-CY22hFxb.d.ts} +1 -1
- package/dist/{parse.d-B-WrkW2C.d.cts → parse.d-rvA_aRSO.d.cts} +1 -1
- package/dist/{pets.d-DwsImaHU.d.ts → pets.d-Cicz-aIO.d.ts} +1 -1
- package/dist/{pets.d-BSW0oEYx.d.cts → pets.d-RoHTZsaV.d.cts} +1 -1
- package/dist/{petsRepository.d-BQfWC3d4.d.cts → petsRepository.d-BxMyt6Aj.d.cts} +1 -1
- package/dist/{petsRepository.d-BudLFHVe.d.ts → petsRepository.d-DtAZf_Ja.d.ts} +1 -1
- package/dist/{ports.d-DzPbmiDT.d.cts → ports.d-D7cjFUoL.d.cts} +4 -4
- package/dist/{ports.d-B6kDPKF7.d.ts → ports.d-DrgKa73F.d.ts} +4 -4
- package/dist/records/depth/index.d.cts +9 -9
- package/dist/records/depth/index.d.ts +9 -9
- package/dist/records/index.cjs +1 -1
- package/dist/records/index.d.cts +10 -10
- package/dist/records/index.d.ts +10 -10
- package/dist/records/index.js +1 -1
- package/dist/{requestFunnel.d-BPsCHJWf.d.ts → requestFunnel.d-B5y7Py8Z.d.ts} +2 -2
- package/dist/{requestFunnel.d-BdpL7gwg.d.cts → requestFunnel.d-BdQf53zs.d.cts} +2 -2
- package/dist/{runtimeTypes.d-C_Pcxn-n.d.ts → runtimeTypes.d-D5EDgS3Y.d.ts} +4 -4
- package/dist/{runtimeTypes.d-Cfq3IrZG.d.cts → runtimeTypes.d-r4Q5vASZ.d.cts} +4 -4
- package/dist/{screenProps.d-DGrfO17l.d.ts → screenProps.d-KLCrP43b.d.ts} +1 -1
- package/dist/{screenProps.d-BJMn1kTR.d.cts → screenProps.d-v4a4kzxA.d.cts} +1 -1
- package/dist/server/events/index.cjs +2 -2
- package/dist/server/events/index.d.cts +29 -5
- package/dist/server/events/index.d.ts +29 -5
- package/dist/server/events/index.js +2 -2
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.d.cts +3 -3
- package/dist/server/index.d.ts +3 -3
- package/dist/server/index.js +1 -1
- package/dist/shop/index.cjs +212 -163
- package/dist/shop/index.d.cts +38 -4
- package/dist/shop/index.d.ts +38 -4
- package/dist/shop/index.js +214 -165
- package/dist/shop/orders-v2/index.cjs +127 -0
- package/dist/shop/orders-v2/index.d.cts +7 -0
- package/dist/shop/orders-v2/index.d.ts +7 -0
- package/dist/shop/orders-v2/index.js +127 -0
- package/dist/tabs/index.d.cts +6 -6
- package/dist/tabs/index.d.ts +6 -6
- package/dist/televet/booking/index.d.cts +6 -6
- package/dist/televet/booking/index.d.ts +6 -6
- package/dist/testing/index.d.cts +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/rn/index.d.cts +7 -7
- package/dist/testing/rn/index.d.ts +7 -7
- package/dist/testing/web/index.d.cts +7 -7
- package/dist/testing/web/index.d.ts +7 -7
- package/dist/texting/index.d.cts +5 -5
- package/dist/texting/index.d.ts +5 -5
- package/dist/{threadOptions.d-BnhE7T8Y.d.ts → threadOptions.d-Crh_LiDe.d.ts} +2 -2
- package/dist/{threadOptions.d-B8HTJa9A.d.cts → threadOptions.d-EFJaNBP1.d.cts} +2 -2
- package/dist/{timelineRows.d-BTcUdNeI.d.cts → timelineRows.d-6-Cw8xGd.d.cts} +1 -1
- package/dist/{timelineRows.d-kmBms1W5.d.ts → timelineRows.d-DpSis9HR.d.ts} +1 -1
- package/dist/{useHealthPlanSubscription.d-BzNaVl89.d.ts → useHealthPlanSubscription.d-DD30EkUR.d.ts} +2 -2
- package/dist/{useHealthPlanSubscription.d-B_cth_iF.d.cts → useHealthPlanSubscription.d-DWrzUXf4.d.cts} +2 -2
- package/dist/{usePresentation.d-BkAMOfb5.d.cts → usePresentation.d-C8rqY56C.d.cts} +1 -1
- package/dist/{usePresentation.d-B7Uf44Ax.d.ts → usePresentation.d-CRG3Gaaq.d.ts} +1 -1
- package/dist/{useRecordsDepth.d-BxHpKipf.d.cts → useRecordsDepth.d-BYk7m7gF.d.cts} +1 -1
- package/dist/{useRecordsDepth.d-BHkZi0tM.d.ts → useRecordsDepth.d-DlRda5jp.d.ts} +1 -1
- package/dist/view.d-B31M8rCG.d.cts +11 -0
- package/dist/view.d-B31M8rCG.d.ts +11 -0
- package/dist/{view.d-CoDbnv0f.d.cts → view.d-CLpEHKOp.d.cts} +3 -3
- package/dist/{view.d-2BYMRnWj.d.ts → view.d-DuIXHr08.d.ts} +3 -3
- package/dist/web/consent/index.d.cts +5 -5
- package/dist/web/consent/index.d.ts +5 -5
- package/dist/web/health-plan/index.cjs +1 -1
- package/dist/web/health-plan/index.d.cts +11 -11
- package/dist/web/health-plan/index.d.ts +11 -11
- package/dist/web/health-plan/index.js +1 -1
- package/dist/web/index.cjs +1 -1
- package/dist/web/index.d.cts +22 -22
- package/dist/web/index.d.ts +22 -22
- package/dist/web/index.js +1 -1
- package/dist/web/intro/index.d.cts +6 -6
- package/dist/web/intro/index.d.ts +6 -6
- package/dist/web/notifications/index.d.cts +3 -3
- package/dist/web/notifications/index.d.ts +3 -3
- package/dist/web/records/depth/index.d.cts +9 -9
- package/dist/web/records/depth/index.d.ts +9 -9
- package/dist/web/records/index.d.cts +11 -11
- package/dist/web/records/index.d.ts +11 -11
- package/dist/web/records-sheet/index.cjs +1 -1
- package/dist/web/records-sheet/index.js +1 -1
- package/dist/web/shop/index.cjs +194 -50
- package/dist/web/shop/index.d.cts +32 -4
- package/dist/web/shop/index.d.ts +32 -4
- package/dist/web/shop/index.js +194 -50
- package/dist/web/shop/orders-v2/index.cjs +124 -0
- package/dist/web/shop/orders-v2/index.d.cts +14 -0
- package/dist/web/shop/orders-v2/index.d.ts +14 -0
- package/dist/web/shop/orders-v2/index.js +124 -0
- package/dist/web/televet/booking/index.d.cts +6 -6
- package/dist/web/televet/booking/index.d.ts +6 -6
- package/dist/web/texting/index.d.cts +5 -5
- package/dist/web/texting/index.d.ts +5 -5
- package/package.json +29 -1
- package/shop/orders-v2/package.json +8 -0
- package/web/shop/orders-v2/native-blocked.cjs +12 -0
- package/web/shop/orders-v2/package.json +8 -0
package/dist/server/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
|
|
2
2
|
import { E as EverfurResult } from '../EverfurResult.d-BFH-3s6E.cjs';
|
|
3
|
-
import { j as FetchLike } from '../config.d-
|
|
4
|
-
import { a as PartnerServerClient } from '../pets.d-
|
|
5
|
-
export { b as PartnerPet, P as PartnerPetProfile, c as PartnerPetTarget, d as PartnerPetWithProfile, e as deletePartnerPet, g as getPartnerPet, u as updatePartnerPet, f as upsertPartnerPet } from '../pets.d-
|
|
3
|
+
import { j as FetchLike } from '../config.d-Cy_hJBJG.cjs';
|
|
4
|
+
import { a as PartnerServerClient } from '../pets.d-RoHTZsaV.cjs';
|
|
5
|
+
export { b as PartnerPet, P as PartnerPetProfile, c as PartnerPetTarget, d as PartnerPetWithProfile, e as deletePartnerPet, g as getPartnerPet, u as updatePartnerPet, f as upsertPartnerPet } from '../pets.d-RoHTZsaV.cjs';
|
|
6
6
|
export { b as PetActivityLevel, c as PetAllergy, d as PetAllergySeverity, e as PetBirthDatePrecision, f as PetCondition, a as PetHealthProfile, P as PetHealthProfileInput, g as PetIndoorOutdoor, h as PetMedication, i as PetSex } from '../profile.d-CSs1wlXT.cjs';
|
|
7
7
|
export { C as CanonicalPetSpecies, c as canonicalPetSpecies } from '../species.d-BXAIMh7I.cjs';
|
|
8
8
|
import '../EverfurError.d-8NHtlgzA.cjs';
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
|
|
2
2
|
import { E as EverfurResult } from '../EverfurResult.d-D_-254ZY.js';
|
|
3
|
-
import { j as FetchLike } from '../config.d-
|
|
4
|
-
import { a as PartnerServerClient } from '../pets.d-
|
|
5
|
-
export { b as PartnerPet, P as PartnerPetProfile, c as PartnerPetTarget, d as PartnerPetWithProfile, e as deletePartnerPet, g as getPartnerPet, u as updatePartnerPet, f as upsertPartnerPet } from '../pets.d-
|
|
3
|
+
import { j as FetchLike } from '../config.d-DopRLD4f.js';
|
|
4
|
+
import { a as PartnerServerClient } from '../pets.d-Cicz-aIO.js';
|
|
5
|
+
export { b as PartnerPet, P as PartnerPetProfile, c as PartnerPetTarget, d as PartnerPetWithProfile, e as deletePartnerPet, g as getPartnerPet, u as updatePartnerPet, f as upsertPartnerPet } from '../pets.d-Cicz-aIO.js';
|
|
6
6
|
export { b as PetActivityLevel, c as PetAllergy, d as PetAllergySeverity, e as PetBirthDatePrecision, f as PetCondition, a as PetHealthProfile, P as PetHealthProfileInput, g as PetIndoorOutdoor, h as PetMedication, i as PetSex } from '../profile.d-CSs1wlXT.js';
|
|
7
7
|
export { C as CanonicalPetSpecies, c as canonicalPetSpecies } from '../species.d-BXAIMh7I.js';
|
|
8
8
|
import '../EverfurError.d-8NHtlgzA.js';
|
package/dist/server/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
|
|
2
2
|
function ok(value,warning){/* @__PURE__ */
|
|
3
3
|
return Object.freeze({ok:true,value:value})}function err(error){/* @__PURE__ */
|
|
4
|
-
return Object.freeze({ok:false,error:error})}var EverfurConfigError=class _EverfurConfigError extends Error{constructor(kind,message){super(message),this.name="EverfurConfigError",this.kind=kind,Object.setPrototypeOf(this,_EverfurConfigError.prototype)}};var ABSOLUTE_URL=/^([A-Za-z][A-Za-z0-9+.-]*):\/\/([^/?#]*)/;var SDK_VERSION="0.
|
|
4
|
+
return Object.freeze({ok:false,error:error})}var EverfurConfigError=class _EverfurConfigError extends Error{constructor(kind,message){super(message),this.name="EverfurConfigError",this.kind=kind,Object.setPrototypeOf(this,_EverfurConfigError.prototype)}};var ABSOLUTE_URL=/^([A-Za-z][A-Za-z0-9+.-]*):\/\/([^/?#]*)/;var SDK_VERSION="0.17.0",SDK_PLATFORM="react-native",DEFAULT_CONTRACT_VERSION="2026-09-19",ENV_API_BASE_URL="EVERFUR_API_BASE_URL";function configFailure(reason,message){/* @__PURE__ */
|
|
5
5
|
return Object.freeze({ok:false,failure:/* @__PURE__ */Object.freeze({reason:reason,message:message})})}function tryResolveApiBaseUrl(apiBaseUrl){let explicit=apiBaseUrl?.trim(),candidate=explicit&&explicit.length>0?explicit:readEnv(ENV_API_BASE_URL);return candidate?normalizeBaseUrl(candidate):configFailure("missing-api-base-url",`apiBaseUrl is required: pass config.apiBaseUrl or set ${ENV_API_BASE_URL}. The SDK never ships a hardcoded host.`)}function resolveApiBaseUrl(apiBaseUrl){let outcome=tryResolveApiBaseUrl(apiBaseUrl);if(!outcome.ok)throw new EverfurConfigError("invalid-argument",outcome.failure.message);return outcome.value}function buildBaseHeaders(cfg){return{"X-Everfur-SDK-Version":cfg.sdkVersion,"X-Everfur-SDK-Platform":cfg.platform,"X-Everfur-Contract":cfg.contractVersion}}function hostOf(authority){return authority.slice(authority.lastIndexOf("@")+1).replace(/:\d+$/,"").toLowerCase()}function isPrintableHost(host){return host.length===0||host.includes("@")?false:host.startsWith("[")&&host.endsWith("]")?true:!host.includes(":")}function canEchoOrigin(rawTrimmed,host){let schemeEnd=rawTrimmed.indexOf("://");return schemeEnd<0||rawTrimmed.slice(schemeEnd+3).includes("@")?false:isPrintableHost(host)}function safeOrigin(scheme,host){return`${scheme}://${host}`}function normalizeBaseUrl(raw){let trimmed=raw.trim(),match=ABSOLUTE_URL.exec(trimmed);if(match===null||match[2]===void 0||match[2].length===0)return configFailure("malformed-api-base-url","apiBaseUrl is not a valid absolute URL");let scheme=(match[1]??"").toLowerCase(),host=hostOf(match[2]);if(host.length===0)return configFailure("malformed-api-base-url","apiBaseUrl is not a valid absolute URL");let shown=canEchoOrigin(trimmed,host)?`: ${safeOrigin(scheme,host)}`:"";if(scheme!=="https"){if(!(scheme==="http"&&isLoopbackHost(host)))return scheme==="http"?configFailure("insecure-api-base-url",`apiBaseUrl must use https (cleartext http is only allowed for localhost)${shown}`):configFailure("unsupported-api-base-url-scheme",`apiBaseUrl must be http(s)${shown}`)}let value=trimmed.endsWith("/")?trimmed.slice(0,-1):trimmed;/* @__PURE__ */
|
|
6
6
|
return Object.freeze({ok:true,value:value})}function isLoopbackHost(hostname){let host=hostname.toLowerCase();return host==="localhost"||host==="127.0.0.1"||host==="[::1]"||host==="::1"}function readEnv(name){let value=globalThis.process?.env?.[name];return typeof value=="string"&&value.trim().length>0?value.trim():void 0}var DAILY_QUOTA_WIRE_CODE="DAILY_QUOTA_EXCEEDED",THROTTLES=/* @__PURE__ */new Set(["THROTTLINGEXCEPTION","RATELIMITED","TOOMANYREQUESTS"]);function foldDailyQuotaWireCode(code,body){if(!THROTTLES.has(code.toUpperCase().replace(/[^A-Z0-9]/g,"")))return code;let b=body,limit=b?.daily_limit??b?.error?.daily_limit;return typeof limit=="number"&&Number.isFinite(limit)?DAILY_QUOTA_WIRE_CODE:code}var CONTRACT_RETRYABILITY=/* @__PURE__ */Object.freeze([
|
|
7
7
|
/* @__PURE__ */Object.freeze({wireCode:"AccessDeniedException",envelope:"http_envelope",httpStatus:403,retryable:false}),
|