@aranova/tracking-react 1.16.1 → 1.18.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 +16 -0
- package/dist/{bookings-CkfA5XOM.d.ts → bookings-CCGpXhYE.d.ts} +52 -5
- package/dist/{bookings-DFz3BUiP.d.mts → bookings-CVvpj_8K.d.mts} +52 -5
- package/dist/client.d.mts +4 -4
- package/dist/client.d.ts +4 -4
- package/dist/client.js +274 -189
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +274 -189
- package/dist/client.mjs.map +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +60 -36
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +60 -36
- package/dist/index.mjs.map +1 -1
- package/dist/{ingest-typed-BO6Arbw-.d.mts → ingest-typed-C3XAjHlH.d.ts} +92 -2
- package/dist/{ingest-typed-D7I4aQ7p.d.ts → ingest-typed-CoCjTqJs.d.mts} +92 -2
- package/dist/{phone-utils-CYr6AmEP.d.mts → phone-utils-BlWj8oxq.d.mts} +1 -0
- package/dist/{phone-utils-CYr6AmEP.d.ts → phone-utils-BlWj8oxq.d.ts} +1 -0
- package/dist/phone.d.mts +1 -1
- package/dist/phone.d.ts +1 -1
- package/dist/{sales-J_ItVjgE.d.mts → sales-B1ONR-Yi.d.mts} +1 -1
- package/dist/{sales-DGSi7IqU.d.ts → sales-Dlc_umAV.d.ts} +1 -1
- package/dist/sales.d.mts +3 -3
- package/dist/sales.d.ts +3 -3
- package/dist/sales.js +51 -35
- package/dist/sales.js.map +1 -1
- package/dist/sales.mjs +51 -35
- package/dist/sales.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { AdPlatformTracking, AdPlatformTrackingProps, BookedAttempt, BookingHandoffLink, BookingHandoffLinkProps, BookingHandoffOptions, BookingSubmitState, BookingSubmitStatus, ConsentBanner, ConsentBannerProps, CreateTrackingOptions, CreateTrackingResult, GoogleAdsTracking, GoogleAdsTrackingProps, PhoneField, PhoneFieldApi, PhoneFieldProps, PhoneInputProps, TrackingProviderProps, UseConsentResult, UseCookiePreferencesOptions, UseCookiePreferencesResult, UsePhoneFieldOptions, createLeadFormSubmit, createTracking, useBookingHandoffUrl, useBookingIntegration, useBookingSlots, useBookingSubmit, useConsent, useConsentState, useCookiePreferences, useGclid, usePhoneConfig, usePhoneField, useTrackingParams } from '@aranova/tracking-react/client';
|
|
2
|
-
import { T as TrackingParams, a as TrackingInstallSurface, b as TrackingEnvironment, c as TrackingClientContext, d as TrackingEventCreatePayload, e as TrackingSessionUpsertPayload } from './phone-utils-
|
|
3
|
-
export { C as ConsentChoice, f as ConsentChoiceState, g as ConsentSource, h as ConsentState, D as DEFAULT_DECLINE_TTL_DAYS, i as DEFAULT_PHONE_COUNTRY, F as FormContractViolation, j as FormSubmitConfig, k as FormSubmitMetadata, G as GtagEnvironmentMap, J as JsonValue, L as LEAD_FORM_KINDS, l as LEAD_FORM_PRIMITIVES, m as LEAD_FORM_REGISTRY_VERSION, n as LEAD_FORM_ROLES, o as LEAD_FORM_ROLE_SPECS, p as LeadFormKind, q as LeadFormPrimitive, r as LeadFormRole, s as LeadFormRoleOption, t as LeadFormRoleSpec, M as MetaPixelEnvironmentMap, P as ParsedPhone, u as PhoneConfig, v as PhoneDisplayFormat, S as SetConsentOptions, w as TrackedField, x as TrackingInitConfig, y as formatPhone, z as formatPhoneAsTyped, A as getConsentChoice, B as getConsentState, E as leadFormPrimitiveSchemas, H as onConsentChange, I as optIn, K as optOut, N as parsePhone, O as phoneField, Q as resetConsent, R as setConsentState, U as toE164 } from './phone-utils-
|
|
4
|
-
export { A as AranovaApiError, B as BusinessConfig, a as BusinessConfigFeatures, b as BusinessConfigService, C as CompareTo, c as ConversionUserData, 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, af as clearStashedUserData, 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, ar as stashUserData, as as toMinor } from './sales-
|
|
5
|
-
export { B as BookableDay, a as BookingDetailsFailure, b as BookingDetailsInput, c as BookingDetailsOptions, d as BookingDetailsOutcome, e as BookingDetailsStatus, f as BookingDropOff, g as BookingFormSubmit, h as BookingHandoffPrefill, i as BookingInput, j as BookingInputFor, k as BookingIntegration, l as BookingMode, m as BookingOption, n as BookingOptionGroup, o as BookingOptionKey, p as BookingOutcome, q as BookingProvider, r as BookingRules, s as BookingServiceKey, t as BookingSimulation, u as BookingSubmitOptions, v as BookingVehicle, C as ConversionConfig, w as ConversionConfigStore, F as FormSubmitField, L as LeadFormAddress, x as LeadFormContracts, y as
|
|
6
|
-
export { A as AutomaticEventName, C as CtaClickConfig, a as CtaClickMetadata, E as EVENT_SEMANTICS, b as EventCategory, c as EventClientVisibility, d as EventConfig, e as EventKind, f as EventMetadata, g as EventName, h as EventOutcomeRole, i as EventSemantics, F as
|
|
2
|
+
import { T as TrackingParams, a as TrackingInstallSurface, b as TrackingEnvironment, c as TrackingClientContext, d as TrackingEventCreatePayload, e as TrackingSessionUpsertPayload } from './phone-utils-BlWj8oxq.mjs';
|
|
3
|
+
export { C as ConsentChoice, f as ConsentChoiceState, g as ConsentSource, h as ConsentState, D as DEFAULT_DECLINE_TTL_DAYS, i as DEFAULT_PHONE_COUNTRY, F as FormContractViolation, j as FormSubmitConfig, k as FormSubmitMetadata, G as GtagEnvironmentMap, J as JsonValue, L as LEAD_FORM_KINDS, l as LEAD_FORM_PRIMITIVES, m as LEAD_FORM_REGISTRY_VERSION, n as LEAD_FORM_ROLES, o as LEAD_FORM_ROLE_SPECS, p as LeadFormKind, q as LeadFormPrimitive, r as LeadFormRole, s as LeadFormRoleOption, t as LeadFormRoleSpec, M as MetaPixelEnvironmentMap, P as ParsedPhone, u as PhoneConfig, v as PhoneDisplayFormat, S as SetConsentOptions, w as TrackedField, x as TrackingInitConfig, y as formatPhone, z as formatPhoneAsTyped, A as getConsentChoice, B as getConsentState, E as leadFormPrimitiveSchemas, H as onConsentChange, I as optIn, K as optOut, N as parsePhone, O as phoneField, Q as resetConsent, R as setConsentState, U as toE164 } from './phone-utils-BlWj8oxq.mjs';
|
|
4
|
+
export { A as AranovaApiError, B as BusinessConfig, a as BusinessConfigFeatures, b as BusinessConfigService, C as CompareTo, c as ConversionUserData, 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, af as clearStashedUserData, 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, ar as stashUserData, as as toMinor } from './sales-B1ONR-Yi.mjs';
|
|
5
|
+
export { B as BookableDay, a as BookingDetailsFailure, b as BookingDetailsInput, c as BookingDetailsOptions, d as BookingDetailsOutcome, e as BookingDetailsStatus, f as BookingDropOff, g as BookingFormSubmit, h as BookingHandoffPrefill, i as BookingInput, j as BookingInputFor, k as BookingIntegration, l as BookingMode, m as BookingOption, n as BookingOptionGroup, o as BookingOptionKey, p as BookingOutcome, q as BookingProvider, r as BookingRules, s as BookingServiceKey, t as BookingSimulation, u as BookingSubmitOptions, v as BookingVehicle, C as ConversionConfig, w as ConversionConfigStore, F as FormSubmitField, L as LeadFormAddress, x as LeadFormContracts, y as LeadFormDetailsFields, z as LeadFormDetailsInput, A as LeadFormDetailsResult, D as LeadFormExtraField, E as LeadFormFields, G as LeadFormKindDecl, H as LeadFormRequirementDecl, I as LeadFormSubmission, J as LeadFormSubmitInput, K as LeadFormSubmitOptions, M as LeadFormSubmitter, N as LeadFormTimeWindow, O as LeadFormTracking, P as LeadFormValue, S as SalesBookingsClient, T as TrackingConfigReference, Q as bookableSlots, R as buildBookingHandoffUrl, U as getBookingIntegration, V as getTrackingConfigRuntime, W as groupBookingOptions, X as newBookingAttemptKey, Y as resolveConversionConfig, Z as resolveTrackingConfigUrl, _ as shopToday, $ as slotFields, a0 as timeWindow } from './bookings-CVvpj_8K.mjs';
|
|
6
|
+
export { A as AutomaticEventName, C as CtaClickConfig, a as CtaClickMetadata, E as EVENT_SEMANTICS, b as EventCategory, c as EventClientVisibility, d as EventConfig, e as EventKind, f as EventMetadata, g as EventName, h as EventOutcomeRole, i as EventSemantics, F as FormDetailsConfig, j as FormDetailsMetadata, k as FormStartConfig, l as FormStartMetadata, m as FormStepConfig, n as FormStepMetadata, M as ManualEventName, o as MultiPageSessionConfig, p as MultiPageSessionMetadata, P as PageExitConfig, q as PageExitMetadata, r as PageIdentity, s as PageViewConfig, t as PageViewMetadata, u as PhoneClickConfig, v as PhoneClickMetadata, R as RegisteredAutomaticEvents, w as RegisteredManualEvents, S as ScrollDepthConfig, x as ScrollDepthMetadata, y as SdkHeartbeatConfig, z as SdkHeartbeatMetadata, B as SiteLinkArrivalConfig, D as SiteLinkArrivalMetadata, G as SiteLinkClickConfig, H as SiteLinkClickMetadata, I as SpecificPageName, J as SpecificPageVisitConfig, K as SpecificPageVisitMetadata, T as TimeOnSiteConfig, L as TimeOnSiteMetadata, N as TrackableEvent, O as TriggerRegistryConfig, Q as TypedTrackEventOptions, U as TypedTrackingClient, V as getEventSemantics } from './ingest-typed-CoCjTqJs.mjs';
|
|
7
7
|
export { CountryCode } from 'libphonenumber-js';
|
|
8
8
|
import 'zod/mini';
|
|
9
9
|
import 'zod/v4/core';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { AdPlatformTracking, AdPlatformTrackingProps, BookedAttempt, BookingHandoffLink, BookingHandoffLinkProps, BookingHandoffOptions, BookingSubmitState, BookingSubmitStatus, ConsentBanner, ConsentBannerProps, CreateTrackingOptions, CreateTrackingResult, GoogleAdsTracking, GoogleAdsTrackingProps, PhoneField, PhoneFieldApi, PhoneFieldProps, PhoneInputProps, TrackingProviderProps, UseConsentResult, UseCookiePreferencesOptions, UseCookiePreferencesResult, UsePhoneFieldOptions, createLeadFormSubmit, createTracking, useBookingHandoffUrl, useBookingIntegration, useBookingSlots, useBookingSubmit, useConsent, useConsentState, useCookiePreferences, useGclid, usePhoneConfig, usePhoneField, useTrackingParams } from '@aranova/tracking-react/client';
|
|
2
|
-
import { T as TrackingParams, a as TrackingInstallSurface, b as TrackingEnvironment, c as TrackingClientContext, d as TrackingEventCreatePayload, e as TrackingSessionUpsertPayload } from './phone-utils-
|
|
3
|
-
export { C as ConsentChoice, f as ConsentChoiceState, g as ConsentSource, h as ConsentState, D as DEFAULT_DECLINE_TTL_DAYS, i as DEFAULT_PHONE_COUNTRY, F as FormContractViolation, j as FormSubmitConfig, k as FormSubmitMetadata, G as GtagEnvironmentMap, J as JsonValue, L as LEAD_FORM_KINDS, l as LEAD_FORM_PRIMITIVES, m as LEAD_FORM_REGISTRY_VERSION, n as LEAD_FORM_ROLES, o as LEAD_FORM_ROLE_SPECS, p as LeadFormKind, q as LeadFormPrimitive, r as LeadFormRole, s as LeadFormRoleOption, t as LeadFormRoleSpec, M as MetaPixelEnvironmentMap, P as ParsedPhone, u as PhoneConfig, v as PhoneDisplayFormat, S as SetConsentOptions, w as TrackedField, x as TrackingInitConfig, y as formatPhone, z as formatPhoneAsTyped, A as getConsentChoice, B as getConsentState, E as leadFormPrimitiveSchemas, H as onConsentChange, I as optIn, K as optOut, N as parsePhone, O as phoneField, Q as resetConsent, R as setConsentState, U as toE164 } from './phone-utils-
|
|
4
|
-
export { A as AranovaApiError, B as BusinessConfig, a as BusinessConfigFeatures, b as BusinessConfigService, C as CompareTo, c as ConversionUserData, 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, af as clearStashedUserData, 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, ar as stashUserData, as as toMinor } from './sales-
|
|
5
|
-
export { B as BookableDay, a as BookingDetailsFailure, b as BookingDetailsInput, c as BookingDetailsOptions, d as BookingDetailsOutcome, e as BookingDetailsStatus, f as BookingDropOff, g as BookingFormSubmit, h as BookingHandoffPrefill, i as BookingInput, j as BookingInputFor, k as BookingIntegration, l as BookingMode, m as BookingOption, n as BookingOptionGroup, o as BookingOptionKey, p as BookingOutcome, q as BookingProvider, r as BookingRules, s as BookingServiceKey, t as BookingSimulation, u as BookingSubmitOptions, v as BookingVehicle, C as ConversionConfig, w as ConversionConfigStore, F as FormSubmitField, L as LeadFormAddress, x as LeadFormContracts, y as
|
|
6
|
-
export { A as AutomaticEventName, C as CtaClickConfig, a as CtaClickMetadata, E as EVENT_SEMANTICS, b as EventCategory, c as EventClientVisibility, d as EventConfig, e as EventKind, f as EventMetadata, g as EventName, h as EventOutcomeRole, i as EventSemantics, F as
|
|
2
|
+
import { T as TrackingParams, a as TrackingInstallSurface, b as TrackingEnvironment, c as TrackingClientContext, d as TrackingEventCreatePayload, e as TrackingSessionUpsertPayload } from './phone-utils-BlWj8oxq.js';
|
|
3
|
+
export { C as ConsentChoice, f as ConsentChoiceState, g as ConsentSource, h as ConsentState, D as DEFAULT_DECLINE_TTL_DAYS, i as DEFAULT_PHONE_COUNTRY, F as FormContractViolation, j as FormSubmitConfig, k as FormSubmitMetadata, G as GtagEnvironmentMap, J as JsonValue, L as LEAD_FORM_KINDS, l as LEAD_FORM_PRIMITIVES, m as LEAD_FORM_REGISTRY_VERSION, n as LEAD_FORM_ROLES, o as LEAD_FORM_ROLE_SPECS, p as LeadFormKind, q as LeadFormPrimitive, r as LeadFormRole, s as LeadFormRoleOption, t as LeadFormRoleSpec, M as MetaPixelEnvironmentMap, P as ParsedPhone, u as PhoneConfig, v as PhoneDisplayFormat, S as SetConsentOptions, w as TrackedField, x as TrackingInitConfig, y as formatPhone, z as formatPhoneAsTyped, A as getConsentChoice, B as getConsentState, E as leadFormPrimitiveSchemas, H as onConsentChange, I as optIn, K as optOut, N as parsePhone, O as phoneField, Q as resetConsent, R as setConsentState, U as toE164 } from './phone-utils-BlWj8oxq.js';
|
|
4
|
+
export { A as AranovaApiError, B as BusinessConfig, a as BusinessConfigFeatures, b as BusinessConfigService, C as CompareTo, c as ConversionUserData, 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, af as clearStashedUserData, 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, ar as stashUserData, as as toMinor } from './sales-Dlc_umAV.js';
|
|
5
|
+
export { B as BookableDay, a as BookingDetailsFailure, b as BookingDetailsInput, c as BookingDetailsOptions, d as BookingDetailsOutcome, e as BookingDetailsStatus, f as BookingDropOff, g as BookingFormSubmit, h as BookingHandoffPrefill, i as BookingInput, j as BookingInputFor, k as BookingIntegration, l as BookingMode, m as BookingOption, n as BookingOptionGroup, o as BookingOptionKey, p as BookingOutcome, q as BookingProvider, r as BookingRules, s as BookingServiceKey, t as BookingSimulation, u as BookingSubmitOptions, v as BookingVehicle, C as ConversionConfig, w as ConversionConfigStore, F as FormSubmitField, L as LeadFormAddress, x as LeadFormContracts, y as LeadFormDetailsFields, z as LeadFormDetailsInput, A as LeadFormDetailsResult, D as LeadFormExtraField, E as LeadFormFields, G as LeadFormKindDecl, H as LeadFormRequirementDecl, I as LeadFormSubmission, J as LeadFormSubmitInput, K as LeadFormSubmitOptions, M as LeadFormSubmitter, N as LeadFormTimeWindow, O as LeadFormTracking, P as LeadFormValue, S as SalesBookingsClient, T as TrackingConfigReference, Q as bookableSlots, R as buildBookingHandoffUrl, U as getBookingIntegration, V as getTrackingConfigRuntime, W as groupBookingOptions, X as newBookingAttemptKey, Y as resolveConversionConfig, Z as resolveTrackingConfigUrl, _ as shopToday, $ as slotFields, a0 as timeWindow } from './bookings-CCGpXhYE.js';
|
|
6
|
+
export { A as AutomaticEventName, C as CtaClickConfig, a as CtaClickMetadata, E as EVENT_SEMANTICS, b as EventCategory, c as EventClientVisibility, d as EventConfig, e as EventKind, f as EventMetadata, g as EventName, h as EventOutcomeRole, i as EventSemantics, F as FormDetailsConfig, j as FormDetailsMetadata, k as FormStartConfig, l as FormStartMetadata, m as FormStepConfig, n as FormStepMetadata, M as ManualEventName, o as MultiPageSessionConfig, p as MultiPageSessionMetadata, P as PageExitConfig, q as PageExitMetadata, r as PageIdentity, s as PageViewConfig, t as PageViewMetadata, u as PhoneClickConfig, v as PhoneClickMetadata, R as RegisteredAutomaticEvents, w as RegisteredManualEvents, S as ScrollDepthConfig, x as ScrollDepthMetadata, y as SdkHeartbeatConfig, z as SdkHeartbeatMetadata, B as SiteLinkArrivalConfig, D as SiteLinkArrivalMetadata, G as SiteLinkClickConfig, H as SiteLinkClickMetadata, I as SpecificPageName, J as SpecificPageVisitConfig, K as SpecificPageVisitMetadata, T as TimeOnSiteConfig, L as TimeOnSiteMetadata, N as TrackableEvent, O as TriggerRegistryConfig, Q as TypedTrackEventOptions, U as TypedTrackingClient, V as getEventSemantics } from './ingest-typed-C3XAjHlH.js';
|
|
7
7
|
export { CountryCode } from 'libphonenumber-js';
|
|
8
8
|
import 'zod/mini';
|
|
9
9
|
import 'zod/v4/core';
|
package/dist/index.js
CHANGED
|
@@ -815,9 +815,18 @@ function parseBookingRules(value) {
|
|
|
815
815
|
special_hours: parseWindowsMap(r.special_hours),
|
|
816
816
|
vehicle_required: r.vehicle_required === true,
|
|
817
817
|
vehicle_deferred: r.vehicle_deferred === true,
|
|
818
|
-
drop_off_options: isStringList(r.drop_off_options) ? r.drop_off_options : []
|
|
818
|
+
drop_off_options: isStringList(r.drop_off_options) ? r.drop_off_options : [],
|
|
819
|
+
booked_counts: parseCounts(r.booked_counts)
|
|
819
820
|
};
|
|
820
821
|
}
|
|
822
|
+
function parseCounts(value) {
|
|
823
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) return {};
|
|
824
|
+
const counts = {};
|
|
825
|
+
for (const [date, count] of Object.entries(value)) {
|
|
826
|
+
if (typeof count === "number" && Number.isInteger(count) && count >= 0) counts[date] = count;
|
|
827
|
+
}
|
|
828
|
+
return counts;
|
|
829
|
+
}
|
|
821
830
|
function parseBookingOption(value) {
|
|
822
831
|
if (!value || typeof value !== "object") return [];
|
|
823
832
|
const o = value;
|
|
@@ -1633,7 +1642,8 @@ function camelRules(rules) {
|
|
|
1633
1642
|
specialHours: rules.special_hours,
|
|
1634
1643
|
vehicleRequired: rules.vehicle_required,
|
|
1635
1644
|
vehicleDeferred: rules.vehicle_deferred,
|
|
1636
|
-
dropOffOptions: rules.drop_off_options
|
|
1645
|
+
dropOffOptions: rules.drop_off_options,
|
|
1646
|
+
bookedCounts: rules.booked_counts ?? {}
|
|
1637
1647
|
};
|
|
1638
1648
|
}
|
|
1639
1649
|
var WEEKDAYS = ["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"];
|
|
@@ -1666,7 +1676,8 @@ function bookableSlots(rules, { timeZone, now = /* @__PURE__ */ new Date() }) {
|
|
|
1666
1676
|
date,
|
|
1667
1677
|
weekday,
|
|
1668
1678
|
morning: [...windows.morning],
|
|
1669
|
-
afternoon: [...windows.afternoon]
|
|
1679
|
+
afternoon: [...windows.afternoon],
|
|
1680
|
+
booked: rules.bookedCounts?.[date] ?? 0
|
|
1670
1681
|
});
|
|
1671
1682
|
}
|
|
1672
1683
|
return days;
|
|
@@ -1767,6 +1778,13 @@ var EVENT_SEMANTICS = {
|
|
|
1767
1778
|
outcomeRole: "engagement",
|
|
1768
1779
|
clientVisibility: "detailed"
|
|
1769
1780
|
},
|
|
1781
|
+
// Adds to the submit it names; counting it as a lead would double every lead.
|
|
1782
|
+
form_details: {
|
|
1783
|
+
label: "Form details added",
|
|
1784
|
+
category: "lead",
|
|
1785
|
+
outcomeRole: "engagement",
|
|
1786
|
+
clientVisibility: "detailed"
|
|
1787
|
+
},
|
|
1770
1788
|
form_submit: {
|
|
1771
1789
|
label: "Form submitted",
|
|
1772
1790
|
category: "lead",
|
|
@@ -1825,7 +1843,6 @@ var jsonValueSchema = z2.lazy(
|
|
|
1825
1843
|
])
|
|
1826
1844
|
).register(z2.globalRegistry, { id: "JsonSerializableValue" });
|
|
1827
1845
|
var contractNameSchema = z2.string().check(z2.regex(/^[a-z][a-z0-9_]{0,47}(:[a-z0-9_-]{1,48})?$/));
|
|
1828
|
-
var contractName = contractNameSchema;
|
|
1829
1846
|
var violationRole = z2.string().check(
|
|
1830
1847
|
z2.maxLength(200),
|
|
1831
1848
|
z2.regex(
|
|
@@ -1837,38 +1854,41 @@ var contractViolationSchema = z2.strictObject({
|
|
|
1837
1854
|
role: z2.nullable(violationRole),
|
|
1838
1855
|
rule: z2.string().check(z2.regex(/^[a-z][a-z_]{0,47}$/))
|
|
1839
1856
|
});
|
|
1857
|
+
var formFieldSchema = z2.strictObject({
|
|
1858
|
+
name: z2.string(),
|
|
1859
|
+
type: z2.string(),
|
|
1860
|
+
label: z2.nullable(z2.string()),
|
|
1861
|
+
value: jsonValueSchema,
|
|
1862
|
+
role: z2.optional(z2.nullable(contractNameSchema))
|
|
1863
|
+
});
|
|
1864
|
+
var formExtraSchema = z2.optional(
|
|
1865
|
+
z2.nullable(
|
|
1866
|
+
z2.array(
|
|
1867
|
+
z2.strictObject({
|
|
1868
|
+
key: z2.string().check(z2.maxLength(64)),
|
|
1869
|
+
label: z2.string().check(z2.maxLength(200)),
|
|
1870
|
+
value: jsonValueSchema
|
|
1871
|
+
})
|
|
1872
|
+
).check(z2.maxLength(20))
|
|
1873
|
+
)
|
|
1874
|
+
);
|
|
1875
|
+
var contractVersionSchema = z2.optional(z2.nullable(z2.int().check(z2.gte(1))));
|
|
1876
|
+
var contractHashSchema = z2.optional(z2.nullable(z2.string().check(z2.maxLength(64))));
|
|
1877
|
+
var formContractViolationsSchema = z2.optional(
|
|
1878
|
+
z2.nullable(z2.array(contractViolationSchema).check(z2.maxLength(MAX_CONTRACT_VIOLATIONS)))
|
|
1879
|
+
);
|
|
1840
1880
|
var formSubmitMetadataSchema = z2.strictObject({
|
|
1841
1881
|
form: z2.strictObject({
|
|
1842
1882
|
id: z2.string(),
|
|
1843
1883
|
action: z2.nullable(z2.string()),
|
|
1844
|
-
fields: z2.optional(
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
})
|
|
1853
|
-
)
|
|
1854
|
-
),
|
|
1855
|
-
kind: z2.optional(z2.nullable(contractName)),
|
|
1856
|
-
contract_version: z2.optional(z2.nullable(z2.int().check(z2.gte(1)))),
|
|
1857
|
-
contract_hash: z2.optional(z2.nullable(z2.string().check(z2.maxLength(64)))),
|
|
1858
|
-
extra: z2.optional(
|
|
1859
|
-
z2.nullable(
|
|
1860
|
-
z2.array(
|
|
1861
|
-
z2.strictObject({
|
|
1862
|
-
key: z2.string().check(z2.maxLength(64)),
|
|
1863
|
-
label: z2.string().check(z2.maxLength(200)),
|
|
1864
|
-
value: jsonValueSchema
|
|
1865
|
-
})
|
|
1866
|
-
).check(z2.maxLength(20))
|
|
1867
|
-
)
|
|
1868
|
-
),
|
|
1869
|
-
contract_violations: z2.optional(
|
|
1870
|
-
z2.nullable(z2.array(contractViolationSchema).check(z2.maxLength(MAX_CONTRACT_VIOLATIONS)))
|
|
1871
|
-
)
|
|
1884
|
+
fields: z2.optional(z2.array(formFieldSchema)),
|
|
1885
|
+
kind: z2.optional(z2.nullable(contractNameSchema)),
|
|
1886
|
+
contract_version: contractVersionSchema,
|
|
1887
|
+
contract_hash: contractHashSchema,
|
|
1888
|
+
extra: formExtraSchema,
|
|
1889
|
+
contract_violations: formContractViolationsSchema,
|
|
1890
|
+
// Minted per submit; a later `form_details` names it to add answers to this lead.
|
|
1891
|
+
submission_id: z2.optional(z2.nullable(z2.uuidv4()))
|
|
1872
1892
|
}),
|
|
1873
1893
|
page: z2.strictObject({
|
|
1874
1894
|
path: z2.string()
|
|
@@ -2000,10 +2020,10 @@ var KNOWN_ROLES = new Set(LEAD_FORM_ROLES);
|
|
|
2000
2020
|
var ROLE_ORDER = new Map(LEAD_FORM_ROLES.map((role, index) => [role, index]));
|
|
2001
2021
|
var ADD_ON = /^add_on:[a-z0-9_-]{1,48}$/;
|
|
2002
2022
|
var CONTRACT_NAME = /^[a-z][a-z0-9_]{0,47}(:[a-z0-9_-]{1,48})?$/;
|
|
2003
|
-
function judgeLeadForm(kind, formId, fields, contracts, settings) {
|
|
2023
|
+
function judgeLeadForm(kind, formId, fields, contracts, settings, { partial = false } = {}) {
|
|
2004
2024
|
const generated = contracts?.contracts[kind];
|
|
2005
2025
|
const live = liveContract(settings.trackingConfig, kind);
|
|
2006
|
-
const violations = check(live === void 0 ? generated : fromLive(live), fields);
|
|
2026
|
+
const violations = check(live === void 0 ? generated : fromLive(live), fields, partial);
|
|
2007
2027
|
const liveHash = live === void 0 ? void 0 : live?.contract_hash ?? null;
|
|
2008
2028
|
if (contracts && (liveHash !== void 0 && (generated?.hash ?? null) !== liveHash || contracts.registryVersion !== LEAD_FORM_REGISTRY_VERSION)) {
|
|
2009
2029
|
violations.push({ role: null, rule: "contract_behind" });
|
|
@@ -2035,7 +2055,7 @@ function fromLive(live) {
|
|
|
2035
2055
|
options: Object.fromEntries(live.options.map((o) => [o.role, o.options.map((x) => x.key)]))
|
|
2036
2056
|
};
|
|
2037
2057
|
}
|
|
2038
|
-
function check(contract, fields) {
|
|
2058
|
+
function check(contract, fields, partial) {
|
|
2039
2059
|
const answered = new Map(fields);
|
|
2040
2060
|
const violations = [];
|
|
2041
2061
|
for (const [role, value] of fields) {
|
|
@@ -2053,6 +2073,7 @@ function check(contract, fields) {
|
|
|
2053
2073
|
violations.push({ role, rule: "unknown_option" });
|
|
2054
2074
|
}
|
|
2055
2075
|
}
|
|
2076
|
+
if (partial) return violations;
|
|
2056
2077
|
for (const { role, requiredWhen } of contract?.requires ?? []) {
|
|
2057
2078
|
const owing = requiredWhen === null || optionKeys(answered.get(requiredWhen.role)).some((key) => requiredWhen.anyOf.includes(key));
|
|
2058
2079
|
if (owing && !answered.has(role)) violations.push({ role, rule: "missing_required" });
|
|
@@ -2721,12 +2742,15 @@ var zSmsWithheldReason = z4.enum([
|
|
|
2721
2742
|
"test_or_bot_session",
|
|
2722
2743
|
"invalid_phone",
|
|
2723
2744
|
"recently_texted",
|
|
2745
|
+
"owner_not_alerted",
|
|
2746
|
+
"no_new_details",
|
|
2724
2747
|
"do_not_contact",
|
|
2725
2748
|
"do_not_text_tag",
|
|
2726
2749
|
"missing_value",
|
|
2727
2750
|
"us_texting_pending",
|
|
2728
2751
|
"us_texting_rejected",
|
|
2729
|
-
"texts_paused"
|
|
2752
|
+
"texts_paused",
|
|
2753
|
+
"outside_nanp"
|
|
2730
2754
|
]);
|
|
2731
2755
|
var zSaleSmsStatusSchema = z4.object({
|
|
2732
2756
|
can_send_now: z4._default(z4.boolean(), false),
|