@aranova/tracking-next 0.24.0 → 0.25.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.
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { a as ConversionConfigStore, c as TrackingConfigRuntime } from './tracking-config-runtime-BnUlS_Ae.js';
2
3
  import { CountryCode } from 'libphonenumber-js';
3
4
  import { A as ApiTransportConfig, a as apiRequest } from './request-Doq36Rt0.js';
4
5
  import './date-BHetnL7s.js';
@@ -13,195 +14,6 @@ declare function stashUserData(data: ConversionUserData, country?: CountryCode):
13
14
  /** Drop everything (consent denial, tests). */
14
15
  declare function clearStashedUserData(): void;
15
16
 
16
- interface ServiceFiring {
17
- send_to: string;
18
- /** Action's configured default value (cents); the SDK fires it only when a sale has no amount. */
19
- value_cents?: number | null;
20
- currency?: string | null;
21
- }
22
- /** Serializable on-page trigger (owned by tracking-core/src/events/trigger-spec.ts). The shape
23
- * varies by `event_type`; only the parameter for that type is set. */
24
- interface ConfigTriggerSpec {
25
- event_type: string;
26
- threshold_percent?: number;
27
- threshold_seconds?: number;
28
- page_threshold?: number;
29
- page_name?: string;
30
- }
31
- /** One unified conversion goal: a revenue `sale` or an on-page `event`. */
32
- interface ConversionGoal {
33
- key: string;
34
- label?: string;
35
- kind: "sale" | "event";
36
- /** Structured fire-when for event-goals; null for sales. */
37
- trigger: ConfigTriggerSpec | null;
38
- firing: ServiceFiring | null;
39
- }
40
- interface ConversionConfig {
41
- schema_version: number;
42
- config_version: number;
43
- business_id?: string;
44
- customer_id?: string | null;
45
- environment?: string;
46
- google_tracking_state: "active" | "disabled";
47
- gtag_ids: Record<string, string>;
48
- meta_pixel_ids: Record<string, string>;
49
- /** LEGACY: sale-goals only (for pre-unified-goal readers). */
50
- services: Array<{
51
- key: string;
52
- label?: string;
53
- firing: ServiceFiring | null;
54
- }>;
55
- /** Unified goal list (sales + on-page events). Superset of `services`. */
56
- goals: ConversionGoal[];
57
- }
58
- interface ConversionConfigStore {
59
- /** Firing config for a goal/service key, or null when it doesn't fire on-site. */
60
- getFiring(key: string): ServiceFiring | null;
61
- /** The full goal for a key, or null when unknown. */
62
- getGoal(key: string): ConversionGoal | null;
63
- /** Every adopted goal (sales + events). */
64
- listGoals(): ConversionGoal[];
65
- /** The currently adopted config (baked / cached fallback until the fetch lands). */
66
- current(): ConversionConfig | null;
67
- /** True once a config is adopted (seeded synchronously from cache/baked, or fetched). */
68
- isReady(): boolean;
69
- /**
70
- * Run `listener` when a config first becomes available — immediately if already
71
- * ready, otherwise on the first adopt. Lets auto-fire replay automatic events that
72
- * occurred before the async CDN fetch resolved. Returns an unsubscribe fn.
73
- */
74
- onResolve(listener: () => void): () => void;
75
- /** Force a background revalidate against the CDN object. */
76
- revalidate(): Promise<void>;
77
- }
78
- interface ResolveConversionConfigOptions {
79
- /** Full URL of the per-business CDN object. */
80
- cdnUrl: string;
81
- /** Offline-correct fallback (e.g. the CLI-baked snapshot). */
82
- baked?: ConversionConfig | null;
83
- /** Injectable for tests / non-global-fetch runtimes. */
84
- fetchImpl?: typeof fetch;
85
- }
86
- /**
87
- * Resolve the config with stale-while-revalidate: seed synchronously from the
88
- * sessionStorage cache (or the baked fallback), then conditionally re-fetch the CDN object
89
- * with `If-None-Match`. A fetched object is adopted only if its `config_version` is strictly
90
- * greater than what's cached, so a reordered edge copy can't downgrade fresher state.
91
- * Non-blocking and browser-only; a failed fetch leaves the seed in place.
92
- */
93
- declare function resolveConversionConfig(options: ResolveConversionConfigOptions): ConversionConfigStore;
94
-
95
- /**
96
- * Where a business's published tracking config lives.
97
- *
98
- * `businessId` + `environment` are the stable identity; the ORIGIN it is fetched
99
- * from is deployment-specific (production CDN vs. a local object store), which is
100
- * why `cdnBaseUrl` exists. Codegen bakes only the identity, so one committed
101
- * generated file works in every environment and only an env var changes.
102
- *
103
- * `cdnUrl` remains supported and WINS when present — every client repo generated
104
- * before `cdnBaseUrl` passes one, and those must keep working untouched.
105
- */
106
- interface TrackingConfigReference {
107
- /**
108
- * Fully-resolved object URL. Optional: omit it and pass `cdnBaseUrl` (or rely
109
- * on the production default) to have it composed from the identity below.
110
- */
111
- cdnUrl?: string;
112
- /**
113
- * Origin (optionally with a path prefix) the config object is served from, e.g.
114
- * `https://demos.aranova.io` in production or
115
- * `http://localhost:9100/aranova-demos` against a local MinIO. Ignored when
116
- * `cdnUrl` is set; blank or omitted falls back to {@link DEFAULT_CDN_BASE_URL}.
117
- * `tracking-cli gen` wires this to an env var so retargeting is config, not code.
118
- */
119
- cdnBaseUrl?: string;
120
- businessId: string;
121
- environment: "production" | "test";
122
- }
123
- /**
124
- * The URL a reference resolves to. An explicit `cdnUrl` wins (back-compat);
125
- * otherwise compose from `cdnBaseUrl` (or the production default).
126
- *
127
- * A blank/whitespace `cdnBaseUrl` is treated as UNSET rather than composed: the
128
- * generated module reads it from an env var, and a var that is present-but-empty
129
- * (a stray `NEXT_PUBLIC_ARANOVA_CDN_BASE_URL=` line) would otherwise produce
130
- * `/tracking-config/...` — a same-origin request to the client's own site.
131
- */
132
- declare function resolveTrackingConfigUrl(ref: TrackingConfigReference): string;
133
- type RuntimeState = "unconfirmed" | "active" | "tombstone";
134
- interface QueuedConversion {
135
- key: string;
136
- value?: number | null;
137
- currency?: string | null;
138
- transactionId?: string | null;
139
- }
140
- type TrackingConfigConversionOptions = Omit<QueuedConversion, "key">;
141
- interface QueuedPageView {
142
- href: string;
143
- title: string | null;
144
- referrer: string | null;
145
- }
146
- declare class TrackingConfigRuntime {
147
- readonly ref: TrackingConfigReference;
148
- private readonly fetchImpl;
149
- /** Resolved config URL — see the constructor for why it is computed once. */
150
- private readonly url;
151
- private current;
152
- private etag;
153
- private stateValue;
154
- private confirmedAt;
155
- private authorityGeneration;
156
- private inFlight;
157
- private flushInFlight;
158
- private flushRequested;
159
- private retryTimer;
160
- private started;
161
- /** Consecutive failed authority attempts — drives the revalidate backoff. */
162
- private authorityFailures;
163
- /** Epoch ms before which `ensureAuthority` must not issue another request. */
164
- private nextAuthorityAttemptAt;
165
- private readonly conversionQueue;
166
- private readonly automaticQueue;
167
- private readonly pageQueue;
168
- private readonly listeners;
169
- constructor(ref: TrackingConfigReference, fetchImpl?: typeof fetch);
170
- /** The URL this runtime actually fetches (composed or explicit). */
171
- configUrl(): string;
172
- /**
173
- * Explicitly start authority resolution and Google-tag bootstrap.
174
- *
175
- * Idempotent so framework effects can call it after hydration without
176
- * depending on constructor timing.
177
- */
178
- start(): void;
179
- state(): RuntimeState;
180
- config(): ConversionConfig | null;
181
- __unsafeExpireAuthorityForTests(): void;
182
- /** Queue depths — asserted by tests to pin the bound. */
183
- __queueDepthsForTests(): {
184
- conversions: number;
185
- automatic: number;
186
- pages: number;
187
- };
188
- subscribe(listener: () => void): () => void;
189
- ensureAuthority(): Promise<boolean>;
190
- revalidate(): Promise<void>;
191
- private revalidateAuthority;
192
- queuePageView(snapshot?: QueuedPageView | null): void;
193
- fireConversion(key: string, options?: TrackingConfigConversionOptions): void;
194
- queueAutomaticEvent(eventType: string, metadata: Record<string, unknown>, transactionPath: string, transactionScope: string): void;
195
- listGoals(): ConversionGoal[];
196
- private revalidateNow;
197
- private expireAuthority;
198
- private confirm;
199
- private flush;
200
- private scheduleRetry;
201
- private flushNow;
202
- }
203
- declare function getTrackingConfigRuntime(ref: TrackingConfigReference, fetchImpl?: typeof fetch): TrackingConfigRuntime;
204
-
205
17
  /**
206
18
  * Sales / Conversions wire schemas — the client-side source of truth.
207
19
  *
@@ -1005,4 +817,4 @@ interface PublicServiceItem {
1005
817
  */
