@everfur/sdk 1.5.1 → 1.5.3

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.
Files changed (101) hide show
  1. package/dist/{bookingCopy.d-BL2-URcv.d.ts → bookingCopy.d-Bn8bdo89.d.ts} +4 -4
  2. package/dist/{bookingCopy.d-Dfew1pjY.d.cts → bookingCopy.d-Dg7bPM-U.d.cts} +4 -4
  3. package/dist/care/index.cjs +2 -2
  4. package/dist/care/index.js +2 -2
  5. package/dist/chat/index.cjs +235 -234
  6. package/dist/chat/index.js +311 -310
  7. package/dist/chat/lite/index.cjs +339 -338
  8. package/dist/chat/lite/index.js +314 -313
  9. package/dist/{chunk-ZYHPCQVM.js → chunk-CFEHTNKX.js} +1 -1
  10. package/dist/{chunk-NBAOR5TJ.js → chunk-OU5RMGKD.js} +21 -21
  11. package/dist/{chunk-RD6ZGYEJ.js → chunk-XGF2HYNN.js} +16 -16
  12. package/dist/{chunk-IO4CGYHT.js → chunk-ZGL2GEEI.js} +1 -1
  13. package/dist/client/index.cjs +1 -1
  14. package/dist/client/index.d.cts +1 -1
  15. package/dist/client/index.d.ts +1 -1
  16. package/dist/client/index.js +1 -1
  17. package/dist/core/index.cjs +31 -31
  18. package/dist/core/index.js +31 -31
  19. package/dist/health-plan/index.cjs +266 -266
  20. package/dist/health-plan/index.js +443 -443
  21. package/dist/{idempotency.d-dOFfV91-.d.ts → idempotency.d-CbB07p64.d.ts} +10 -8
  22. package/dist/{idempotency.d-CFVMhWcv.d.cts → idempotency.d-DrxKLPPe.d.cts} +10 -8
  23. package/dist/{inbox.d-DJ9xgU1Z.d.ts → inbox.d-B2JXK0uI.d.ts} +1 -1
  24. package/dist/{inbox.d-CPcMMz-Y.d.cts → inbox.d-CwA1ogzV.d.cts} +1 -1
  25. package/dist/index.cjs +257 -256
  26. package/dist/index.js +364 -363
  27. package/dist/notifications/inbox/index.cjs +28 -28
  28. package/dist/notifications/inbox/index.d.cts +5 -5
  29. package/dist/notifications/inbox/index.d.ts +5 -5
  30. package/dist/notifications/inbox/index.js +53 -53
  31. package/dist/notifications/index.cjs +1 -1
  32. package/dist/notifications/index.d.cts +3 -3
  33. package/dist/notifications/index.d.ts +3 -3
  34. package/dist/notifications/index.js +1 -1
  35. package/dist/{optInView.d-ByDJMrMv.d.cts → optInView.d-ChJyJMBA.d.cts} +4 -1
  36. package/dist/{optInView.d-DVshLxbD.d.ts → optInView.d-Cps7aLQN.d.ts} +4 -1
  37. package/dist/{parse.d-Cj3fURer.d.ts → parse.d-QjB2LJCd.d.ts} +19 -10
  38. package/dist/{parse.d-cH7ZmMeo.d.cts → parse.d-_Ttu2h5g.d.cts} +19 -10
  39. package/dist/records/depth/index.cjs +80 -80
  40. package/dist/records/depth/index.js +115 -115
  41. package/dist/records/index.cjs +653 -653
  42. package/dist/records/index.js +1074 -1074
  43. package/dist/{route.d-DSYEd2MR.d.ts → route.d-DtuKY5dM.d.ts} +1 -1
  44. package/dist/{route.d-DCzQh4ix.d.cts → route.d-Nt-r-7IO.d.cts} +1 -1
  45. package/dist/server/events/index.cjs +1 -1
  46. package/dist/server/events/index.js +1 -1
  47. package/dist/server/index.cjs +1 -1
  48. package/dist/server/index.js +1 -1
  49. package/dist/shop/index.cjs +188 -188
  50. package/dist/shop/index.d.cts +2 -2
  51. package/dist/shop/index.d.ts +2 -2
  52. package/dist/shop/index.js +386 -386
  53. package/dist/shop/orders-v2/index.cjs +72 -72
  54. package/dist/shop/orders-v2/index.js +126 -126
  55. package/dist/tabs/index.cjs +114 -111
  56. package/dist/tabs/index.d.cts +18 -5
  57. package/dist/tabs/index.d.ts +18 -5
  58. package/dist/tabs/index.js +191 -188
  59. package/dist/televet/booking/index.cjs +214 -211
  60. package/dist/televet/booking/index.d.cts +2 -2
  61. package/dist/televet/booking/index.d.ts +2 -2
  62. package/dist/televet/booking/index.js +344 -341
  63. package/dist/televet/call/index.cjs +53 -53
  64. package/dist/televet/call/index.js +67 -67
  65. package/dist/texting/index.cjs +8 -8
  66. package/dist/texting/index.d.cts +2 -2
  67. package/dist/texting/index.d.ts +2 -2
  68. package/dist/texting/index.js +8 -8
  69. package/dist/{useInboxUnread.d-CXiaR3BZ.d.ts → useInboxUnread.d-0DrQPn7J.d.ts} +1 -1
  70. package/dist/{useInboxUnread.d-DERpMelw.d.cts → useInboxUnread.d-CRcOTkmu.d.cts} +1 -1
  71. package/dist/web/health-plan/index.cjs +1 -1
  72. package/dist/web/health-plan/index.js +1 -1
  73. package/dist/web/inbox/index.cjs +1 -1
  74. package/dist/web/inbox/index.d.cts +6 -6
  75. package/dist/web/inbox/index.d.ts +6 -6
  76. package/dist/web/inbox/index.js +1 -1
  77. package/dist/web/index.cjs +184 -184
  78. package/dist/web/index.js +181 -181
  79. package/dist/web/notifications/index.cjs +1 -1
  80. package/dist/web/notifications/index.d.cts +2 -2
  81. package/dist/web/notifications/index.d.ts +2 -2
  82. package/dist/web/notifications/index.js +1 -1
  83. package/dist/web/records-sheet/index.cjs +1 -1
  84. package/dist/web/records-sheet/index.js +1 -1
  85. package/dist/web/shop/index.cjs +2 -2
  86. package/dist/web/shop/index.d.cts +2 -2
  87. package/dist/web/shop/index.d.ts +2 -2
  88. package/dist/web/shop/index.js +3 -3
  89. package/dist/web/televet/booking/index.cjs +185 -185
  90. package/dist/web/televet/booking/index.d.cts +2 -2
  91. package/dist/web/televet/booking/index.d.ts +2 -2
  92. package/dist/web/televet/booking/index.js +185 -185
  93. package/dist/web/televet/call/index.cjs +1 -1
  94. package/dist/web/televet/call/index.js +1 -1
  95. package/dist/web/texting/index.cjs +3 -4
  96. package/dist/web/texting/index.d.cts +2 -2
  97. package/dist/web/texting/index.d.ts +2 -2
  98. package/dist/web/texting/index.js +3 -4
  99. package/dist/web/ui/index.cjs +1 -1
  100. package/dist/web/ui/index.js +33 -33
  101. package/package.json +1 -1
