@aranova/tracking-react 1.13.0 → 1.14.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.
Files changed (36) hide show
  1. package/README.md +26 -0
  2. package/dist/{bookings-C1HMPjQl.d.ts → bookings-CkfA5XOM.d.ts} +283 -8
  3. package/dist/{bookings-CHpplXU7.d.mts → bookings-DFz3BUiP.d.mts} +283 -8
  4. package/dist/client.d.mts +10 -8
  5. package/dist/client.d.ts +10 -8
  6. package/dist/client.js +382 -41
  7. package/dist/client.js.map +1 -1
  8. package/dist/client.mjs +380 -40
  9. package/dist/client.mjs.map +1 -1
  10. package/dist/index.d.mts +8 -180
  11. package/dist/index.d.ts +8 -180
  12. package/dist/index.js +375 -189
  13. package/dist/index.js.map +1 -1
  14. package/dist/index.mjs +372 -189
  15. package/dist/index.mjs.map +1 -1
  16. package/dist/{ingest-typed-sCDoPInT.d.ts → ingest-typed-BO6Arbw-.d.mts} +6 -99
  17. package/dist/{ingest-typed-Ckt4R731.d.mts → ingest-typed-D7I4aQ7p.d.ts} +6 -99
  18. package/dist/{phone-utils-BNiSqeF7.d.mts → phone-utils-CYr6AmEP.d.mts} +231 -3
  19. package/dist/{phone-utils-D12FW8tT.d.ts → phone-utils-CYr6AmEP.d.ts} +231 -3
  20. package/dist/phone.d.mts +1 -2
  21. package/dist/phone.d.ts +1 -2
  22. package/dist/phone.js +2 -2
  23. package/dist/phone.js.map +1 -1
  24. package/dist/phone.mjs +2 -2
  25. package/dist/phone.mjs.map +1 -1
  26. package/dist/{sales-CNvzyF5T.d.ts → sales-C0FMkN4m.d.ts} +1 -1
  27. package/dist/{sales-YUH3bQl9.d.mts → sales-KbTcowYa.d.mts} +1 -1
  28. package/dist/sales.d.mts +3 -3
  29. package/dist/sales.d.ts +3 -3
  30. package/dist/sales.js +1204 -170
  31. package/dist/sales.js.map +1 -1
  32. package/dist/sales.mjs +1204 -170
  33. package/dist/sales.mjs.map +1 -1
  34. package/package.json +1 -1
  35. package/dist/form-submit-CX-CxJjQ.d.mts +0 -47
  36. package/dist/form-submit-CX-CxJjQ.d.ts +0 -47