1006
818
  declare function fetchServices(config: SalesTransportConfig): Promise<PublicServiceItem[]>;
1007
819
 
1008
- export { type SalesClientConfig as $, type SaleItem as A, type BusinessConfig as B, type ConversionConfig as C, type DistinctCustomersByCurrency as D, type SaleItemInput as E, type SaleKeysetSortField as F, type Granularity as G, type SaleListPage as H, type SaleListQuery as I, type SaleListQueryV2 as J, type SaleService as K, type SaleServiceInput as L, type SaleSortField as M, NAMED_RANGES as N, type SaleSortOrder as O, type PublicServiceItem as P, type SaleSummary as Q, type SaleSummaryPrevious as R, SUPPORTED_CURRENCIES as S, type TrackingConfigReference as T, type SaleSummaryQuery as U, type SaleSummaryQueryV2 as V, type SaleSummaryV2 as W, type SaleUpdateInput as X, type SalesBusinessClient as Y, type SalesCategoryBreakdown as Z, type SalesClient as _, type BusinessConfigFeatures as a, type SalesCustomersClient as a0, type SalesServiceBreakdown as a1, type SalesTransportConfig as a2, type SalesTrendPoint as a3, type SummaryCurrencyDelta as a4, type SummaryDeltas as a5, type SummaryWindow as a6, type SupportedCurrency as a7, TRACKING_RANGES as a8, type TrackingOverviewRange as a9, clearStashedUserData as aa, createSalesClient as ab, fetchServices as ac, formatMoney as ad, fromMinor as ae, getTrackingConfigRuntime as af, resolveConversionConfig as ag, resolveTrackingConfigUrl as ah, saleCreateSchema as ai, saleItemSchema as aj, saleServiceSchema as ak, saleUpdateSchema as al, salesRequest as am, stashUserData as an, toMinor as ao, type BusinessConfigService as b, type CompareTo as c, type ConversionConfigStore as d, type ConversionUserData as e, type CurrencyRevenue as f, type CustomerCurrencyDelta as g, type CustomerCurrencyTotal as h, type CustomerGetOptions as i, type CustomerGetResult as j, type CustomerKpis as k, type CustomerKpisDeltas as l, type CustomerKpisPrevious as m, type CustomerListPage as n, type CustomerListQuery as o, type CustomerProfile as p, type CustomerSegment as q, type CustomerSegmentCount as r, type CustomerSortField as s, type CustomerSummary as t, type CustomerSummaryQuery as u, type NamedRange as v, type Sale as w, type SaleCursorPage as x, type SaleFilters as y, type SaleInput as z };
820
+ export { type SalesTransportConfig as $, type SaleKeysetSortField as A, type BusinessConfig as B, type CompareTo as C, type DistinctCustomersByCurrency as D, type SaleListPage as E, type SaleListQuery as F, type Granularity as G, type SaleListQueryV2 as H, type SaleService as I, type SaleServiceInput as J, type SaleSortField as K, type SaleSortOrder as L, type SaleSummary as M, NAMED_RANGES as N, type SaleSummaryPrevious as O, type PublicServiceItem as P, type SaleSummaryQuery as Q, type SaleSummaryQueryV2 as R, SUPPORTED_CURRENCIES as S, type SaleSummaryV2 as T, type SaleUpdateInput as U, type SalesBusinessClient as V, type SalesCategoryBreakdown as W, type SalesClient as X, type SalesClientConfig as Y, type SalesCustomersClient as Z, type SalesServiceBreakdown as _, type BusinessConfigFeatures as a, type SalesTrendPoint as a0, type SummaryCurrencyDelta as a1, type SummaryDeltas as a2, type SummaryWindow as a3, type SupportedCurrency as a4, TRACKING_RANGES as a5, type TrackingOverviewRange as a6, clearStashedUserData as a7, createSalesClient as a8, fetchServices as a9, formatMoney as aa, fromMinor as ab, saleCreateSchema as ac, saleItemSchema as ad, saleServiceSchema as ae, saleUpdateSchema as af, salesRequest as ag, stashUserData as ah, toMinor as ai, type BusinessConfigService as b, type ConversionUserData as c, type CurrencyRevenue as d, type CustomerCurrencyDelta as e, type CustomerCurrencyTotal as f, type CustomerGetOptions as g, type CustomerGetResult as h, type CustomerKpis as i, type CustomerKpisDeltas as j, type CustomerKpisPrevious as k, type CustomerListPage as l, type CustomerListQuery as m, type CustomerProfile as n, type CustomerSegment as o, type CustomerSegmentCount as p, type CustomerSortField as q, type CustomerSummary as r, type CustomerSummaryQuery as s, type NamedRange as t, type Sale as u, type SaleCursorPage as v, type SaleFilters as w, type SaleInput as x, type SaleItem as y, type SaleItemInput as z };
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { a as ConversionConfigStore, c as TrackingConfigRuntime } from './tracking-config-runtime-BnUlS_Ae.mjs';
2
3
  import { CountryCode } from 'libphonenumber-js';