@@ -152,7 +152,8 @@ type ShopPaymentStepResult = {
152
152
  readonly ok: true;
153
153
  }
154
154
  /**
155
- * The step did not finish. `message` is Stripe's own line, shown as is. `closed` is true when the customer left the
155
+ * The step did not finish. `message` is Stripe's own customer line (a card or a form error), shown as is; any other
156
+ * Stripe error (an API, request or setup error) is written for developers and is never carried here. `closed` is true when the customer left the
156
157
  * step themselves (closed the in-app browser or cancelled the hosted page): not a failure, nothing was refused, and
157
158
  * the shop says so with its own line (`cardStepClosed`) instead of `cardStepFailed`.
158
159
  */
@@ -175,14 +176,17 @@ interface ShopPaymentsPort {
175
176
  */
176
177
  handleNextAction(clientSecret: string, context?: ShopPayerActionContext): Promise<ShopPaymentStepResult>;
177
178
  }
179
+ /** A Stripe.js error, as Stripe.js declares it (structural). `type` says who its `message` is written for. */
180
+ interface StripeJsErrorLike {
181
+ readonly type?: string;
182
+ readonly message?: string;
183
+ }
178
184
  /** The two Stripe.js calls the shop uses, as Stripe.js declares them (structural; no Stripe import). */