package/dist/index.d.mts CHANGED
@@ -1,12 +1,11 @@
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, 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-BNiSqeF7.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, G as GtagEnvironmentMap, M as MetaPixelEnvironmentMap, P as ParsedPhone, j as PhoneConfig, k as PhoneDisplayFormat, S as SetConsentOptions, l as TrackedField, m as TrackingInitConfig, n as formatPhone, o as formatPhoneAsTyped, p as getConsentChoice, q as getConsentState, r as onConsentChange, s as optIn, t as optOut, u as parsePhone, v as phoneField, w as resetConsent, x as setConsentState, y as toE164 } from './phone-utils-BNiSqeF7.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-YUH3bQl9.mjs';
5
- 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, C as ConversionConfig, l as ConversionConfigStore, F as FormSubmitField, S as SalesBookingsClient, T as TrackingConfigReference, m as getTrackingConfigRuntime, n as newBookingAttemptKey, r as resolveConversionConfig, o as resolveTrackingConfigUrl } from './bookings-CHpplXU7.mjs';
6
- export { A as AutomaticEventName, B as BookableDay, a as BookingHandoffPrefill, b as BookingIntegration, c as BookingOption, d as BookingOptionGroup, e as BookingProvider, f as BookingRules, C as CtaClickConfig, g as CtaClickMetadata, E as EVENT_SEMANTICS, h as EventCategory, i as EventClientVisibility, j as EventConfig, k as EventKind, l as EventMetadata, m as EventName, n as EventOutcomeRole, o as EventSemantics, F as FormStartConfig, p as FormStartMetadata, q as FormStepConfig, r as FormStepMetadata, M as ManualEventName, s as MultiPageSessionConfig, t as MultiPageSessionMetadata, P as PageExitConfig, u as PageExitMetadata, v as PageIdentity, w as PageViewConfig, x as PageViewMetadata, y as PhoneClickConfig, z as PhoneClickMetadata, R as RegisteredAutomaticEvents, D as RegisteredManualEvents, S as ScrollDepthConfig, G as ScrollDepthMetadata, H as SdkHeartbeatConfig, I as SdkHeartbeatMetadata, J as SiteLinkArrivalConfig, K as SiteLinkArrivalMetadata, L as SiteLinkClickConfig, N as SiteLinkClickMetadata, O as SpecificPageName, Q as SpecificPageVisitConfig, T as SpecificPageVisitMetadata, U as TimeOnSiteConfig, V as TimeOnSiteMetadata, W as TrackableEvent, X as TriggerRegistryConfig, Y as TypedTrackEventOptions, Z as TypedTrackingClient, _ as bookableSlots, $ as buildBookingHandoffUrl, a0 as getBookingIntegration, a1 as getEventSemantics, a2 as groupBookingOptions, a3 as shopToday } from './ingest-typed-Ckt4R731.mjs';
7
- export { F as FormSubmitConfig, a as FormSubmitMetadata, J as JsonValue } from './form-submit-CX-CxJjQ.mjs';
8
- import * as z from 'zod/mini';
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-CYr6AmEP.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-CYr6AmEP.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-KbTcowYa.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 LeadFormExtraField, z as LeadFormFields, A as LeadFormKindDecl, D as LeadFormRequirementDecl, E as LeadFormSubmitInput, G as LeadFormSubmitOptions, H as LeadFormSubmitter, I as LeadFormTimeWindow, J as LeadFormTracking, K as LeadFormValue, S as SalesBookingsClient, T as TrackingConfigReference, M as bookableSlots, N as buildBookingHandoffUrl, O as getBookingIntegration, P as getTrackingConfigRuntime, Q as groupBookingOptions, R as newBookingAttemptKey, U as resolveConversionConfig, V as resolveTrackingConfigUrl, W as shopToday, X as slotFields, Y as timeWindow } from './bookings-DFz3BUiP.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 FormStartConfig, j as FormStartMetadata, k as FormStepConfig, l as FormStepMetadata, M as ManualEventName, m as MultiPageSessionConfig, n as MultiPageSessionMetadata, P as PageExitConfig, o as PageExitMetadata, p as PageIdentity, q as PageViewConfig, r as PageViewMetadata, s as PhoneClickConfig, t as PhoneClickMetadata, R as RegisteredAutomaticEvents, u as RegisteredManualEvents, S as ScrollDepthConfig, v as ScrollDepthMetadata, w as SdkHeartbeatConfig, x as SdkHeartbeatMetadata, y as SiteLinkArrivalConfig, z as SiteLinkArrivalMetadata, B as SiteLinkClickConfig, D as SiteLinkClickMetadata, G as SpecificPageName, H as SpecificPageVisitConfig, I as SpecificPageVisitMetadata, T as TimeOnSiteConfig, J as TimeOnSiteMetadata, K as TrackableEvent, L as TriggerRegistryConfig, N as TypedTrackEventOptions, O as TypedTrackingClient, Q as getEventSemantics } from './ingest-typed-BO6Arbw-.mjs';
9
7
  export { CountryCode } from 'libphonenumber-js';
8
+ import 'zod/mini';
10
9
  import 'zod/v4/core';
11
10
 