3
4
  import { A as ApiTransportConfig, a as apiRequest } from './request-Doq36Rt0.mjs';
4
5
  import './date-BHetnL7s.mjs';
@@ -13,195 +14,6 @@ declare function stashUserData(data: ConversionUserData, country?: CountryCode):
13
14
  /** Drop everything (consent denial, tests). */
14
15
  declare function clearStashedUserData(): void;
15
16
 
16
- interface ServiceFiring {
17
- send_to: string;
18
- /** Action's configured default value (cents); the SDK fires it only when a sale has no amount. */
19
- value_cents?: number | null;
20
- currency?: string | null;
21
- }
22
- /** Serializable on-page trigger (owned by tracking-core/src/events/trigger-spec.ts). The shape
23
- * varies by `event_type`; only the parameter for that type is set. */
24
- interface ConfigTriggerSpec {
25
- event_type: string;
26
- threshold_percent?: number;
27
- threshold_seconds?: number;
28
- page_threshold?: number;
29
- page_name?: string;
30
- }
31
- /** One unified conversion goal: a revenue `sale` or an on-page `event`. */
32
- interface ConversionGoal {
33
- key: string;
34
- label?: string;
35
- kind: "sale" | "event";
36
- /** Structured fire-when for event-goals; null for sales. */
37
- trigger: ConfigTriggerSpec | null;
38
- firing: ServiceFiring | null;
39
- }
40
- interface ConversionConfig {
41
- schema_version: number;
42
- config_version: number;
43
- business_id?: string;
44
- customer_id?: string | null;
45
- environment?: string;
46
- google_tracking_state: "active" | "disabled";
47
- gtag_ids: Record<string, string>;
48
- meta_pixel_ids: Record<string, string>;
49
- /** LEGACY: sale-goals only (for pre-unified-goal readers). */
50
- services: Array<{
51
- key: string;
52
- label?: string;
53
- firing: ServiceFiring | null;
54
- }>;
55
- /** Unified goal list (sales + on-page events). Superset of `services`. */
56
- goals: ConversionGoal[];
57
- }
58
- interface ConversionConfigStore {
59
- /** Firing config for a goal/service key, or null when it doesn't fire on-site. */
60
- getFiring(key: string): ServiceFiring | null;
61
- /** The full goal for a key, or null when unknown. */
62
- getGoal(key: string): ConversionGoal | null;
63
- /** Every adopted goal (sales + events). */
64
- listGoals(): ConversionGoal[];
65
- /** The currently adopted config (baked / cached fallback until the fetch lands). */
66
- current(): ConversionConfig | null;
67
- /** True once a config is adopted (seeded synchronously from cache/baked, or fetched). */
68
- isReady(): boolean;
69
- /**
70
- * Run `listener` when a config first becomes available — immediately if already
71
- * ready, otherwise on the first adopt. Lets auto-fire replay automatic events that
72
- * occurred before the async CDN fetch resolved. Returns an unsubscribe fn.
73
- */
74
- onResolve(listener: () => void): () => void;
75
- /** Force a background revalidate against the CDN object. */
76
- revalidate(): Promise<void>;
77
- }
78
- interface ResolveConversionConfigOptions {
79
- /** Full URL of the per-business CDN object. */
80
- cdnUrl: string;
81
- /** Offline-correct fallback (e.g. the CLI-baked snapshot). */
82
- baked?: ConversionConfig | null;
83
- /** Injectable for tests / non-global-fetch runtimes. */
84
- fetchImpl?: typeof fetch;
85
- }
86
- /**
87
- * Resolve the config with stale-while-revalidate: seed synchronously from the
88
- * sessionStorage cache (or the baked fallback), then conditionally re-fetch the CDN object
89
- * with `If-None-Match`. A fetched object is adopted only if its `config_version` is strictly
90
- * greater than what's cached, so a reordered edge copy can't downgrade fresher state.
91
- * Non-blocking and browser-only; a failed fetch leaves the seed in place.
92
- */
93
- declare function resolveConversionConfig(options: ResolveConversionConfigOptions): ConversionConfigStore;
94
-
95
- /**
96
- * Where a business's published tracking config lives.
97
- *
98
- * `businessId` + `environment` are the stable identity; the ORIGIN it is fetched
99
- * from is deployment-specific (production CDN vs. a local object store), which is
100
- * why `cdnBaseUrl` exists. Codegen bakes only the identity, so one committed
101
- * generated file works in every environment and only an env var changes.
102
- *
103
- * `cdnUrl` remains supported and WINS when present — every client repo generated
104
- * before `cdnBaseUrl` passes one, and those must keep working untouched.
105
- */
106
- interface TrackingConfigReference {
107
- /**
108
- * Fully-resolved object URL. Optional: omit it and pass `cdnBaseUrl` (or rely
109
- * on the production default) to have it composed from the identity below.
110
- */
111
- cdnUrl?: string;
112
- /**
113
- * Origin (optionally with a path prefix) the config object is served from, e.g.
114
- * `https://demos.aranova.io` in production or
115
- * `http://localhost:9100/aranova-demos` against a local MinIO. Ignored when
116
- * `cdnUrl` is set; blank or omitted falls back to {@link DEFAULT_CDN_BASE_URL}.
117
- * `tracking-cli gen` wires this to an env var so retargeting is config, not code.
118
- */
119
- cdnBaseUrl?: string;
120
- businessId: string;
121
- environment: "production" | "test";
122
- }
123
- /**
124
- * The URL a reference resolves to. An explicit `cdnUrl` wins (back-compat);
125
- * otherwise compose from `cdnBaseUrl` (or the production default).
126
- *
127
- * A blank/whitespace `cdnBaseUrl` is treated as UNSET rather than composed: the
128
- * generated module reads it from an env var, and a var that is present-but-empty
129
- * (a stray `NEXT_PUBLIC_ARANOVA_CDN_BASE_URL=` line) would otherwise produce
130
- * `/tracking-config/...` — a same-origin request to the client's own site.
131
- */
132
- declare function resolveTrackingConfigUrl(ref: TrackingConfigReference): string;
133
- type RuntimeState = "unconfirmed" | "active" | "tombstone";
134
- interface QueuedConversion {
135
- key: string;
136
- value?: number | null;
137
- currency?: string | null;
138
- transactionId?: string | null;
139
- }
140
- type TrackingConfigConversionOptions = Omit<QueuedConversion, "key">;
141
- interface QueuedPageView {
142
- href: string;
143
- title: string | null;
144
- referrer: string | null;
145
- }
146
- declare class TrackingConfigRuntime {
147
- readonly ref: TrackingConfigReference;
148
- private readonly fetchImpl;
149
- /** Resolved config URL — see the constructor for why it is computed once. */
150
- private readonly url;
151
- private current;
152
- private etag;
153
- private stateValue;
154
- private confirmedAt;
155
- private authorityGeneration;
156
- private inFlight;
157
- private flushInFlight;
158
- private flushRequested;
159
- private retryTimer;
160
- private started;
161
- /** Consecutive failed authority attempts — drives the revalidate backoff. */
162
- private authorityFailures;
163
- /** Epoch ms before which `ensureAuthority` must not issue another request. */
164
- private nextAuthorityAttemptAt;
165
- private readonly conversionQueue;
166
- private readonly automaticQueue;
167
- private readonly pageQueue;
168
- private readonly listeners;
169
- constructor(ref: TrackingConfigReference, fetchImpl?: typeof fetch);
170
- /** The URL this runtime actually fetches (composed or explicit). */
171
- configUrl(): string;
172
- /**
173
- * Explicitly start authority resolution and Google-tag bootstrap.
174
- *
175
- * Idempotent so framework effects can call it after hydration without
176
- * depending on constructor timing.
177
- */
178
- start(): void;
179
- state(): RuntimeState;
180
- config(): ConversionConfig | null;
181
- __unsafeExpireAuthorityForTests(): void;
182
- /** Queue depths — asserted by tests to pin the bound. */
183
- __queueDepthsForTests(): {
184
- conversions: number;
185
- automatic: number;
186
- pages: number;
187
- };
188
- subscribe(listener: () => void): () => void;
189
- ensureAuthority(): Promise<boolean>;
190
- revalidate(): Promise<void>;
191
- private revalidateAuthority;
192
- queuePageView(snapshot?: QueuedPageView | null): void;
193
- fireConversion(key: string, options?: TrackingConfigConversionOptions): void;
194
- queueAutomaticEvent(eventType: string, metadata: Record<string, unknown>, transactionPath: string, transactionScope: string): void;
195
- listGoals(): ConversionGoal[];
196
- private revalidateNow;
197
- private expireAuthority;
198
- private confirm;
199
- private flush;
200
- private scheduleRetry;
201
- private flushNow;
202
- }
203
- declare function getTrackingConfigRuntime(ref: TrackingConfigReference, fetchImpl?: typeof fetch): TrackingConfigRuntime;
204
-
205
17
  /**
206
18
  * Sales / Conversions wire schemas — the client-side source of truth.
207
19
  *
@@ -1005,4 +817,4 @@ interface PublicServiceItem {
1005
817
  */
