@aranova/tracking-react 1.15.0 → 1.16.1

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/dist/sales.mjs CHANGED
@@ -1355,9 +1355,16 @@ function optionKeys(value) {
1355
1355
  }
1356
1356
 
1357
1357
  // ../tracking-core/src/resources/http/errors.ts
1358
- var AranovaApiError = class extends Error {
1358
+ var API_ERROR_BRAND = /* @__PURE__ */ Symbol.for("aranova.api_error");
1359
+ var AranovaApiError = class _AranovaApiError extends Error {
1360
+ /** `instanceof` checks the brand, so an error from another entry's copy of this class passes. */
1361
+ static [Symbol.hasInstance](value) {
1362
+ if (this !== _AranovaApiError) return Function.prototype[Symbol.hasInstance].call(this, value);
1363
+ return typeof value === "object" && value !== null && value[API_ERROR_BRAND] === true;
1364
+ }
1359
1365
  constructor(message, options) {
1360
1366
  super(message);
1367
+ Object.defineProperty(this, API_ERROR_BRAND, { value: true });
1361
1368
  this.name = "AranovaApiError";
1362
1369
  this.status = options.status;
1363
1370
  this.code = options.code;
@@ -1898,6 +1905,8 @@ var zErrorCode = z4.enum([
1898
1905
  "booking_not_reschedulable",
1899
1906
  "booking_not_synced",
1900
1907
  "manage_token_invalid",
1908
+ "hold_expired",
1909
+ "hold_released",
1901
1910
  "google_error",
1902
1911
  "booking_unavailable",
1903
1912
  "booking_config_stale",
@@ -1986,7 +1995,10 @@ var zSmsWithheldReason = z4.enum([
1986
1995
  "recently_texted",
1987
1996
  "do_not_contact",
1988
1997
  "do_not_text_tag",
1989
- "missing_value"
1998
+ "missing_value",
1999
+ "us_texting_pending",
2000
+ "us_texting_rejected",
2001
+ "texts_paused"
1990
2002
  ]);
1991
2003
  var zSaleSmsStatusSchema = z4.object({
1992
2004
  can_send_now: z4._default(z4.boolean(), false),