@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/client.js +1 -1
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +1 -1
- package/dist/client.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{sales-C0FMkN4m.d.ts → sales-DGSi7IqU.d.ts} +2 -0
- package/dist/{sales-KbTcowYa.d.mts → sales-J_ItVjgE.d.mts} +2 -0
- package/dist/sales.d.mts +1 -1
- package/dist/sales.d.ts +1 -1
- package/dist/sales.js +14 -2
- package/dist/sales.js.map +1 -1
- package/dist/sales.mjs +14 -2
- package/dist/sales.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1992,9 +1992,16 @@ function timeWindow(start, end, label) {
|
|
|
1992
1992
|
}
|
|
1993
1993
|
|
|
1994
1994
|
// ../tracking-core/src/resources/http/errors.ts
|
|
1995
|
-
var
|
|
1995
|
+
var API_ERROR_BRAND = /* @__PURE__ */ Symbol.for("aranova.api_error");
|
|
1996
|
+
var AranovaApiError = class _AranovaApiError extends Error {
|
|
1997
|
+
/** `instanceof` checks the brand, so an error from another entry's copy of this class passes. */
|
|
1998
|
+
static [Symbol.hasInstance](value) {
|
|
1999
|
+
if (this !== _AranovaApiError) return Function.prototype[Symbol.hasInstance].call(this, value);
|
|
2000
|
+
return typeof value === "object" && value !== null && value[API_ERROR_BRAND] === true;
|
|
2001
|
+
}
|
|
1996
2002
|
constructor(message, options) {
|
|
1997
2003
|
super(message);
|
|
2004
|
+
Object.defineProperty(this, API_ERROR_BRAND, { value: true });
|
|
1998
2005
|
this.name = "AranovaApiError";
|
|
1999
2006
|
this.status = options.status;
|
|
2000
2007
|
this.code = options.code;
|
|
@@ -2528,6 +2535,8 @@ var zErrorCode = z4.enum([
|
|
|
2528
2535
|
"booking_not_reschedulable",
|
|
2529
2536
|
"booking_not_synced",
|
|
2530
2537
|
"manage_token_invalid",
|
|
2538
|
+
"hold_expired",
|
|
2539
|
+
"hold_released",
|
|
2531
2540
|
"google_error",
|
|
2532
2541
|
"booking_unavailable",
|
|
2533
2542
|
"booking_config_stale",
|
|
@@ -2616,7 +2625,10 @@ var zSmsWithheldReason = z4.enum([
|
|
|
2616
2625
|
"recently_texted",
|
|
2617
2626
|
"do_not_contact",
|
|
2618
2627
|
"do_not_text_tag",
|
|
2619
|
-
"missing_value"
|
|
2628
|
+
"missing_value",
|
|
2629
|
+
"us_texting_pending",
|
|
2630
|
+
"us_texting_rejected",
|
|
2631
|
+
"texts_paused"
|
|
2620
2632
|
]);
|
|
2621
2633
|
var zSaleSmsStatusSchema = z4.object({
|
|
2622
2634
|
can_send_now: z4._default(z4.boolean(), false),
|