1006
818
  declare function fetchServices(config: SalesTransportConfig): Promise<PublicServiceItem[]>;
1007
819
 
1008
- export { type SalesClientConfig as $, type SaleItem as A, type BusinessConfig as B, type ConversionConfig as C, type DistinctCustomersByCurrency as D, type SaleItemInput as E, type SaleKeysetSortField as F, type Granularity as G, type SaleListPage as H, type SaleListQuery as I, type SaleListQueryV2 as J, type SaleService as K, type SaleServiceInput as L, type SaleSortField as M, NAMED_RANGES as N, type SaleSortOrder as O, type PublicServiceItem as P, type SaleSummary as Q, type SaleSummaryPrevious as R, SUPPORTED_CURRENCIES as S, type TrackingConfigReference as T, type SaleSummaryQuery as U, type SaleSummaryQueryV2 as V, type SaleSummaryV2 as W, type SaleUpdateInput as X, type SalesBusinessClient as Y, type SalesCategoryBreakdown as Z, type SalesClient as _, type BusinessConfigFeatures as a, type SalesCustomersClient as a0, type SalesServiceBreakdown as a1, type SalesTransportConfig as a2, type SalesTrendPoint as a3, type SummaryCurrencyDelta as a4, type SummaryDeltas as a5, type SummaryWindow as a6, type SupportedCurrency as a7, TRACKING_RANGES as a8, type TrackingOverviewRange as a9, clearStashedUserData as aa, createSalesClient as ab, fetchServices as ac, formatMoney as ad, fromMinor as ae, getTrackingConfigRuntime as af, resolveConversionConfig as ag, resolveTrackingConfigUrl as ah, saleCreateSchema as ai, saleItemSchema as aj, saleServiceSchema as ak, saleUpdateSchema as al, salesRequest as am, stashUserData as an, toMinor as ao, type BusinessConfigService as b, type CompareTo as c, type ConversionConfigStore as d, type ConversionUserData as e, type CurrencyRevenue as f, type CustomerCurrencyDelta as g, type CustomerCurrencyTotal as h, type CustomerGetOptions as i, type CustomerGetResult as j, type CustomerKpis as k, type CustomerKpisDeltas as l, type CustomerKpisPrevious as m, type CustomerListPage as n, type CustomerListQuery as o, type CustomerProfile as p, type CustomerSegment as q, type CustomerSegmentCount as r, type CustomerSortField as s, type CustomerSummary as t, type CustomerSummaryQuery as u, type NamedRange as v, type Sale as w, type SaleCursorPage as x, type SaleFilters as y, type SaleInput as z };
820
+ export { type SalesTransportConfig as $, type SaleKeysetSortField as A, type BusinessConfig as B, type CompareTo as C, type DistinctCustomersByCurrency as D, type SaleListPage as E, type SaleListQuery as F, type Granularity as G, type SaleListQueryV2 as H, type SaleService as I, type SaleServiceInput as J, type SaleSortField as K, type SaleSortOrder as L, type SaleSummary as M, NAMED_RANGES as N, type SaleSummaryPrevious as O, type PublicServiceItem as P, type SaleSummaryQuery as Q, type SaleSummaryQueryV2 as R, SUPPORTED_CURRENCIES as S, type SaleSummaryV2 as T, type SaleUpdateInput as U, type SalesBusinessClient as V, type SalesCategoryBreakdown as W, type SalesClient as X, type SalesClientConfig as Y, type SalesCustomersClient as Z, type SalesServiceBreakdown as _, type BusinessConfigFeatures as a, type SalesTrendPoint as a0, type SummaryCurrencyDelta as a1, type SummaryDeltas as a2, type SummaryWindow as a3, type SupportedCurrency as a4, TRACKING_RANGES as a5, type TrackingOverviewRange as a6, clearStashedUserData as a7, createSalesClient as a8, fetchServices as a9, formatMoney as aa, fromMinor as ab, saleCreateSchema as ac, saleItemSchema as ad, saleServiceSchema as ae, saleUpdateSchema as af, salesRequest as ag, stashUserData as ah, toMinor as ai, type BusinessConfigService as b, type ConversionUserData as c, type CurrencyRevenue as d, type CustomerCurrencyDelta as e, type CustomerCurrencyTotal as f, type CustomerGetOptions as g, type CustomerGetResult as h, type CustomerKpis as i, type CustomerKpisDeltas as j, type CustomerKpisPrevious as k, type CustomerListPage as l, type CustomerListQuery as m, type CustomerProfile as n, type CustomerSegment as o, type CustomerSegmentCount as p, type CustomerSortField as q, type CustomerSummary as r, type CustomerSummaryQuery as s, type NamedRange as t, type Sale as u, type SaleCursorPage as v, type SaleFilters as w, type SaleInput as x, type SaleItem as y, type SaleItemInput as z };
package/dist/sales.d.mts CHANGED
@@ -1,5 +1,6 @@
1
- export { B as BusinessConfig, a as BusinessConfigFeatures, b as BusinessConfigService, c as CompareTo, f as CurrencyRevenue, g as CustomerCurrencyDelta, h as CustomerCurrencyTotal, i as CustomerGetOptions, j as CustomerGetResult, k as CustomerKpis, l as CustomerKpisDeltas, m as CustomerKpisPrevious, n as CustomerListPage, o as CustomerListQuery, p as CustomerProfile, q as CustomerSegment, r as CustomerSegmentCount, s as CustomerSortField, t as CustomerSummary, u as CustomerSummaryQuery, D as DistinctCustomersByCurrency, G as Granularity, N as NAMED_RANGES, v as NamedRange, P as PublicServiceItem, S as SUPPORTED_CURRENCIES, w as Sale, x as SaleCursorPage, y as SaleFilters, z as SaleInput, A as SaleItem, E as SaleItemInput, F as SaleKeysetSortField, H as SaleListPage, I as SaleListQuery, J as SaleListQueryV2, K as SaleService, L as SaleServiceInput, M as SaleSortField, O as SaleSortOrder, Q as SaleSummary, R as SaleSummaryPrevious, U as SaleSummaryQuery, V as SaleSummaryQueryV2, W as SaleSummaryV2, X as SaleUpdateInput, Y as SalesBusinessClient, Z as SalesCategoryBreakdown, _ as SalesClient, $ as SalesClientConfig, a0 as SalesCustomersClient, a1 as SalesServiceBreakdown, a2 as SalesTransportConfig, a3 as SalesTrendPoint, a4 as SummaryCurrencyDelta, a5 as SummaryDeltas, a6 as SummaryWindow, a7 as SupportedCurrency, a8 as TRACKING_RANGES, a9 as TrackingOverviewRange, ab as createSalesClient, ac as fetchServices, ad as formatMoney, ae as fromMinor, ai as saleCreateSchema, aj as saleItemSchema, ak as saleServiceSchema, al as saleUpdateSchema, am as salesRequest, ao as toMinor } from './sales-CmlzRq3u.mjs';
1
+ export { 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, G as Granularity, N as NAMED_RANGES, t as NamedRange, P as PublicServiceItem, S as SUPPORTED_CURRENCIES, u as Sale, v as SaleCursorPage, w as SaleFilters, x as SaleInput, y as SaleItem, z as SaleItemInput, A as SaleKeysetSortField, E as SaleListPage, F as SaleListQuery, H as SaleListQueryV2, I as SaleService, J as SaleServiceInput, K as SaleSortField, L as SaleSortOrder, M as SaleSummary, O as SaleSummaryPrevious, Q as SaleSummaryQuery, R as SaleSummaryQueryV2, T as SaleSummaryV2, U as SaleUpdateInput, V as SalesBusinessClient, W as SalesCategoryBreakdown, X as SalesClient, Y as SalesClientConfig, Z as SalesCustomersClient, _ as SalesServiceBreakdown, $ as SalesTransportConfig, a0 as SalesTrendPoint, a1 as SummaryCurrencyDelta, a2 as SummaryDeltas, a3 as SummaryWindow, a4 as SupportedCurrency, a5 as TRACKING_RANGES, a6 as TrackingOverviewRange, a8 as createSalesClient, a9 as fetchServices, aa as formatMoney, ab as fromMinor, ac as saleCreateSchema, ad as saleItemSchema, ae as saleServiceSchema, af as saleUpdateSchema, ag as salesRequest, ai as toMinor } from './sales-Xs375f6t.mjs';
2
2
  export { A as AranovaApiError, f as formatDateInTz } from './date-BHetnL7s.mjs';