12
11
  /**
@@ -100,175 +99,4 @@ interface TrackingClient {
100
99
  destroy: () => void;
101
100
  }
102
101
 
103
- /** Bump-on-change registry version; travels on every contract-typed form_submit. */
104
- declare const LEAD_FORM_REGISTRY_VERSION = 2;
105
- declare const LEAD_FORM_KINDS: readonly ["booking", "quote", "contact", "consult", "callback"];
106
- /** What a form is for; `form_id` stays the instance handle. */
107
- type LeadFormKind = (typeof LEAD_FORM_KINDS)[number];
108
- declare const LEAD_FORM_ROLES: readonly ["given_name", "family_name", "phone", "email", "service", "preferred_date", "preferred_time", "note", "visit", "intent", "vehicle", "drop_off", "address", "patient_type", "matter", "language", "products", "goal", "business_type", "lead_volume", "attribution"];
109
- /** A role from the registry, or `add_on:<key>` for a yes/no extra with its own label. */
110
- type LeadFormRole = (typeof LEAD_FORM_ROLES)[number] | `add_on:${string}`;
111
- declare const LEAD_FORM_PRIMITIVES: readonly ["string", "text", "enum", "multi_enum", "bool", "date", "time_window", "phone", "email", "address", "number"];
112
- type LeadFormPrimitive = (typeof LEAD_FORM_PRIMITIVES)[number];
113
- /** The wire schema of each primitive's value. */
114
- declare const leadFormPrimitiveSchemas: {
115
- readonly string: z.ZodMiniString<string>;
116
- readonly text: z.ZodMiniString<string>;
117
- readonly enum: z.ZodMiniString<string>;
118
- readonly multi_enum: z.ZodMiniArray<z.ZodMiniString<string>>;
119
- readonly bool: z.ZodMiniBoolean<boolean>;
120
- readonly date: z.ZodMiniString<string>;
121
- readonly time_window: z.ZodMiniObject<{
122
- start: z.ZodMiniString<string>;
123
- end: z.ZodMiniNullable<z.ZodMiniString<string>>;
124
- label: z.ZodMiniOptional<z.ZodMiniString<string>>;
125
- }, z.core.$strict>;
126
- readonly phone: z.ZodMiniString<string>;
127
- readonly email: z.ZodMiniString<string>;
128
- readonly address: z.ZodMiniObject<{
129
- line1: z.ZodMiniString<string>;
130
- line2: z.ZodMiniOptional<z.ZodMiniString<string>>;
131
- city: z.ZodMiniOptional<z.ZodMiniString<string>>;
132
- region: z.ZodMiniOptional<z.ZodMiniString<string>>;
133
- postal_code: z.ZodMiniOptional<z.ZodMiniString<string>>;
134
- country: z.ZodMiniOptional<z.ZodMiniString<string>>;
135
- }, z.core.$strict>;
136
- readonly number: z.ZodMiniNumber<number>;
137
- };
138
- interface LeadFormRoleOption {
139
- key: string;
140
- label: string;
141
- isNonAnswer?: true;
142
- }
143
- interface LeadFormRoleSpec {
144
- primitive: LeadFormPrimitive;
145
- smsLabel: string;
146
- contactIdentity?: true;
147
- uninteresting?: true;
148
- options?: readonly LeadFormRoleOption[];
149
- }
150
- /** Every role's primitive and text label; `add_on` is the template for `add_on:<key>`. */
151
- declare const LEAD_FORM_ROLE_SPECS: {
152
- readonly given_name: {
153
- readonly primitive: "string";
154
- readonly smsLabel: "";
155
- readonly contactIdentity: true;
156
- };
157
- readonly family_name: {
158
- readonly primitive: "string";
159
- readonly smsLabel: "";
160
- readonly contactIdentity: true;
161
- };
162
- readonly phone: {
163
- readonly primitive: "phone";
164
- readonly smsLabel: "";
165
- readonly contactIdentity: true;
166
- };
167
- readonly email: {
168
- readonly primitive: "email";
169
- readonly smsLabel: "";
170
- readonly contactIdentity: true;
171
- };
172
- readonly service: {
173
- readonly primitive: "multi_enum";
174
- readonly smsLabel: "Service";
175
- };
176
- readonly preferred_date: {
177
- readonly primitive: "date";
178
- readonly smsLabel: "Date";
179
- };
180
- readonly preferred_time: {
181
- readonly primitive: "time_window";
182
- readonly smsLabel: "Time";
183
- };
184
- readonly note: {
185
- readonly primitive: "text";
186
- readonly smsLabel: "Note";
187
- };
188
- readonly visit: {
189
- readonly primitive: "enum";
190
- readonly smsLabel: "Visit";
191
- readonly options: readonly [{
192
- readonly key: "in-shop";
193
- readonly label: "In shop";
194
- }, {
195
- readonly key: "in-home";
196
- readonly label: "In home";
197
- }, {
198
- readonly key: "remote";
199
- readonly label: "Remote";
200
- }, {
201
- readonly key: "on-site";
202
- readonly label: "On site";
203
- }];
204
- };
205
- readonly intent: {
206
- readonly primitive: "enum";
207
- readonly smsLabel: "Wants";
208
- readonly options: readonly [{
209
- readonly key: "book";
210
- readonly label: "Book";
211
- }, {
212
- readonly key: "quote";
213
- readonly label: "Quote";
214
- }];
215
- };
216
- readonly vehicle: {
217
- readonly primitive: "string";
218
- readonly smsLabel: "Vehicle";
219
- };
220
- readonly drop_off: {
221
- readonly primitive: "enum";
222
- readonly smsLabel: "Drop-off";
223
- readonly options: readonly [{
224
- readonly key: "wait-for-it";
225
- readonly label: "Waiting";
226
- }, {
227
- readonly key: "drop-off";
228
- readonly label: "Dropping off";
229
- }];
230
- };
231
- readonly address: {
232
- readonly primitive: "address";
233
- readonly smsLabel: "Address";
234
- };
235
- readonly patient_type: {
236
- readonly primitive: "enum";
237
- readonly smsLabel: "Patient";
238
- };
239
- readonly matter: {
240
- readonly primitive: "enum";
241
- readonly smsLabel: "Matter";
242
- };
243
- readonly language: {
244
- readonly primitive: "enum";
245
- readonly smsLabel: "Language";
246
- };
247
- readonly products: {
248
- readonly primitive: "multi_enum";
249
- readonly smsLabel: "Products";
250
- };
251
- readonly goal: {
252
- readonly primitive: "enum";
253
- readonly smsLabel: "Goal";
254
- };
255
- readonly business_type: {
256
- readonly primitive: "enum";
257
- readonly smsLabel: "Business";
258
- };
259
- readonly lead_volume: {
260
- readonly primitive: "enum";
261
- readonly smsLabel: "Lead volume";
262
- };
263
- readonly add_on: {
264
- readonly primitive: "bool";
265
- readonly smsLabel: "";
266
- };
267
- readonly attribution: {
268
- readonly primitive: "enum";
269
- readonly smsLabel: "";
270
- readonly uninteresting: true;
271
- };
272
- };
273
-
274
- export { LEAD_FORM_KINDS, LEAD_FORM_PRIMITIVES, LEAD_FORM_REGISTRY_VERSION, LEAD_FORM_ROLES, LEAD_FORM_ROLE_SPECS, type LeadFormKind, type LeadFormPrimitive, type LeadFormRole, type LeadFormRoleOption, type LeadFormRoleSpec, TRACKING_PARAM_KEYS, type TrackingClient, TrackingClientContext, TrackingEventCreatePayload, TrackingInstallSurface, TrackingParams, TrackingSessionUpsertPayload, captureTrackingParamsFromLocation, createTrackingClientContext, createTrackingEventCreatePayload, createTrackingSessionUpsertPayload, leadFormPrimitiveSchemas };
102
+ export { TRACKING_PARAM_KEYS, type TrackingClient, TrackingClientContext, TrackingEventCreatePayload, TrackingInstallSurface, TrackingParams, TrackingSessionUpsertPayload, captureTrackingParamsFromLocation, createTrackingClientContext, createTrackingEventCreatePayload, createTrackingSessionUpsertPayload };
package/dist/index.d.ts CHANGED
@@ -1,12 +1,11 @@
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, 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-D12FW8tT.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, G as GtagEnvironmentMap, M as MetaPixelEnvironmentMap, P as ParsedPhone, j as PhoneConfig, k as PhoneDisplayFormat, S as SetConsentOptions, l as TrackedField, m as TrackingInitConfig, n as formatPhone, o as formatPhoneAsTyped, p as getConsentChoice, q as getConsentState, r as onConsentChange, s as optIn, t as optOut, u as parsePhone, v as phoneField, w as resetConsent, x as setConsentState, y as toE164 } from './phone-utils-D12FW8tT.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-CNvzyF5T.js';
5
- 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, C as ConversionConfig, l as ConversionConfigStore, F as FormSubmitField, S as SalesBookingsClient, T as TrackingConfigReference, m as getTrackingConfigRuntime, n as newBookingAttemptKey, r as resolveConversionConfig, o as resolveTrackingConfigUrl } from './bookings-C1HMPjQl.js';
6
- export { A as AutomaticEventName, B as BookableDay, a as BookingHandoffPrefill, b as BookingIntegration, c as BookingOption, d as BookingOptionGroup, e as BookingProvider, f as BookingRules, C as CtaClickConfig, g as CtaClickMetadata, E as EVENT_SEMANTICS, h as EventCategory, i as EventClientVisibility, j as EventConfig, k as EventKind, l as EventMetadata, m as EventName, n as EventOutcomeRole, o as EventSemantics, F as FormStartConfig, p as FormStartMetadata, q as FormStepConfig, r as FormStepMetadata, M as ManualEventName, s as MultiPageSessionConfig, t as MultiPageSessionMetadata, P as PageExitConfig, u as PageExitMetadata, v as PageIdentity, w as PageViewConfig, x as PageViewMetadata, y as PhoneClickConfig, z as PhoneClickMetadata, R as RegisteredAutomaticEvents, D as RegisteredManualEvents, S as ScrollDepthConfig, G as ScrollDepthMetadata, H as SdkHeartbeatConfig, I as SdkHeartbeatMetadata, J as SiteLinkArrivalConfig, K as SiteLinkArrivalMetadata, L as SiteLinkClickConfig, N as SiteLinkClickMetadata, O as SpecificPageName, Q as SpecificPageVisitConfig, T as SpecificPageVisitMetadata, U as TimeOnSiteConfig, V as TimeOnSiteMetadata, W as TrackableEvent, X as TriggerRegistryConfig, Y as TypedTrackEventOptions, Z as TypedTrackingClient, _ as bookableSlots, $ as buildBookingHandoffUrl, a0 as getBookingIntegration, a1 as getEventSemantics, a2 as groupBookingOptions, a3 as shopToday } from './ingest-typed-sCDoPInT.js';
7
- export { F as FormSubmitConfig, a as FormSubmitMetadata, J as JsonValue } from './form-submit-CX-CxJjQ.js';
8
- import * as z from 'zod/mini';
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-CYr6AmEP.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-CYr6AmEP.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-C0FMkN4m.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 LeadFormExtraField, z as LeadFormFields, A as LeadFormKindDecl, D as LeadFormRequirementDecl, E as LeadFormSubmitInput, G as LeadFormSubmitOptions, H as LeadFormSubmitter, I as LeadFormTimeWindow, J as LeadFormTracking, K as LeadFormValue, S as SalesBookingsClient, T as TrackingConfigReference, M as bookableSlots, N as buildBookingHandoffUrl, O as getBookingIntegration, P as getTrackingConfigRuntime, Q as groupBookingOptions, R as newBookingAttemptKey, U as resolveConversionConfig, V as resolveTrackingConfigUrl, W as shopToday, X as slotFields, Y as timeWindow } from './bookings-CkfA5XOM.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 FormStartConfig, j as FormStartMetadata, k as FormStepConfig, l as FormStepMetadata, M as ManualEventName, m as MultiPageSessionConfig, n as MultiPageSessionMetadata, P as PageExitConfig, o as PageExitMetadata, p as PageIdentity, q as PageViewConfig, r as PageViewMetadata, s as PhoneClickConfig, t as PhoneClickMetadata, R as RegisteredAutomaticEvents, u as RegisteredManualEvents, S as ScrollDepthConfig, v as ScrollDepthMetadata, w as SdkHeartbeatConfig, x as SdkHeartbeatMetadata, y as SiteLinkArrivalConfig, z as SiteLinkArrivalMetadata, B as SiteLinkClickConfig, D as SiteLinkClickMetadata, G as SpecificPageName, H as SpecificPageVisitConfig, I as SpecificPageVisitMetadata, T as TimeOnSiteConfig, J as TimeOnSiteMetadata, K as TrackableEvent, L as TriggerRegistryConfig, N as TypedTrackEventOptions, O as TypedTrackingClient, Q as getEventSemantics } from './ingest-typed-D7I4aQ7p.js';
9
7
  export { CountryCode } from 'libphonenumber-js';