179
185
  interface StripeJsLike {
180
186
  handleNextAction(options: {
181
187
  clientSecret: string;
182
188
  }): Promise<{
183
- error?: {
184
- message?: string;
185
- };
189
+ error?: StripeJsErrorLike;
186
190
  }>;
187
191
  confirmSetup(options: {
188
192
  clientSecret: string;
@@ -190,9 +194,7 @@ interface StripeJsLike {
190
194
  confirmParams?: Record<string, unknown>;
191
195
  redirect?: 'if_required' | 'always';
192
196
  }): Promise<{
193
- error?: {
194
- message?: string;
195
- };
197
+ error?: StripeJsErrorLike;
196
198
  }>;
197
199
  }
198
200
  interface StripeJsPaymentsOptions {
@@ -773,4 +775,4 @@ type ShopCardHandoff = () => Promise<ShopPaymentStepResult>;
773
775
 
774
776
  declare function newIdempotencyKey(): string;
775
777
 
776
- export { newIdempotencyKey as A, shopCopy as B, shopOrdersV2Copy as C, shopV3Copy as D, type ShopPayerActionContext as E, type OmsClient as O, type ShopPet as S, UNAVAILABLE_PACKAGE_SOURCE as U, type ShopPaymentsPort as a, type ShopPackageSource as b, type ShopCopy as c, type ShopV3Copy as d, type ShopRoute as e, type ShopCardHandoff as f, type ShopCardReturn as g, type ShopProfileName as h, type ShopOrdersV2Copy as i, type OmsClientConfig as j, type OmsConsumerAuth as k, type OmsGetToken as l, SHOP_COPY as m, SHOP_COPY_PLACEHOLDERS as n, SHOP_ORDERS_V2_COPY as o, SHOP_V3_COPY as p, SHOP_V3_COPY_PLACEHOLDERS as q, type ShopPackage as r, type ShopPackageLine as s, type ShopPaymentStepResult as t, type ShopTabName as u, type StripeJsLike as v, type StripeJsPaymentsOptions as w, createOmsClient as x, createOmsPackageSource as y, createStripeJsPayments as z };
778
+ export { createStripeJsPayments as A, newIdempotencyKey as B, shopCopy as C, shopOrdersV2Copy as D, shopV3Copy as E, type ShopPayerActionContext as F, type OmsClient as O, type ShopPet as S, UNAVAILABLE_PACKAGE_SOURCE as U, type ShopPaymentsPort as a, type ShopPackageSource as b, type ShopCopy as c, type ShopV3Copy as d, type ShopRoute as e, type ShopCardHandoff as f, type ShopCardReturn as g, type ShopProfileName as h, type ShopOrdersV2Copy as i, type OmsClientConfig as j, type OmsConsumerAuth as k, type OmsGetToken as l, SHOP_COPY as m, SHOP_COPY_PLACEHOLDERS as n, SHOP_ORDERS_V2_COPY as o, SHOP_V3_COPY as p, SHOP_V3_COPY_PLACEHOLDERS as q, type ShopPackage as r, type ShopPackageLine as s, type ShopPaymentStepResult as t, type ShopTabName as u, type StripeJsErrorLike as v, type StripeJsLike as w, type StripeJsPaymentsOptions as x, createOmsClient as y, createOmsPackageSource as z };
@@ -152,7 +152,8 @@ type ShopPaymentStepResult = {
152
152
  readonly ok: true;
153
153
  }
154
154
  /**
155
- * The step did not finish. `message` is Stripe's own line, shown as is. `closed` is true when the customer left the
155
+ * The step did not finish. `message` is Stripe's own customer line (a card or a form error), shown as is; any other
156
+ * Stripe error (an API, request or setup error) is written for developers and is never carried here. `closed` is true when the customer left the
156
157
  * step themselves (closed the in-app browser or cancelled the hosted page): not a failure, nothing was refused, and
157
158
  * the shop says so with its own line (`cardStepClosed`) instead of `cardStepFailed`.
158
159
  */
@@ -175,14 +176,17 @@ interface ShopPaymentsPort {
175
176
  */
176
177
  handleNextAction(clientSecret: string, context?: ShopPayerActionContext): Promise<ShopPaymentStepResult>;
177
178
  }
179
+ /** A Stripe.js error, as Stripe.js declares it (structural). `type` says who its `message` is written for. */
180
+ interface StripeJsErrorLike {
181
+ readonly type?: string;
182
+ readonly message?: string;
183
+ }
178
184
  /** The two Stripe.js calls the shop uses, as Stripe.js declares them (structural; no Stripe import). */
179
185
  interface StripeJsLike {
180
186
  handleNextAction(options: {
181
187
  clientSecret: string;
182
188
  }): Promise<{
183
- error?: {
184
- message?: string;
185
- };
189
+ error?: StripeJsErrorLike;
186
190
  }>;
187
191
  confirmSetup(options: {
188
192
  clientSecret: string;
@@ -190,9 +194,7 @@ interface StripeJsLike {
190
194
  confirmParams?: Record<string, unknown>;
191
195
  redirect?: 'if_required' | 'always';
192
196
  }): Promise<{
193
- error?: {
194
- message?: string;
195
- };
197
+ error?: StripeJsErrorLike;
196
198
  }>;
197
199
  }
198
200
  interface StripeJsPaymentsOptions {
@@ -773,4 +775,4 @@ type ShopCardHandoff = () => Promise<ShopPaymentStepResult>;
773
775
 
774
776
  declare function newIdempotencyKey(): string;
775
777
 
776
- export { newIdempotencyKey as A, shopCopy as B, shopOrdersV2Copy as C, shopV3Copy as D, type ShopPayerActionContext as E, type OmsClient as O, type ShopPet as S, UNAVAILABLE_PACKAGE_SOURCE as U, type ShopPaymentsPort as a, type ShopPackageSource as b, type ShopCopy as c, type ShopV3Copy as d, type ShopRoute as e, type ShopCardHandoff as f, type ShopCardReturn as g, type ShopProfileName as h, type ShopOrdersV2Copy as i, type OmsClientConfig as j, type OmsConsumerAuth as k, type OmsGetToken as l, SHOP_COPY as m, SHOP_COPY_PLACEHOLDERS as n, SHOP_ORDERS_V2_COPY as o, SHOP_V3_COPY as p, SHOP_V3_COPY_PLACEHOLDERS as q, type ShopPackage as r, type ShopPackageLine as s, type ShopPaymentStepResult as t, type ShopTabName as u, type StripeJsLike as v, type StripeJsPaymentsOptions as w, createOmsClient as x, createOmsPackageSource as y, createStripeJsPayments as z };
778
+ export { createStripeJsPayments as A, newIdempotencyKey as B, shopCopy as C, shopOrdersV2Copy as D, shopV3Copy as E, type ShopPayerActionContext as F, type OmsClient as O, type ShopPet as S, UNAVAILABLE_PACKAGE_SOURCE as U, type ShopPaymentsPort as a, type ShopPackageSource as b, type ShopCopy as c, type ShopV3Copy as d, type ShopRoute as e, type ShopCardHandoff as f, type ShopCardReturn as g, type ShopProfileName as h, type ShopOrdersV2Copy as i, type OmsClientConfig as j, type OmsConsumerAuth as k, type OmsGetToken as l, SHOP_COPY as m, SHOP_COPY_PLACEHOLDERS as n, SHOP_ORDERS_V2_COPY as o, SHOP_V3_COPY as p, SHOP_V3_COPY_PLACEHOLDERS as q, type ShopPackage as r, type ShopPackageLine as s, type ShopPaymentStepResult as t, type ShopTabName as u, type StripeJsErrorLike as v, type StripeJsLike as w, type StripeJsPaymentsOptions as x, createOmsClient as y, createOmsPackageSource as z };
@@ -3,7 +3,7 @@ import { E as EverfurResult } from './EverfurResult.d-D_-254ZY.js';
3
3
  import { E as ErrorPolicyPort } from './ErrorPolicyPort.d-BnI5qWg4.js';
4
4
  import { A as AuthContext } from './identity.d-D4VtpqRr.js';
5
5
  import { P as PetRef, U as UserRef } from './ids.d-B2GAAifq.js';
6
- import { d as EverfurNotification } from './parse.d-Cj3fURer.js';
6
+ import { d as EverfurNotification } from './parse.d-QjB2LJCd.js';
7
7
 
8
8
  /**
9
9
  * What an inbox item is about, as the wire names it: `kind`, then the item's references under their wire keys
@@ -3,7 +3,7 @@ import { E as EverfurResult } from './EverfurResult.d-BFH-3s6E.cjs';
3
3
  import { E as ErrorPolicyPort } from './ErrorPolicyPort.d-BIdmYQnk.cjs';
4
4
  import { A as AuthContext } from './identity.d-DDpXOtas.cjs';
5
5
  import { P as PetRef, U as UserRef } from './ids.d-B2GAAifq.cjs';
6
- import { d as EverfurNotification } from './parse.d-cH7ZmMeo.cjs';
6
+ import { d as EverfurNotification } from './parse.d-_Ttu2h5g.cjs';
7
7
 
8
8
  /**
9
9
  * What an inbox item is about, as the wire names it: `kind`, then the item's references under their wire keys