3
3
  import 'zod';
4
+ import './tracking-config-runtime-BnUlS_Ae.mjs';
4
5
  import 'libphonenumber-js';
5
6
  import './request-Doq36Rt0.mjs';
package/dist/sales.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- export { B as BusinessConfig, a as BusinessConfigFeatures, b as BusinessConfigService, c as CompareTo, f as CurrencyRevenue, g as CustomerCurrencyDelta, h as CustomerCurrencyTotal, i as CustomerGetOptions, j as CustomerGetResult, k as CustomerKpis, l as CustomerKpisDeltas, m as CustomerKpisPrevious, n as CustomerListPage, o as CustomerListQuery, p as CustomerProfile, q as CustomerSegment, r as CustomerSegmentCount, s as CustomerSortField, t as CustomerSummary, u as CustomerSummaryQuery, D as DistinctCustomersByCurrency, G as Granularity, N as NAMED_RANGES, v as NamedRange, P as PublicServiceItem, S as SUPPORTED_CURRENCIES, w as Sale, x as SaleCursorPage, y as SaleFilters, z as SaleInput, A as SaleItem, E as SaleItemInput, F as SaleKeysetSortField, H as SaleListPage, I as SaleListQuery, J as SaleListQueryV2, K as SaleService, L as SaleServiceInput, M as SaleSortField, O as SaleSortOrder, Q as SaleSummary, R as SaleSummaryPrevious, U as SaleSummaryQuery, V as SaleSummaryQueryV2, W as SaleSummaryV2, X as SaleUpdateInput, Y as SalesBusinessClient, Z as SalesCategoryBreakdown, _ as SalesClient, $ as SalesClientConfig, a0 as SalesCustomersClient, a1 as SalesServiceBreakdown, a2 as SalesTransportConfig, a3 as SalesTrendPoint, a4 as SummaryCurrencyDelta, a5 as SummaryDeltas, a6 as SummaryWindow, a7 as SupportedCurrency, a8 as TRACKING_RANGES, a9 as TrackingOverviewRange, ab as createSalesClient, ac as fetchServices, ad as formatMoney, ae as fromMinor, ai as saleCreateSchema, aj as saleItemSchema, ak as saleServiceSchema, al as saleUpdateSchema, am as salesRequest, ao as toMinor } from './sales-D_BTsRuM.js';
1
+ export { 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, G as Granularity, N as NAMED_RANGES, t as NamedRange, P as PublicServiceItem, S as SUPPORTED_CURRENCIES, u as Sale, v as SaleCursorPage, w as SaleFilters, x as SaleInput, y as SaleItem, z as SaleItemInput, A as SaleKeysetSortField, E as SaleListPage, F as SaleListQuery, H as SaleListQueryV2, I as SaleService, J as SaleServiceInput, K as SaleSortField, L as SaleSortOrder, M as SaleSummary, O as SaleSummaryPrevious, Q as SaleSummaryQuery, R as SaleSummaryQueryV2, T as SaleSummaryV2, U as SaleUpdateInput, V as SalesBusinessClient, W as SalesCategoryBreakdown, X as SalesClient, Y as SalesClientConfig, Z as SalesCustomersClient, _ as SalesServiceBreakdown, $ as SalesTransportConfig, a0 as SalesTrendPoint, a1 as SummaryCurrencyDelta, a2 as SummaryDeltas, a3 as SummaryWindow, a4 as SupportedCurrency, a5 as TRACKING_RANGES, a6 as TrackingOverviewRange, a8 as createSalesClient, a9 as fetchServices, aa as formatMoney, ab as fromMinor, ac as saleCreateSchema, ad as saleItemSchema, ae as saleServiceSchema, af as saleUpdateSchema, ag as salesRequest, ai as toMinor } from './sales-Bv1tihaB.js';
2
2
  export { A as AranovaApiError, f as formatDateInTz } from './date-BHetnL7s.js';
3
3
  import 'zod';
4
+ import './tracking-config-runtime-BnUlS_Ae.js';
4
5
  import 'libphonenumber-js';
5
6
  import './request-Doq36Rt0.js';
package/dist/server.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { T as TrackingParams } from './phone-utils-FTQnybMz.mjs';
1
+ import { T as TrackingParams } from './phone-utils-BVzSNBf1.mjs';
2
2
  import 'zod';
3
3
  import 'libphonenumber-js';
4
4
 
package/dist/server.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { T as TrackingParams } from './phone-utils-FTQnybMz.js';
1
+ import { T as TrackingParams } from './phone-utils-BVzSNBf1.js';
2
2
  import 'zod';
3
3
  import 'libphonenumber-js';
4
4