@aranova/tracking-react 1.9.0 → 1.11.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/README.md +7 -3
- package/dist/{bookings-DtcwdM_I.d.mts → bookings-BnXZGgwr.d.mts} +16 -3
- package/dist/{bookings-Bx7totlS.d.ts → bookings-vM_aCNOS.d.ts} +16 -3
- package/dist/client.d.mts +6 -6
- package/dist/client.d.ts +6 -6
- package/dist/client.js +25 -3
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +25 -3
- package/dist/client.mjs.map +1 -1
- package/dist/{form-submit-BLb28aCk.d.mts → form-submit-CX-CxJjQ.d.mts} +9 -37
- package/dist/{form-submit-BLb28aCk.d.ts → form-submit-CX-CxJjQ.d.ts} +9 -37
- package/dist/index.d.mts +179 -8
- package/dist/index.d.ts +179 -8
- package/dist/index.js +133 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +127 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{ingest-typed-B-BgEZdW.d.ts → ingest-typed-BS9agXM5.d.ts} +12 -3
- package/dist/{ingest-typed-C2OvZ7dp.d.mts → ingest-typed-TI6KqVzL.d.mts} +12 -3
- package/dist/{phone-utils-CM8eUPz8.d.mts → phone-utils-BNiSqeF7.d.mts} +1 -1
- package/dist/{phone-utils-l8ey3Zdm.d.ts → phone-utils-D12FW8tT.d.ts} +1 -1
- package/dist/phone.d.mts +2 -2
- package/dist/phone.d.ts +2 -2
- package/dist/{sales-DJJpMY_c.d.ts → sales-BegN5t_z.d.ts} +1 -1
- package/dist/{sales-Dil7TNV_.d.mts → sales-CSV0H3iG.d.mts} +1 -1
- package/dist/sales.d.mts +3 -3
- package/dist/sales.d.ts +3 -3
- package/dist/sales.js +2 -1
- package/dist/sales.js.map +1 -1
- package/dist/sales.mjs +2 -1
- package/dist/sales.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as BookingDayWindows, h as BookingMode, q as ConversionIntegrations } from './bookings-
|
|
1
|
+
import { p as BookingDayWindows, h as BookingMode, q as ConversionIntegrations } from './bookings-vM_aCNOS.js';
|
|
2
2
|
import * as zod_v4_core from 'zod/v4/core';
|
|
3
3
|
import * as z from 'zod/mini';
|
|
4
|
-
import { J as JsonValue, F as FormSubmitConfig, a as FormSubmitMetadata } from './form-submit-
|
|
5
|
-
import './phone-utils-
|
|
4
|
+
import { J as JsonValue, F as FormSubmitConfig, a as FormSubmitMetadata } from './form-submit-CX-CxJjQ.js';
|
|
5
|
+
import './phone-utils-D12FW8tT.js';
|
|
6
6
|
|
|
7
7
|
type BookingProvider = "autoleap";
|
|
8
8
|
/** One service choice on the booking form, by the site's own key. */
|
|
@@ -769,7 +769,16 @@ declare const EVENT_REGISTRY: {
|
|
|
769
769
|
type: z.ZodMiniString<string>;
|
|
770
770
|
label: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
771
771
|
value: z.ZodMiniType<JsonValue, unknown, zod_v4_core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
772
|
+
role: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
772
773
|
}, zod_v4_core.$strict>>>;
|
|
774
|
+
kind: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
775
|
+
contract_version: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniInt>>;
|
|
776
|
+
contract_hash: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
777
|
+
extra: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniObject<{
|
|
778
|
+
key: z.ZodMiniString<string>;
|
|
779
|
+
label: z.ZodMiniString<string>;
|
|
780
|
+
value: z.ZodMiniType<JsonValue, unknown, zod_v4_core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
781
|
+
}, zod_v4_core.$strict>>>>;
|
|
773
782
|
}, zod_v4_core.$strict>;
|
|
774
783
|
page: z.ZodMiniObject<{
|
|
775
784
|
path: z.ZodMiniString<string>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as BookingDayWindows, h as BookingMode, q as ConversionIntegrations } from './bookings-
|
|
1
|
+
import { p as BookingDayWindows, h as BookingMode, q as ConversionIntegrations } from './bookings-BnXZGgwr.mjs';
|
|
2
2
|
import * as zod_v4_core from 'zod/v4/core';
|
|
3
3
|
import * as z from 'zod/mini';
|
|
4
|
-
import { J as JsonValue, F as FormSubmitConfig, a as FormSubmitMetadata } from './form-submit-
|
|
5
|
-
import './phone-utils-
|
|
4
|
+
import { J as JsonValue, F as FormSubmitConfig, a as FormSubmitMetadata } from './form-submit-CX-CxJjQ.mjs';
|
|
5
|
+
import './phone-utils-BNiSqeF7.mjs';
|
|
6
6
|
|
|
7
7
|
type BookingProvider = "autoleap";
|
|
8
8
|
/** One service choice on the booking form, by the site's own key. */
|
|
@@ -769,7 +769,16 @@ declare const EVENT_REGISTRY: {
|
|
|
769
769
|
type: z.ZodMiniString<string>;
|
|
770
770
|
label: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
771
771
|
value: z.ZodMiniType<JsonValue, unknown, zod_v4_core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
772
|
+
role: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
772
773
|
}, zod_v4_core.$strict>>>;
|
|
774
|
+
kind: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
775
|
+
contract_version: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniInt>>;
|
|
776
|
+
contract_hash: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
777
|
+
extra: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniObject<{
|
|
778
|
+
key: z.ZodMiniString<string>;
|
|
779
|
+
label: z.ZodMiniString<string>;
|
|
780
|
+
value: z.ZodMiniType<JsonValue, unknown, zod_v4_core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
781
|
+
}, zod_v4_core.$strict>>>>;
|
|
773
782
|
}, zod_v4_core.$strict>;
|
|
774
783
|
page: z.ZodMiniObject<{
|
|
775
784
|
path: z.ZodMiniString<string>;
|
package/dist/phone.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { i as DEFAULT_PHONE_COUNTRY, P as ParsedPhone, j as PhoneConfig, k as PhoneDisplayFormat, l as TrackedField, n as formatPhone, o as formatPhoneAsTyped, u as parsePhone, v as phoneField, y as toE164 } from './phone-utils-
|
|
1
|
+
export { i as DEFAULT_PHONE_COUNTRY, P as ParsedPhone, j as PhoneConfig, k as PhoneDisplayFormat, l as TrackedField, n as formatPhone, o as formatPhoneAsTyped, u as parsePhone, v as phoneField, y as toE164 } from './phone-utils-BNiSqeF7.mjs';
|
|
2
2
|
export { CountryCode } from 'libphonenumber-js';
|
|
3
|
-
import './form-submit-
|
|
3
|
+
import './form-submit-CX-CxJjQ.mjs';
|
|
4
4
|
import 'zod/mini';
|
package/dist/phone.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { i as DEFAULT_PHONE_COUNTRY, P as ParsedPhone, j as PhoneConfig, k as PhoneDisplayFormat, l as TrackedField, n as formatPhone, o as formatPhoneAsTyped, u as parsePhone, v as phoneField, y as toE164 } from './phone-utils-
|
|
1
|
+
export { i as DEFAULT_PHONE_COUNTRY, P as ParsedPhone, j as PhoneConfig, k as PhoneDisplayFormat, l as TrackedField, n as formatPhone, o as formatPhoneAsTyped, u as parsePhone, v as phoneField, y as toE164 } from './phone-utils-D12FW8tT.js';
|
|
2
2
|
export { CountryCode } from 'libphonenumber-js';
|
|
3
|
-
import './form-submit-
|
|
3
|
+
import './form-submit-CX-CxJjQ.js';
|
|
4
4
|
import 'zod/mini';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from 'zod/mini';
|
|
2
|
-
import { S as SalesBookingsClient, l as ConversionConfigStore, s as TrackingConfigRuntime } from './bookings-
|
|
2
|
+
import { S as SalesBookingsClient, l as ConversionConfigStore, s as TrackingConfigRuntime } from './bookings-vM_aCNOS.js';
|
|
3
3
|
import { CountryCode } from 'libphonenumber-js';
|
|
4
4
|
|
|
5
5
|
/** Raw identifiers a caller may hand us (normalized before use). */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from 'zod/mini';
|
|
2
|
-
import { S as SalesBookingsClient, l as ConversionConfigStore, s as TrackingConfigRuntime } from './bookings-
|
|
2
|
+
import { S as SalesBookingsClient, l as ConversionConfigStore, s as TrackingConfigRuntime } from './bookings-BnXZGgwr.mjs';
|
|
3
3
|
import { CountryCode } from 'libphonenumber-js';
|
|
4
4
|
|
|
5
5
|
/** Raw identifiers a caller may hand us (normalized before use). */
|
package/dist/sales.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as AranovaApiError, B as BusinessConfig, a as BusinessConfigFeatures, b as BusinessConfigService, C as CompareTo, d as CurrencyRevenue, e as CustomerCurrencyDelta, f as CustomerCurrencyTotal, g as CustomerGetOptions, h as CustomerGetResult, i as CustomerKpis, j as CustomerKpisDeltas, k as CustomerKpisPrevious, l as CustomerListPage, m as CustomerListQuery, n as CustomerProfile, o as CustomerSegment, p as CustomerSegmentCount, q as CustomerSortField, r as CustomerSummary, s as CustomerSummaryQuery, D as DistinctCustomersByCurrency, E as EffectiveSaleProperty, G as Granularity, N as NAMED_RANGES, t as NamedRange, P as PublicServiceItem, S as SALE_SOURCES, u as SUPPORTED_CURRENCIES, v as Sale, w as SaleBuiltinRequirableField, x as SaleCursorPage, y as SaleFilters, z as SaleInput, F as SaleItem, H as SaleItemInput, I as SaleKeysetSortField, J as SaleListPage, K as SaleListQuery, L as SaleListQueryV2, M as SalePropertyOption, O as SalePropertyType, Q as SaleService, R as SaleServiceInput, T as SaleSortField, U as SaleSortOrder, V as SaleSource, W as SaleSourceFacts, X as SaleSummary, Y as SaleSummaryPrevious, Z as SaleSummaryQuery, _ as SaleSummaryQueryV2, $ as SaleSummaryV2, a0 as SaleUpdateInput, a1 as SalesBusinessClient, a2 as SalesCategoryBreakdown, a3 as SalesClient, a4 as SalesClientConfig, a5 as SalesCustomersClient, a6 as SalesServiceBreakdown, a7 as SalesTransportConfig, a8 as SalesTrendPoint, a9 as SummaryCurrencyDelta, aa as SummaryDeltas, ab as SummaryWindow, ac as SupportedCurrency, ad as TRACKING_RANGES, ae as TrackingOverviewRange, ag as createSalesClient, ah as currencySchema, ai as fetchServices, aj as formatDateInTz, ak as formatMoney, al as fromMinor, am as saleCreateSchema, an as saleItemSchema, ao as saleServiceSchema, ap as saleUpdateSchema, aq as salesRequest, as as toMinor } from './sales-
|
|
2
|
-
export { B as BookingDetailsFailure, a as BookingDetailsInput, b as BookingDetailsOptions, c as BookingDetailsOutcome, d as BookingDetailsStatus, e as BookingDropOff, f as BookingFormSubmit, g as BookingInput, h as BookingMode, i as BookingOutcome, j as BookingSimulation, k as BookingSubmitOptions, F as FormSubmitField, S as SalesBookingsClient, n as newBookingAttemptKey } from './bookings-
|
|
1
|
+
export { A as AranovaApiError, B as BusinessConfig, a as BusinessConfigFeatures, b as BusinessConfigService, C as CompareTo, d as CurrencyRevenue, e as CustomerCurrencyDelta, f as CustomerCurrencyTotal, g as CustomerGetOptions, h as CustomerGetResult, i as CustomerKpis, j as CustomerKpisDeltas, k as CustomerKpisPrevious, l as CustomerListPage, m as CustomerListQuery, n as CustomerProfile, o as CustomerSegment, p as CustomerSegmentCount, q as CustomerSortField, r as CustomerSummary, s as CustomerSummaryQuery, D as DistinctCustomersByCurrency, E as EffectiveSaleProperty, G as Granularity, N as NAMED_RANGES, t as NamedRange, P as PublicServiceItem, S as SALE_SOURCES, u as SUPPORTED_CURRENCIES, v as Sale, w as SaleBuiltinRequirableField, x as SaleCursorPage, y as SaleFilters, z as SaleInput, F as SaleItem, H as SaleItemInput, I as SaleKeysetSortField, J as SaleListPage, K as SaleListQuery, L as SaleListQueryV2, M as SalePropertyOption, O as SalePropertyType, Q as SaleService, R as SaleServiceInput, T as SaleSortField, U as SaleSortOrder, V as SaleSource, W as SaleSourceFacts, X as SaleSummary, Y as SaleSummaryPrevious, Z as SaleSummaryQuery, _ as SaleSummaryQueryV2, $ as SaleSummaryV2, a0 as SaleUpdateInput, a1 as SalesBusinessClient, a2 as SalesCategoryBreakdown, a3 as SalesClient, a4 as SalesClientConfig, a5 as SalesCustomersClient, a6 as SalesServiceBreakdown, a7 as SalesTransportConfig, a8 as SalesTrendPoint, a9 as SummaryCurrencyDelta, aa as SummaryDeltas, ab as SummaryWindow, ac as SupportedCurrency, ad as TRACKING_RANGES, ae as TrackingOverviewRange, ag as createSalesClient, ah as currencySchema, ai as fetchServices, aj as formatDateInTz, ak as formatMoney, al as fromMinor, am as saleCreateSchema, an as saleItemSchema, ao as saleServiceSchema, ap as saleUpdateSchema, aq as salesRequest, as as toMinor } from './sales-CSV0H3iG.mjs';
|
|
2
|
+
export { B as BookingDetailsFailure, a as BookingDetailsInput, b as BookingDetailsOptions, c as BookingDetailsOutcome, d as BookingDetailsStatus, e as BookingDropOff, f as BookingFormSubmit, g as BookingInput, h as BookingMode, i as BookingOutcome, j as BookingSimulation, k as BookingSubmitOptions, F as FormSubmitField, S as SalesBookingsClient, n as newBookingAttemptKey } from './bookings-BnXZGgwr.mjs';
|
|
3
3
|
import 'zod/mini';
|
|
4
4
|
import 'libphonenumber-js';
|
|
5
|
-
import './form-submit-
|
|
5
|
+
import './form-submit-CX-CxJjQ.mjs';
|
package/dist/sales.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as AranovaApiError, B as BusinessConfig, a as BusinessConfigFeatures, b as BusinessConfigService, C as CompareTo, d as CurrencyRevenue, e as CustomerCurrencyDelta, f as CustomerCurrencyTotal, g as CustomerGetOptions, h as CustomerGetResult, i as CustomerKpis, j as CustomerKpisDeltas, k as CustomerKpisPrevious, l as CustomerListPage, m as CustomerListQuery, n as CustomerProfile, o as CustomerSegment, p as CustomerSegmentCount, q as CustomerSortField, r as CustomerSummary, s as CustomerSummaryQuery, D as DistinctCustomersByCurrency, E as EffectiveSaleProperty, G as Granularity, N as NAMED_RANGES, t as NamedRange, P as PublicServiceItem, S as SALE_SOURCES, u as SUPPORTED_CURRENCIES, v as Sale, w as SaleBuiltinRequirableField, x as SaleCursorPage, y as SaleFilters, z as SaleInput, F as SaleItem, H as SaleItemInput, I as SaleKeysetSortField, J as SaleListPage, K as SaleListQuery, L as SaleListQueryV2, M as SalePropertyOption, O as SalePropertyType, Q as SaleService, R as SaleServiceInput, T as SaleSortField, U as SaleSortOrder, V as SaleSource, W as SaleSourceFacts, X as SaleSummary, Y as SaleSummaryPrevious, Z as SaleSummaryQuery, _ as SaleSummaryQueryV2, $ as SaleSummaryV2, a0 as SaleUpdateInput, a1 as SalesBusinessClient, a2 as SalesCategoryBreakdown, a3 as SalesClient, a4 as SalesClientConfig, a5 as SalesCustomersClient, a6 as SalesServiceBreakdown, a7 as SalesTransportConfig, a8 as SalesTrendPoint, a9 as SummaryCurrencyDelta, aa as SummaryDeltas, ab as SummaryWindow, ac as SupportedCurrency, ad as TRACKING_RANGES, ae as TrackingOverviewRange, ag as createSalesClient, ah as currencySchema, ai as fetchServices, aj as formatDateInTz, ak as formatMoney, al as fromMinor, am as saleCreateSchema, an as saleItemSchema, ao as saleServiceSchema, ap as saleUpdateSchema, aq as salesRequest, as as toMinor } from './sales-
|
|
2
|
-
export { B as BookingDetailsFailure, a as BookingDetailsInput, b as BookingDetailsOptions, c as BookingDetailsOutcome, d as BookingDetailsStatus, e as BookingDropOff, f as BookingFormSubmit, g as BookingInput, h as BookingMode, i as BookingOutcome, j as BookingSimulation, k as BookingSubmitOptions, F as FormSubmitField, S as SalesBookingsClient, n as newBookingAttemptKey } from './bookings-
|
|
1
|
+
export { A as AranovaApiError, B as BusinessConfig, a as BusinessConfigFeatures, b as BusinessConfigService, C as CompareTo, d as CurrencyRevenue, e as CustomerCurrencyDelta, f as CustomerCurrencyTotal, g as CustomerGetOptions, h as CustomerGetResult, i as CustomerKpis, j as CustomerKpisDeltas, k as CustomerKpisPrevious, l as CustomerListPage, m as CustomerListQuery, n as CustomerProfile, o as CustomerSegment, p as CustomerSegmentCount, q as CustomerSortField, r as CustomerSummary, s as CustomerSummaryQuery, D as DistinctCustomersByCurrency, E as EffectiveSaleProperty, G as Granularity, N as NAMED_RANGES, t as NamedRange, P as PublicServiceItem, S as SALE_SOURCES, u as SUPPORTED_CURRENCIES, v as Sale, w as SaleBuiltinRequirableField, x as SaleCursorPage, y as SaleFilters, z as SaleInput, F as SaleItem, H as SaleItemInput, I as SaleKeysetSortField, J as SaleListPage, K as SaleListQuery, L as SaleListQueryV2, M as SalePropertyOption, O as SalePropertyType, Q as SaleService, R as SaleServiceInput, T as SaleSortField, U as SaleSortOrder, V as SaleSource, W as SaleSourceFacts, X as SaleSummary, Y as SaleSummaryPrevious, Z as SaleSummaryQuery, _ as SaleSummaryQueryV2, $ as SaleSummaryV2, a0 as SaleUpdateInput, a1 as SalesBusinessClient, a2 as SalesCategoryBreakdown, a3 as SalesClient, a4 as SalesClientConfig, a5 as SalesCustomersClient, a6 as SalesServiceBreakdown, a7 as SalesTransportConfig, a8 as SalesTrendPoint, a9 as SummaryCurrencyDelta, aa as SummaryDeltas, ab as SummaryWindow, ac as SupportedCurrency, ad as TRACKING_RANGES, ae as TrackingOverviewRange, ag as createSalesClient, ah as currencySchema, ai as fetchServices, aj as formatDateInTz, ak as formatMoney, al as fromMinor, am as saleCreateSchema, an as saleItemSchema, ao as saleServiceSchema, ap as saleUpdateSchema, aq as salesRequest, as as toMinor } from './sales-BegN5t_z.js';
|
|
2
|
+
export { B as BookingDetailsFailure, a as BookingDetailsInput, b as BookingDetailsOptions, c as BookingDetailsOutcome, d as BookingDetailsStatus, e as BookingDropOff, f as BookingFormSubmit, g as BookingInput, h as BookingMode, i as BookingOutcome, j as BookingSimulation, k as BookingSubmitOptions, F as FormSubmitField, S as SalesBookingsClient, n as newBookingAttemptKey } from './bookings-vM_aCNOS.js';
|
|
3
3
|
import 'zod/mini';
|
|
4
4
|
import 'libphonenumber-js';
|
|
5
|
-
import './form-submit-
|
|
5
|
+
import './form-submit-CX-CxJjQ.js';
|
package/dist/sales.js
CHANGED
|
@@ -652,7 +652,8 @@ function createSalesBookingsClient(config, firing) {
|
|
|
652
652
|
const body = {
|
|
653
653
|
idempotency_key: attemptKey,
|
|
654
654
|
vehicle: details.vehicle ?? null,
|
|
655
|
-
notes: details.notes?.trim() || null
|
|
655
|
+
notes: details.notes?.trim() || null,
|
|
656
|
+
heard_via: details.heardVia?.trim() || null
|
|
656
657
|
};
|
|
657
658
|
try {
|
|
658
659
|
const response = await salesRequest(
|