8
+ import 'zod/mini';
10
9
  import 'zod/v4/core';
11
10
 
12
11
  /**
@@ -100,175 +99,4 @@ interface TrackingClient {
100
99
  destroy: () => void;
101
100
  }
102
101
 
103
- /** Bump-on-change registry version; travels on every contract-typed form_submit. */
104
- declare const LEAD_FORM_REGISTRY_VERSION = 2;
105
- declare const LEAD_FORM_KINDS: readonly ["booking", "quote", "contact", "consult", "callback"];
106
- /** What a form is for; `form_id` stays the instance handle. */
107
- type LeadFormKind = (typeof LEAD_FORM_KINDS)[number];
108
- declare const LEAD_FORM_ROLES: readonly ["given_name", "family_name", "phone", "email", "service", "preferred_date", "preferred_time", "note", "visit", "intent", "vehicle", "drop_off", "address", "patient_type", "matter", "language", "products", "goal", "business_type", "lead_volume", "attribution"];
109
- /** A role from the registry, or `add_on:<key>` for a yes/no extra with its own label. */
110
- type LeadFormRole = (typeof LEAD_FORM_ROLES)[number] | `add_on:${string}`;
111
- declare const LEAD_FORM_PRIMITIVES: readonly ["string", "text", "enum", "multi_enum", "bool", "date", "time_window", "phone", "email", "address", "number"];
112
- type LeadFormPrimitive = (typeof LEAD_FORM_PRIMITIVES)[number];
113
- /** The wire schema of each primitive's value. */
114
- declare const leadFormPrimitiveSchemas: {
115
- readonly string: z.ZodMiniString<string>;
116
- readonly text: z.ZodMiniString<string>;
117
- readonly enum: z.ZodMiniString<string>;
118
- readonly multi_enum: z.ZodMiniArray<z.ZodMiniString<string>>;
119
- readonly bool: z.ZodMiniBoolean<boolean>;
120
- readonly date: z.ZodMiniString<string>;
121
- readonly time_window: z.ZodMiniObject<{
122
- start: z.ZodMiniString<string>;
123
- end: z.ZodMiniNullable<z.ZodMiniString<string>>;
124
- label: z.ZodMiniOptional<z.ZodMiniString<string>>;
125
- }, z.core.$strict>;
126
- readonly phone: z.ZodMiniString<string>;
127
- readonly email: z.ZodMiniString<string>;
128
- readonly address: z.ZodMiniObject<{
129
- line1: z.ZodMiniString<string>;
130
- line2: z.ZodMiniOptional<z.ZodMiniString<string>>;
131
- city: z.ZodMiniOptional<z.ZodMiniString<string>>;
132
- region: z.ZodMiniOptional<z.ZodMiniString<string>>;
133
- postal_code: z.ZodMiniOptional<z.ZodMiniString<string>>;
134
- country: z.ZodMiniOptional<z.ZodMiniString<string>>;
135
- }, z.core.$strict>;
136
- readonly number: z.ZodMiniNumber<number>;
137
- };
138
- interface LeadFormRoleOption {
139
- key: string;
140
- label: string;
141
- isNonAnswer?: true;
142
- }
143
- interface LeadFormRoleSpec {
144
- primitive: LeadFormPrimitive;
145
- smsLabel: string;
146
- contactIdentity?: true;
147
- uninteresting?: true;
148
- options?: readonly LeadFormRoleOption[];
149
- }
150
- /** Every role's primitive and text label; `add_on` is the template for `add_on:<key>`. */
151
- declare const LEAD_FORM_ROLE_SPECS: {
152
- readonly given_name: {
153
- readonly primitive: "string";
154
- readonly smsLabel: "";
155
- readonly contactIdentity: true;
156
- };
157
- readonly family_name: {
158
- readonly primitive: "string";
159
- readonly smsLabel: "";
160
- readonly contactIdentity: true;
161
- };
162
- readonly phone: {
163
- readonly primitive: "phone";
164
- readonly smsLabel: "";
165
- readonly contactIdentity: true;
166
- };
167
- readonly email: {
168
- readonly primitive: "email";
169
- readonly smsLabel: "";
170
- readonly contactIdentity: true;
171
- };
172
- readonly service: {
173
- readonly primitive: "multi_enum";
174
- readonly smsLabel: "Service";
175
- };
176
- readonly preferred_date: {
177
- readonly primitive: "date";
178
- readonly smsLabel: "Date";
179
- };
180
- readonly preferred_time: {
181
- readonly primitive: "time_window";
182
- readonly smsLabel: "Time";
183
- };
184
- readonly note: {
185
- readonly primitive: "text";
186
- readonly smsLabel: "Note";
187
- };
188
- readonly visit: {
189
- readonly primitive: "enum";
190
- readonly smsLabel: "Visit";
191
- readonly options: readonly [{
192
- readonly key: "in-shop";
193
- readonly label: "In shop";
194
- }, {
195
- readonly key: "in-home";
196
- readonly label: "In home";
197
- }, {
198
- readonly key: "remote";
199
- readonly label: "Remote";
200
- }, {
201
- readonly key: "on-site";
202
- readonly label: "On site";
203
- }];
204
- };
205
- readonly intent: {
206
- readonly primitive: "enum";
207
- readonly smsLabel: "Wants";
208
- readonly options: readonly [{
209
- readonly key: "book";
210
- readonly label: "Book";
211
- }, {
212
- readonly key: "quote";
213
- readonly label: "Quote";
214
- }];
215
- };
216
- readonly vehicle: {
217
- readonly primitive: "string";
218
- readonly smsLabel: "Vehicle";
219
- };
220
- readonly drop_off: {
221
- readonly primitive: "enum";
222
- readonly smsLabel: "Drop-off";
223
- readonly options: readonly [{
224
- readonly key: "wait-for-it";
225
- readonly label: "Waiting";
226
- }, {
227
- readonly key: "drop-off";
228
- readonly label: "Dropping off";
229
- }];
230
- };
231
- readonly address: {
232
- readonly primitive: "address";
233
- readonly smsLabel: "Address";
234
- };
235
- readonly patient_type: {
236
- readonly primitive: "enum";
237
- readonly smsLabel: "Patient";
238
- };
239
- readonly matter: {
240
- readonly primitive: "enum";
241
- readonly smsLabel: "Matter";
242
- };
243
- readonly language: {
244
- readonly primitive: "enum";
245
- readonly smsLabel: "Language";
246
- };
247
- readonly products: {
248
- readonly primitive: "multi_enum";
249
- readonly smsLabel: "Products";
250
- };
251
- readonly goal: {
252
- readonly primitive: "enum";
253
- readonly smsLabel: "Goal";
254
- };
255
- readonly business_type: {
256
- readonly primitive: "enum";
257
- readonly smsLabel: "Business";
258
- };
259
- readonly lead_volume: {
260
- readonly primitive: "enum";
261
- readonly smsLabel: "Lead volume";
262
- };
263
- readonly add_on: {
264
- readonly primitive: "bool";
265
- readonly smsLabel: "";
266
- };
267
- readonly attribution: {
268
- readonly primitive: "enum";
269
- readonly smsLabel: "";
270
- readonly uninteresting: true;
271
- };
272
- };
273
-
274
- export { LEAD_FORM_KINDS, LEAD_FORM_PRIMITIVES, LEAD_FORM_REGISTRY_VERSION, LEAD_FORM_ROLES, LEAD_FORM_ROLE_SPECS, type LeadFormKind, type LeadFormPrimitive, type LeadFormRole, type LeadFormRoleOption, type LeadFormRoleSpec, TRACKING_PARAM_KEYS, type TrackingClient, TrackingClientContext, TrackingEventCreatePayload, TrackingInstallSurface, TrackingParams, TrackingSessionUpsertPayload, captureTrackingParamsFromLocation, createTrackingClientContext, createTrackingEventCreatePayload, createTrackingSessionUpsertPayload, leadFormPrimitiveSchemas };
102
+ export { TRACKING_PARAM_KEYS, type TrackingClient, TrackingClientContext, TrackingEventCreatePayload, TrackingInstallSurface, TrackingParams, TrackingSessionUpsertPayload, captureTrackingParamsFromLocation, createTrackingClientContext, createTrackingEventCreatePayload, createTrackingSessionUpsertPayload };