@shware/analytics 8.13.0 → 8.13.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 (236) hide show
  1. package/dist/attribution/classify.d.cts +6 -7
  2. package/dist/attribution/classify.d.cts.map +1 -1
  3. package/dist/attribution/classify.d.mts +6 -7
  4. package/dist/attribution/classify.d.mts.map +1 -1
  5. package/dist/attribution/vocabulary.d.cts +24 -25
  6. package/dist/attribution/vocabulary.d.cts.map +1 -1
  7. package/dist/attribution/vocabulary.d.mts +24 -25
  8. package/dist/attribution/vocabulary.d.mts.map +1 -1
  9. package/dist/click-id/index.d.cts +18 -19
  10. package/dist/click-id/index.d.cts.map +1 -1
  11. package/dist/click-id/index.d.mts +18 -19
  12. package/dist/click-id/index.d.mts.map +1 -1
  13. package/dist/constants/storage.d.cts +1 -2
  14. package/dist/constants/storage.d.cts.map +1 -1
  15. package/dist/constants/storage.d.mts +1 -2
  16. package/dist/constants/storage.d.mts.map +1 -1
  17. package/dist/feedback/index.d.cts +1 -2
  18. package/dist/feedback/index.d.cts.map +1 -1
  19. package/dist/feedback/index.d.mts +1 -2
  20. package/dist/feedback/index.d.mts.map +1 -1
  21. package/dist/hooks/use-app-analytics.d.cts +1 -2
  22. package/dist/hooks/use-app-analytics.d.cts.map +1 -1
  23. package/dist/hooks/use-app-analytics.d.mts +1 -2
  24. package/dist/hooks/use-app-analytics.d.mts.map +1 -1
  25. package/dist/hooks/use-outbound-click-analytics.d.cts +1 -2
  26. package/dist/hooks/use-outbound-click-analytics.d.cts.map +1 -1
  27. package/dist/hooks/use-outbound-click-analytics.d.mts +1 -2
  28. package/dist/hooks/use-outbound-click-analytics.d.mts.map +1 -1
  29. package/dist/hooks/use-previous.d.cts +1 -2
  30. package/dist/hooks/use-previous.d.cts.map +1 -1
  31. package/dist/hooks/use-previous.d.mts +1 -2
  32. package/dist/hooks/use-previous.d.mts.map +1 -1
  33. package/dist/hooks/use-report-web-vitals.d.cts +1 -2
  34. package/dist/hooks/use-report-web-vitals.d.cts.map +1 -1
  35. package/dist/hooks/use-report-web-vitals.d.mts +1 -2
  36. package/dist/hooks/use-report-web-vitals.d.mts.map +1 -1
  37. package/dist/hooks/use-track-impression.d.cts +1 -2
  38. package/dist/hooks/use-track-impression.d.cts.map +1 -1
  39. package/dist/hooks/use-track-impression.d.mts +1 -2
  40. package/dist/hooks/use-track-impression.d.mts.map +1 -1
  41. package/dist/hooks/use-uet-id-sync.d.cts +1 -2
  42. package/dist/hooks/use-uet-id-sync.d.cts.map +1 -1
  43. package/dist/hooks/use-uet-id-sync.d.mts +1 -2
  44. package/dist/hooks/use-uet-id-sync.d.mts.map +1 -1
  45. package/dist/hooks/use-web-analytics.d.cts +1 -2
  46. package/dist/hooks/use-web-analytics.d.cts.map +1 -1
  47. package/dist/hooks/use-web-analytics.d.mts +1 -2
  48. package/dist/hooks/use-web-analytics.d.mts.map +1 -1
  49. package/dist/link/index.d.cts +3 -4
  50. package/dist/link/index.d.cts.map +1 -1
  51. package/dist/link/index.d.mts +3 -4
  52. package/dist/link/index.d.mts.map +1 -1
  53. package/dist/native/fbsdk.d.cts +1 -2
  54. package/dist/native/fbsdk.d.cts.map +1 -1
  55. package/dist/native/fbsdk.d.mts +1 -2
  56. package/dist/native/fbsdk.d.mts.map +1 -1
  57. package/dist/native/fingerprint.d.cts +4 -5
  58. package/dist/native/fingerprint.d.cts.map +1 -1
  59. package/dist/native/fingerprint.d.mts +4 -5
  60. package/dist/native/fingerprint.d.mts.map +1 -1
  61. package/dist/native/firebase.d.cts +1 -2
  62. package/dist/native/firebase.d.cts.map +1 -1
  63. package/dist/native/firebase.d.mts +1 -2
  64. package/dist/native/firebase.d.mts.map +1 -1
  65. package/dist/native/posthog.d.cts +1 -2
  66. package/dist/native/posthog.d.cts.map +1 -1
  67. package/dist/native/posthog.d.mts +1 -2
  68. package/dist/native/posthog.d.mts.map +1 -1
  69. package/dist/native/setup.d.cts +4 -5
  70. package/dist/native/setup.d.cts.map +1 -1
  71. package/dist/native/setup.d.mts +4 -5
  72. package/dist/native/setup.d.mts.map +1 -1
  73. package/dist/next/index.cjs +14 -14
  74. package/dist/next/index.cjs.map +1 -1
  75. package/dist/next/index.d.cts +1 -2
  76. package/dist/next/index.d.cts.map +1 -1
  77. package/dist/next/index.d.mts +1 -2
  78. package/dist/next/index.d.mts.map +1 -1
  79. package/dist/next/index.mjs +3 -3
  80. package/dist/react-router/index.d.cts +1 -2
  81. package/dist/react-router/index.d.cts.map +1 -1
  82. package/dist/react-router/index.d.mts +1 -2
  83. package/dist/react-router/index.d.mts.map +1 -1
  84. package/dist/schema/index.d.cts +16 -17
  85. package/dist/schema/index.d.cts.map +1 -1
  86. package/dist/schema/index.d.mts +16 -17
  87. package/dist/schema/index.d.mts.map +1 -1
  88. package/dist/server/action-source.d.cts +3 -4
  89. package/dist/server/action-source.d.cts.map +1 -1
  90. package/dist/server/action-source.d.mts +3 -4
  91. package/dist/server/action-source.d.mts.map +1 -1
  92. package/dist/server/google-data-manager.d.cts +9 -10
  93. package/dist/server/google-data-manager.d.cts.map +1 -1
  94. package/dist/server/google-data-manager.d.mts +9 -10
  95. package/dist/server/google-data-manager.d.mts.map +1 -1
  96. package/dist/server/linkedin-conversions-api.d.cts +4 -5
  97. package/dist/server/linkedin-conversions-api.d.cts.map +1 -1
  98. package/dist/server/linkedin-conversions-api.d.mts +4 -5
  99. package/dist/server/linkedin-conversions-api.d.mts.map +1 -1
  100. package/dist/server/meta-capi.d.cts +5 -6
  101. package/dist/server/meta-capi.d.cts.map +1 -1
  102. package/dist/server/meta-capi.d.mts +5 -6
  103. package/dist/server/meta-capi.d.mts.map +1 -1
  104. package/dist/server/meta-conversions-api.d.cts +4 -5
  105. package/dist/server/meta-conversions-api.d.cts.map +1 -1
  106. package/dist/server/meta-conversions-api.d.mts +4 -5
  107. package/dist/server/meta-conversions-api.d.mts.map +1 -1
  108. package/dist/server/microsoft-conversions-api.d.cts +11 -12
  109. package/dist/server/microsoft-conversions-api.d.cts.map +1 -1
  110. package/dist/server/microsoft-conversions-api.d.mts +11 -12
  111. package/dist/server/microsoft-conversions-api.d.mts.map +1 -1
  112. package/dist/server/openai-conversions-api.d.cts +5 -6
  113. package/dist/server/openai-conversions-api.d.cts.map +1 -1
  114. package/dist/server/openai-conversions-api.d.mts +5 -6
  115. package/dist/server/openai-conversions-api.d.mts.map +1 -1
  116. package/dist/server/page-location.d.cts +1 -2
  117. package/dist/server/page-location.d.cts.map +1 -1
  118. package/dist/server/page-location.d.mts +1 -2
  119. package/dist/server/page-location.d.mts.map +1 -1
  120. package/dist/server/reddit-conversions-api.d.cts +4 -5
  121. package/dist/server/reddit-conversions-api.d.cts.map +1 -1
  122. package/dist/server/reddit-conversions-api.d.mts +4 -5
  123. package/dist/server/reddit-conversions-api.d.mts.map +1 -1
  124. package/dist/setup/index.d.cts +5 -6
  125. package/dist/setup/index.d.cts.map +1 -1
  126. package/dist/setup/index.d.mts +5 -6
  127. package/dist/setup/index.d.mts.map +1 -1
  128. package/dist/setup/session.d.cts +2 -3
  129. package/dist/setup/session.d.cts.map +1 -1
  130. package/dist/setup/session.d.mts +2 -3
  131. package/dist/setup/session.d.mts.map +1 -1
  132. package/dist/tanstack/analytics.d.cts +1 -2
  133. package/dist/tanstack/analytics.d.cts.map +1 -1
  134. package/dist/tanstack/analytics.d.mts +1 -2
  135. package/dist/tanstack/analytics.d.mts.map +1 -1
  136. package/dist/tanstack/middleware.d.cts +3 -4
  137. package/dist/tanstack/middleware.d.cts.map +1 -1
  138. package/dist/tanstack/middleware.d.mts +3 -4
  139. package/dist/tanstack/middleware.d.mts.map +1 -1
  140. package/dist/test/setup.d.cts +3 -4
  141. package/dist/test/setup.d.cts.map +1 -1
  142. package/dist/test/setup.d.mts +3 -4
  143. package/dist/test/setup.d.mts.map +1 -1
  144. package/dist/third-parties/google-analytics.d.cts +2 -3
  145. package/dist/third-parties/google-analytics.d.cts.map +1 -1
  146. package/dist/third-parties/google-analytics.d.mts +2 -3
  147. package/dist/third-parties/google-analytics.d.mts.map +1 -1
  148. package/dist/third-parties/ignored-events.d.cts +1 -2
  149. package/dist/third-parties/ignored-events.d.cts.map +1 -1
  150. package/dist/third-parties/ignored-events.d.mts +1 -2
  151. package/dist/third-parties/ignored-events.d.mts.map +1 -1
  152. package/dist/third-parties/linkedin-insight-tag.d.cts +3 -4
  153. package/dist/third-parties/linkedin-insight-tag.d.cts.map +1 -1
  154. package/dist/third-parties/linkedin-insight-tag.d.mts +3 -4
  155. package/dist/third-parties/linkedin-insight-tag.d.mts.map +1 -1
  156. package/dist/third-parties/meta-pixel.d.cts +2 -3
  157. package/dist/third-parties/meta-pixel.d.cts.map +1 -1
  158. package/dist/third-parties/meta-pixel.d.mts +2 -3
  159. package/dist/third-parties/meta-pixel.d.mts.map +1 -1
  160. package/dist/third-parties/microsoft-uet.d.cts +6 -7
  161. package/dist/third-parties/microsoft-uet.d.cts.map +1 -1
  162. package/dist/third-parties/microsoft-uet.d.mts +6 -7
  163. package/dist/third-parties/microsoft-uet.d.mts.map +1 -1
  164. package/dist/third-parties/openai-pixel.d.cts +2 -3
  165. package/dist/third-parties/openai-pixel.d.cts.map +1 -1
  166. package/dist/third-parties/openai-pixel.d.mts +2 -3
  167. package/dist/third-parties/openai-pixel.d.mts.map +1 -1
  168. package/dist/third-parties/posthog.d.cts +2 -3
  169. package/dist/third-parties/posthog.d.cts.map +1 -1
  170. package/dist/third-parties/posthog.d.mts +2 -3
  171. package/dist/third-parties/posthog.d.mts.map +1 -1
  172. package/dist/third-parties/reddit-pixel.d.cts +2 -3
  173. package/dist/third-parties/reddit-pixel.d.cts.map +1 -1
  174. package/dist/third-parties/reddit-pixel.d.mts +2 -3
  175. package/dist/third-parties/reddit-pixel.d.mts.map +1 -1
  176. package/dist/track/fbq.d.cts +10 -11
  177. package/dist/track/fbq.d.cts.map +1 -1
  178. package/dist/track/fbq.d.mts +10 -11
  179. package/dist/track/fbq.d.mts.map +1 -1
  180. package/dist/track/gtag.d.cts +26 -27
  181. package/dist/track/gtag.d.cts.map +1 -1
  182. package/dist/track/gtag.d.mts +26 -27
  183. package/dist/track/gtag.d.mts.map +1 -1
  184. package/dist/track/index.d.cts +4 -5
  185. package/dist/track/index.d.cts.map +1 -1
  186. package/dist/track/index.d.mts +4 -5
  187. package/dist/track/index.d.mts.map +1 -1
  188. package/dist/track/lintrk.d.cts +1 -2
  189. package/dist/track/lintrk.d.cts.map +1 -1
  190. package/dist/track/lintrk.d.mts +1 -2
  191. package/dist/track/lintrk.d.mts.map +1 -1
  192. package/dist/track/oaiq.d.cts +17 -18
  193. package/dist/track/oaiq.d.cts.map +1 -1
  194. package/dist/track/oaiq.d.mts +17 -18
  195. package/dist/track/oaiq.d.mts.map +1 -1
  196. package/dist/track/rdt.d.cts +10 -11
  197. package/dist/track/rdt.d.cts.map +1 -1
  198. package/dist/track/rdt.d.mts +10 -11
  199. package/dist/track/rdt.d.mts.map +1 -1
  200. package/dist/track/types.d.cts +20 -21
  201. package/dist/track/types.d.cts.map +1 -1
  202. package/dist/track/types.d.mts +20 -21
  203. package/dist/track/types.d.mts.map +1 -1
  204. package/dist/track/uetq.d.cts +8 -9
  205. package/dist/track/uetq.d.cts.map +1 -1
  206. package/dist/track/uetq.d.mts +8 -9
  207. package/dist/track/uetq.d.mts.map +1 -1
  208. package/dist/utils/field.d.cts +1 -2
  209. package/dist/utils/field.d.cts.map +1 -1
  210. package/dist/utils/field.d.mts +1 -2
  211. package/dist/utils/field.d.mts.map +1 -1
  212. package/dist/utils/sha256.d.cts +1 -2
  213. package/dist/utils/sha256.d.cts.map +1 -1
  214. package/dist/utils/sha256.d.mts +1 -2
  215. package/dist/utils/sha256.d.mts.map +1 -1
  216. package/dist/utils/stripe.d.cts +2 -3
  217. package/dist/utils/stripe.d.cts.map +1 -1
  218. package/dist/utils/stripe.d.mts +2 -3
  219. package/dist/utils/stripe.d.mts.map +1 -1
  220. package/dist/visitor/index.d.cts +2 -3
  221. package/dist/visitor/index.d.cts.map +1 -1
  222. package/dist/visitor/index.d.mts +2 -3
  223. package/dist/visitor/index.d.mts.map +1 -1
  224. package/dist/visitor/types.d.cts +4 -5
  225. package/dist/visitor/types.d.cts.map +1 -1
  226. package/dist/visitor/types.d.mts +4 -5
  227. package/dist/visitor/types.d.mts.map +1 -1
  228. package/dist/web/index.d.cts +3 -4
  229. package/dist/web/index.d.cts.map +1 -1
  230. package/dist/web/index.d.mts +3 -4
  231. package/dist/web/index.d.mts.map +1 -1
  232. package/dist/web/page-key.d.cts +1 -2
  233. package/dist/web/page-key.d.cts.map +1 -1
  234. package/dist/web/page-key.d.mts +1 -2
  235. package/dist/web/page-key.d.mts.map +1 -1
  236. package/package.json +27 -27
@@ -1,7 +1,7 @@
1
1
  import { Item } from "./gtag.mjs";
2
2
  import { EventName, TrackName, TrackProperties } from "./types.mjs";
3
3
  //#region src/track/fbq.d.ts
4
- type Content = {
4
+ export type Content = {
5
5
  id: string;
6
6
  quantity: number;
7
7
  item_price?: number;
@@ -15,7 +15,7 @@ type Content = {
15
15
  * reference: https://developers.facebook.com/docs/meta-pixel/advanced/advanced-matching
16
16
  * reference: https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/customer-information-parameters
17
17
  */
18
- type MatchingParameters = {
18
+ export type MatchingParameters = {
19
19
  /** Email: Unhashed lowercase or hashed SHA-256 */
20
20
  em?: string;
21
21
  /** First Name: Lowercase letters */
@@ -124,7 +124,7 @@ type MatchingParameters = {
124
124
  * standard events that support them. Format your parameter object data using JSON. Learn more about
125
125
  * event parameters with Blueprint.
126
126
  */
127
- type ObjectProperties = {
127
+ export type ObjectProperties = {
128
128
  content_category?: string;
129
129
  content_ids?: string[];
130
130
  content_name?: string;
@@ -150,7 +150,7 @@ type ObjectProperties = {
150
150
  /**
151
151
  * reference: https://developers.facebook.com/docs/marketing-api/conversions-api/payload-helper
152
152
  */
153
- type StandardEvents = {
153
+ export type StandardEvents = {
154
154
  AddPaymentInfo: {
155
155
  content_ids?: string[];
156
156
  contents?: Content[];
@@ -229,8 +229,8 @@ type StandardEvents = {
229
229
  type JSONValue = null | string | number | boolean | Array<JSONValue> | {
230
230
  [value: string]: JSONValue;
231
231
  };
232
- type PixelId = `${number}`;
233
- type Options = {
232
+ export type PixelId = `${number}`;
233
+ export type Options = {
234
234
  eventID?: string;
235
235
  };
236
236
  /**
@@ -242,7 +242,7 @@ type Options = {
242
242
  *
243
243
  * reference: https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/customer-information-parameters
244
244
  */
245
- interface FBQ {
245
+ export interface FBQ {
246
246
  /**
247
247
  * reference: https://stackoverflow.com/questions/62304291/sending-user-data-parameters-via-pixel
248
248
  *
@@ -270,11 +270,10 @@ interface FBQ {
270
270
  * Please download this CSV filefor examples of properly normalized and hashed data for the
271
271
  * parameters below.
272
272
  */
273
- declare function normalize(parameters: MatchingParameters): MatchingParameters;
274
- declare function mapItems(items?: Item[]): ObjectProperties;
273
+ export declare function normalize(parameters: MatchingParameters): MatchingParameters;
274
+ export declare function mapItems(items?: Item[]): ObjectProperties;
275
275
  type Mapped<F extends keyof StandardEvents> = ['track', F, StandardEvents[F] & ObjectProperties];
276
276
  type Missed<F extends string> = ['trackCustom', F, Record<string, JSONValue> & ObjectProperties];
277
- declare function mapFBEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>): Mapped<keyof StandardEvents> | Missed<TrackName<T>>;
277
+ export declare function mapFBEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>): Mapped<keyof StandardEvents> | Missed<TrackName<T>>;
278
278
  //#endregion
279
- export { Content, FBQ, MatchingParameters, ObjectProperties, Options, PixelId, StandardEvents, mapFBEvent, mapItems, normalize };
280
279
  //# sourceMappingURL=fbq.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fbq.d.mts","names":[],"sources":["../../src/track/fbq.ts"],"mappings":";;;KAIY;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;;;KAOU;;EAEV;;EAGA;;EAG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A4B,GAAG,eAAe,KAAK;KAC1E,OAAO,oCAAoC,GAAG,eAAe,aAAa;iBAE/D,WAAW,UAAU,WACnC,MAAM,UAAU,IAChB,aAAa,gBAAgB,KAC5B,aAAa,kBAAkB,OAAO,UAAU"}
1
+ {"version":3,"file":"fbq.d.mts","names":[],"sources":["../../src/track/fbq.ts"],"mappings":";;;YAIY;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;;;YAOU;;EAEV;;EAGA;;EAGA;;EAGA;;;;;EAMA;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;;;;;;;;;EAUA;;;;;;;;EASA;;;;;;EAOA;;;;;;EAOA;;;;;EAMA;;;;;;EAOA;;;;;EAMA;;;;;;EAOA;;;;;;EAOA;;;;;EAMA;;;;;EAMA;;;;;;EAOA;;;;;;;YAQU;EACV;EACA;EACA;;;;;;;;;EAUA;EACA,WAAW;EACX;EACA;EACA;EACA;EACA;;EAGA;EACA;;;;;YAMU;EACV;IACE;IACA,WAAW;IACX;IACA;;EAEF;IACE;IACA;IACA,WAAW;IACX;IACA;;EAEF;IACE;IACA,WAAW;IACX;IACA;;EAEF;IACE;IACA;IACA;;EAEF;EACA;EACA;EACA;EACA;IACE;IACA,WAAW;IACX;IACA;IACA;;EAEF;IACE;IACA;;EAEF;IACE;IACA;IACA,WAAW;IACX;IACA;IACA;;EAEF;EACA;IACE;IACA;IACA,WAAW;IACX;IACA;IACA;;EAEF;IACE;IACA;IACA;;EAEF;EACA;IACE;IACA;IACA;;EAEF;IACE;IACA;IACA,WAAW;IACX;IACA;;;KAIC,+CAKD,MAAM;GACH,gBAAgB;;YAEX;YACA;EAAY;;;;;;;;;;;iBAWP;;;;;;;;;;;;;;EAcf,IAAI,cAAc,SAAS,SAAS,aAAa;;EAGjD,IAAI,aAAa,mBAAmB,gBAAgB,SAAS;EAE7D,IAAI,gBAAgB,gBAClB,eACA,OAAO,GACP,aAAa,eAAe,KAAK,kBACjC,UAAU;EAGZ,IACE,qBACA,eACA,aAAa,eAAe,aAAa,kBACzC,UAAU;;EAIZ,IAAI,gBAAgB,gBAClB,qBACA,SAAS,SACT,OAAO,GACP,aAAa,eAAe,KAAK,kBACjC,UAAU;;EAIZ,IACE,2BACA,SAAS,SACT,eACA,aAAa,eAAe,aAAa,kBACzC,UAAU;;;;;;wBAQE,UAAU,YAAY,qBAAqB;wBAc3C,SAAS,QAAQ,SAAS;KAsBrC,OAAO,gBAAgB,4BAA4B,GAAG,eAAe,KAAK;KAC1E,OAAO,oCAAoC,GAAG,eAAe,aAAa;wBAE/D,WAAW,UAAU,WACnC,MAAM,UAAU,IAChB,aAAa,gBAAgB,KAC5B,aAAa,kBAAkB,OAAO,UAAU"}
@@ -2,14 +2,14 @@
2
2
  /** reference: https://support.google.com/analytics/answer/13316687 */
3
3
  declare const reservedWebEventNames: readonly ['app_remove', 'app_store_refund', 'app_store_subscription_cancel', 'app_store_subscription_renew', 'click', 'error', 'file_download', 'first_open', 'first_visit', 'form_start', 'form_submit', 'in_app_purchase', 'page_view', 'scroll', 'session_start', 'user_engagement', 'view_complete', 'video_progress', 'video_start', 'view_search_results'];
4
4
  declare const reservedAppEventNames: readonly ['ad_activeview', 'ad_click', 'ad_exposure', 'ad_impression', 'ad_query', 'ad_reward', 'adunit_exposure', 'app_clear_data', 'app_exception', 'app_install', 'app_remove', 'app_store_refund', 'app_update', 'app_upgrade', 'dynamic_link_app_open', 'dynamic_link_app_update', 'dynamic_link_first_open', 'error', 'firebase_campaign', 'firebase_in_app_message_action', 'firebase_in_app_message_dismiss', 'firebase_in_app_message_impression', 'first_open', 'first_visit', 'in_app_purchase', 'notification_dismiss', 'notification_foreground', 'notification_open', 'notification_receive', 'notification_send', 'os_update', 'screen_view', 'session_start', 'user_engagement'];
5
- declare const reservedEventNames: readonly ["app_remove", "app_store_refund", "app_store_subscription_cancel", "app_store_subscription_renew", "click", "error", "file_download", "first_open", "first_visit", "form_start", "form_submit", "in_app_purchase", "page_view", "scroll", "session_start", "user_engagement", "view_complete", "video_progress", "video_start", "view_search_results", "ad_activeview", "ad_click", "ad_exposure", "ad_impression", "ad_query", "ad_reward", "adunit_exposure", "app_clear_data", "app_exception", "app_install", "app_remove", "app_store_refund", "app_update", "app_upgrade", "dynamic_link_app_open", "dynamic_link_app_update", "dynamic_link_first_open", "error", "firebase_campaign", "firebase_in_app_message_action", "firebase_in_app_message_dismiss", "firebase_in_app_message_impression", "first_open", "first_visit", "in_app_purchase", "notification_dismiss", "notification_foreground", "notification_open", "notification_receive", "notification_send", "os_update", "screen_view", "session_start", "user_engagement"];
5
+ export declare const reservedEventNames: readonly ["app_remove", "app_store_refund", "app_store_subscription_cancel", "app_store_subscription_renew", "click", "error", "file_download", "first_open", "first_visit", "form_start", "form_submit", "in_app_purchase", "page_view", "scroll", "session_start", "user_engagement", "view_complete", "video_progress", "video_start", "view_search_results", "ad_activeview", "ad_click", "ad_exposure", "ad_impression", "ad_query", "ad_reward", "adunit_exposure", "app_clear_data", "app_exception", "app_install", "app_remove", "app_store_refund", "app_update", "app_upgrade", "dynamic_link_app_open", "dynamic_link_app_update", "dynamic_link_first_open", "error", "firebase_campaign", "firebase_in_app_message_action", "firebase_in_app_message_dismiss", "firebase_in_app_message_impression", "first_open", "first_visit", "in_app_purchase", "notification_dismiss", "notification_foreground", "notification_open", "notification_receive", "notification_send", "os_update", "screen_view", "session_start", "user_engagement"];
6
6
  type ReservedWebEventNames = (typeof reservedWebEventNames)[number];
7
7
  type ReservedAppEventNames = (typeof reservedAppEventNames)[number];
8
- type ReservedEventNames = ReservedWebEventNames | ReservedAppEventNames;
9
- type ReservedEventValues = 'cid' | 'currency' | 'customer_id' | 'customerid' | 'dclid' | 'gclid' | 'session_id' | 'sessionid' | 'sfmc_id' | 'sid' | 'srsltid' | 'uid' | 'user_id' | 'userid' | `_${string}` | `firebase_${string}` | `ga_${string}` | `google_${string}` | `gtag.${string}`;
10
- type ReservedUserPropertiesNames = 'cid' | 'customer_id' | 'customerid' | 'first_open_after_install' | 'first_open_time' | 'first_visit_time' | 'google_allow_ad_personalization_signals' | 'last_advertising_id_reset' | 'last_deep_link_referrer' | 'last_gclid' | 'lifetime_user_engagement' | 'non_personalized_ads' | 'session_id' | 'session_number' | 'sessionid' | 'sfmc_id' | 'sid' | 'uid' | 'user_id' | 'userid' | `_${string}` | `firebase_${string}` | `ga_${string}` | `google_${string}`;
11
- type UserPropertiesValue = string | boolean | number | null | undefined;
12
- type UserProperties = {
8
+ export type ReservedEventNames = ReservedWebEventNames | ReservedAppEventNames;
9
+ export type ReservedEventValues = 'cid' | 'currency' | 'customer_id' | 'customerid' | 'dclid' | 'gclid' | 'session_id' | 'sessionid' | 'sfmc_id' | 'sid' | 'srsltid' | 'uid' | 'user_id' | 'userid' | `_${string}` | `firebase_${string}` | `ga_${string}` | `google_${string}` | `gtag.${string}`;
10
+ export type ReservedUserPropertiesNames = 'cid' | 'customer_id' | 'customerid' | 'first_open_after_install' | 'first_open_time' | 'first_visit_time' | 'google_allow_ad_personalization_signals' | 'last_advertising_id_reset' | 'last_deep_link_referrer' | 'last_gclid' | 'lifetime_user_engagement' | 'non_personalized_ads' | 'session_id' | 'session_number' | 'sessionid' | 'sfmc_id' | 'sid' | 'uid' | 'user_id' | 'userid' | `_${string}` | `firebase_${string}` | `ga_${string}` | `google_${string}`;
11
+ export type UserPropertiesValue = string | boolean | number | null | undefined;
12
+ export type UserProperties = {
13
13
  [key: string]: UserPropertiesValue;
14
14
  } & { [key in ReservedUserPropertiesNames]?: never; };
15
15
  /**
@@ -49,7 +49,7 @@ type UserProvidedDataAddress = {
49
49
  * - Format phone numbers according to the E164 standard.
50
50
  * - Remove all periods (.) that precede the domain name in gmail.com and googlemail.com email addresses.
51
51
  */
52
- type UserProvidedData = {
52
+ export type UserProvidedData = {
53
53
  email?: string | string[];
54
54
  /**
55
55
  * User phone number. Must be in E.164 format, which means it must be 11 to 15 digits including a
@@ -60,11 +60,11 @@ type UserProvidedData = {
60
60
  phone_number?: string | string[];
61
61
  address?: UserProvidedDataAddress | UserProvidedDataAddress[];
62
62
  };
63
- type GaId = `G-${Uppercase<string>}`;
64
- type GtmId = `GTM-${Uppercase<string>}`;
65
- type CampaignMedium = 'email' | 'organic' | 'cpc' | 'banner' | 'social' | 'referral' | 'affiliate' | 'video' | 'display' | 'sms' | 'push' | 'qr' | 'audio' | (string & {});
66
- type CampaignSource = 'google' | 'googleads' | 'bing' | 'bingads' | 'metaads' | 'facebook' | 'twitter' | 'linkedin' | 'instagram' | 'tiktok' | 'youtube' | 'newsletter' | `website_${string}` | `affiliate_${string}` | (string & {});
67
- type Campaign = {
63
+ export type GaId = `G-${Uppercase<string>}`;
64
+ export type GtmId = `GTM-${Uppercase<string>}`;
65
+ export type CampaignMedium = 'email' | 'organic' | 'cpc' | 'banner' | 'social' | 'referral' | 'affiliate' | 'video' | 'display' | 'sms' | 'push' | 'qr' | 'audio' | (string & {});
66
+ export type CampaignSource = 'google' | 'googleads' | 'bing' | 'bingads' | 'metaads' | 'facebook' | 'twitter' | 'linkedin' | 'instagram' | 'tiktok' | 'youtube' | 'newsletter' | `website_${string}` | `affiliate_${string}` | (string & {});
67
+ export type Campaign = {
68
68
  id?: string;
69
69
  name?: string;
70
70
  term?: string;
@@ -72,7 +72,7 @@ type Campaign = {
72
72
  medium?: CampaignMedium;
73
73
  source?: CampaignSource;
74
74
  };
75
- type Config = {
75
+ export type Config = {
76
76
  allow_google_signals?: boolean;
77
77
  allow_ad_personalization_signals?: boolean;
78
78
  campaign_content?: string;
@@ -104,7 +104,7 @@ type Config = {
104
104
  user_id?: string;
105
105
  user_properties?: UserProperties;
106
106
  };
107
- type Item = {
107
+ export type Item = {
108
108
  item_id: string;
109
109
  item_name: string;
110
110
  affiliation?: 'Google Store' | (string & {});
@@ -124,18 +124,18 @@ type Item = {
124
124
  price?: number;
125
125
  quantity?: number;
126
126
  };
127
- type PromotionItem = {
127
+ export type PromotionItem = {
128
128
  creative_name?: string;
129
129
  creative_slot?: string;
130
130
  promotion_id?: string;
131
131
  promotion_name?: string;
132
132
  };
133
- type SurveyProperties = {
133
+ export type SurveyProperties = {
134
134
  id?: string;
135
135
  feature?: Lowercase<string>;
136
136
  trigger?: Lowercase<string>;
137
137
  };
138
- type SurveyQA = {
138
+ export type SurveyQA = {
139
139
  q1: string;
140
140
  a1: string;
141
141
  q2?: string;
@@ -150,11 +150,11 @@ type SurveyQA = {
150
150
  a6?: string;
151
151
  completed?: boolean;
152
152
  };
153
- type NPSScore = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | (number & {});
154
- type CASTScore = 1 | 2 | 3 | 4 | 5 | (number & {});
155
- type CESScore = 1 | 2 | 3 | 4 | 5 | (number & {});
153
+ export type NPSScore = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | (number & {});
154
+ export type CASTScore = 1 | 2 | 3 | 4 | 5 | (number & {});
155
+ export type CESScore = 1 | 2 | 3 | 4 | 5 | (number & {});
156
156
  /** ref: https://support.google.com/analytics/answer/9216061 */
157
- type EnhancedMeasurementEvents = {
157
+ export type EnhancedMeasurementEvents = {
158
158
  page_view: {
159
159
  page_path: string;
160
160
  page_title: string;
@@ -225,7 +225,7 @@ type EnhancedMeasurementEvents = {
225
225
  };
226
226
  };
227
227
  /** ref: https://support.google.com/analytics/answer/9234069 */
228
- type AutomaticallyCollectedEvents = EnhancedMeasurementEvents & {
228
+ export type AutomaticallyCollectedEvents = EnhancedMeasurementEvents & {
229
229
  first_visit: {
230
230
  page_path: string;
231
231
  page_title: string;
@@ -294,7 +294,7 @@ type AutomaticallyCollectedEvents = EnhancedMeasurementEvents & {
294
294
  * ref: https://developers.google.com/analytics/devguides/collection/ga4/reference/events?client_type=gtag
295
295
  * ref: https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.Event
296
296
  * */
297
- type RecommendedEvents = {
297
+ export type RecommendedEvents = {
298
298
  add_payment_info: {
299
299
  currency: string;
300
300
  value: number;
@@ -498,7 +498,7 @@ type RecommendedEvents = {
498
498
  * Extra commonly used events that are NOT part of the GA standard event set.
499
499
  * Added to satisfy additional analytics needs.
500
500
  */
501
- type AddedRecommendedEvents = {
501
+ export type AddedRecommendedEvents = {
502
502
  logout: undefined;
503
503
  trial_begin: {
504
504
  currency: string;
@@ -546,12 +546,12 @@ type AddedRecommendedEvents = {
546
546
  };
547
547
  ces_dismissed: SurveyProperties;
548
548
  };
549
- type StandardEvents = AutomaticallyCollectedEvents & RecommendedEvents & AddedRecommendedEvents;
549
+ export type StandardEvents = AutomaticallyCollectedEvents & RecommendedEvents & AddedRecommendedEvents;
550
550
  /**
551
551
  * reference: https://developers.google.com/analytics/devguides/collection/ga4/reference/config
552
552
  * reference: https://developers.google.com/analytics/devguides/collection/ga4/reference/events?client_type=gtag
553
553
  */
554
- interface Gtag {
554
+ export interface Gtag {
555
555
  /**
556
556
  * To disable advertising features based on third-party advertising identifiers, set
557
557
  * allow_google_signals to false.
@@ -758,5 +758,4 @@ interface Gtag {
758
758
  gtag<T extends string>(event: 'event', eventName: T extends keyof StandardEvents ? T : string, eventParams?: T extends keyof StandardEvents ? StandardEvents[T] : Record<string, string | number | boolean | null | undefined>): void;
759
759
  }
760
760
  //#endregion
761
- export { AddedRecommendedEvents, AutomaticallyCollectedEvents, CASTScore, CESScore, Campaign, CampaignMedium, CampaignSource, Config, EnhancedMeasurementEvents, GaId, Gtag, GtmId, Item, NPSScore, PromotionItem, RecommendedEvents, ReservedEventNames, ReservedEventValues, ReservedUserPropertiesNames, StandardEvents, SurveyProperties, SurveyQA, UserProperties, UserPropertiesValue, UserProvidedData, reservedEventNames };
762
761
  //# sourceMappingURL=gtag.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"gtag.d.cts","names":[],"sources":["../../src/track/gtag.ts"],"mappings":";;cACM;cAuBA;cAqCO;KAER,gCAAgC;KAChC,gCAAgC;KACzB,qBAAqB,wBAAwB;KAE7C;KAqBA;KA0BA;KACA;GACT,cAAc;OAEd,OAAO;;;;;;;;;;;;;;;;KAkBL;EACH;EACA;EACA;EACA;;EAEA;EACA;;;;;EAKA;;;;;;;;;;KAWU;EACV;;;;;;;EAOA;EACA,UAAU,0BAA0B;;KAG1B,YAAY;KACZ,eAAe;KAEf;KAgBA;KAiBA;EACV;EACA;EACA;EACA;EACA,SAAS;EACT,SAAS;;KAGC;EACV;EACA;EAEA;EACA;EACA,kBAAkB;EAClB;EACA,kBAAkB;EAClB;;;;;EAMA,WAAW;EAEX;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;EACA,kBAAkB;;KAGR;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;KAGU;EACV;EACA;EACA;EACA;;KAGU;EACV;EACA,UAAU;EACV,UAAU;;KAGA;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;KAGU;KACA;KACA;;KAGA;EACV;IACE;IACA;IACA;IACA;IACA;IACA;;EAIF;IACE;;EAGF;IACE;IACA;IACA;IACA;IACA;IACA;;EAGF;IACE;;EAGF;IACE;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;IACA;;EAGF;IACE;IACA;IACA;IACA;IACA;IACA;;EAGF;IACE;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;;;;KAKQ,+BAA+B;EACzC;IACE;IACA;IACA;IACA;;EAEF;IACE;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF;IAEE;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF;IAEE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;EAIF;EACA;IACE;IACA;;;;;;;KAQQ;EAEV;IACE;IACA;IACA;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA;IACA,OAAO;IACP;;EAEF;IACE;IACA;;EAEF;IACE;IACA;IACA;;EAEF;IACE;IACA;IACA;;EAEF;IACE;IACA;;EAEF;IACE;IACA;IACA;;EAEF;IACE;;EAEF;IACE;IACA;;EAEF;IACE;;EAEF;IACE;IACA;IACA;;EAEF;IACE;IAaA;;EAEF;IACE;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;IACA,QAAQ;IACR;;EAEF;IACE;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;IACA,QAAQ;;EAEV;IACE;IACA;IACA,OAAO;;EAET;IACE;;EAEF;IACE;IACA;;EAEF;IACE;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA;IACA;IACA,SAAS,OAAO;;EAElB;IACE;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;;EAEF;IACE;IACA;IACA;;EAEF;EACA;EACA;IACE;;EAEF;IACE;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA;IACA;IACA,QAAQ,OAAO;;EAEjB;IACE;IACA;IACA;;EAIF;IACE;IACA;IACA;IACA;IACA;IACA;;EAEF;EACA;IACE;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;;;;;;;KAQQ;EACV;EACA;IACE;IACA;IACA;IACA,QAAQ;;EAEV;IACE;IACA;IACA;IACA,QAAQ;;EAGV,cAAc;EACd,aAAa,mBAAmB;EAChC,kBAAkB;;;;;EAKlB,WAAW;EACX,UAAU;IAAqB,OAAO;IAAU;;EAChD,eAAe;;;;;EAKf,YAAY;EACZ,WAAW;IAA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gB,iBAC1B,eAAe,KACf"}
1
+ {"version":3,"file":"gtag.d.cts","names":[],"sources":["../../src/track/gtag.ts"],"mappings":";;cACM;cAuBA;qBAqCO;KAER,gCAAgC;KAChC,gCAAgC;YACzB,qBAAqB,wBAAwB;YAE7C;YAqBA;YA0BA;YACA;GACT,cAAc;OAEd,OAAO;;;;;;;;;;;;;;;;KAkBL;EACH;EACA;EACA;EACA;;EAEA;EACA;;;;;EAKA;;;;;;;;;;YAWU;EACV;;;;;;;EAOA;EACA,UAAU,0BAA0B;;YAG1B,YAAY;YACZ,eAAe;YAEf;YAgBA;YAiBA;EACV;EACA;EACA;EACA;EACA,SAAS;EACT,SAAS;;YAGC;EACV;EACA;EAEA;EACA;EACA,kBAAkB;EAClB;EACA,kBAAkB;EAClB;;;;;EAMA,WAAW;EAEX;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;EACA,kBAAkB;;YAGR;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;YAGU;EACV;EACA;EACA;EACA;;YAGU;EACV;EACA,UAAU;EACV,UAAU;;YAGA;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;YAGU;YACA;YACA;;YAGA;EACV;IACE;IACA;IACA;IACA;IACA;IACA;;EAIF;IACE;;EAGF;IACE;IACA;IACA;IACA;IACA;IACA;;EAGF;IACE;;EAGF;IACE;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;IACA;;EAGF;IACE;IACA;IACA;IACA;IACA;IACA;;EAGF;IACE;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;;;;YAKQ,+BAA+B;EACzC;IACE;IACA;IACA;IACA;;EAEF;IACE;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF;IAEE;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF;IAEE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;EAIF;EACA;IACE;IACA;;;;;;;YAQQ;EAEV;IACE;IACA;IACA;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA;IACA,OAAO;IACP;;EAEF;IACE;IACA;;EAEF;IACE;IACA;IACA;;EAEF;IACE;IACA;IACA;;EAEF;IACE;IACA;;EAEF;IACE;IACA;IACA;;EAEF;IACE;;EAEF;IACE;IACA;;EAEF;IACE;;EAEF;IACE;IACA;IACA;;EAEF;IACE;IAaA;;EAEF;IACE;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;IACA,QAAQ;IACR;;EAEF;IACE;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;IACA,QAAQ;;EAEV;IACE;IACA;IACA,OAAO;;EAET;IACE;;EAEF;IACE;IACA;;EAEF;IACE;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA;IACA;IACA,SAAS,OAAO;;EAElB;IACE;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;;EAEF;IACE;IACA;IACA;;EAEF;EACA;EACA;IACE;;EAEF;IACE;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA;IACA;IACA,QAAQ,OAAO;;EAEjB;IACE;IACA;IACA;;EAIF;IACE;IACA;IACA;IACA;IACA;IACA;;EAEF;EACA;IACE;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;;;;;;;YAQQ;EACV;EACA;IACE;IACA;IACA;IACA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;;;;;EAWtC,KAAK,cAAc,2BAA2B,YAAY;EAE1D,KAAK,cAAc,qBAAqB,MAAM;;;;;EAM9C,KAAK,iBAAiB,MAAM,MAAM,SAAS;EAE3C,KAAK,kBACH,gBACA,WAAW,gBAAgB,iBAAiB,YAC5C,cAAc,gBAAgB,iBAC1B,eAAe,KACf"}
@@ -2,14 +2,14 @@
2
2
  /** reference: https://support.google.com/analytics/answer/13316687 */
3
3
  declare const reservedWebEventNames: readonly ['app_remove', 'app_store_refund', 'app_store_subscription_cancel', 'app_store_subscription_renew', 'click', 'error', 'file_download', 'first_open', 'first_visit', 'form_start', 'form_submit', 'in_app_purchase', 'page_view', 'scroll', 'session_start', 'user_engagement', 'view_complete', 'video_progress', 'video_start', 'view_search_results'];
4
4
  declare const reservedAppEventNames: readonly ['ad_activeview', 'ad_click', 'ad_exposure', 'ad_impression', 'ad_query', 'ad_reward', 'adunit_exposure', 'app_clear_data', 'app_exception', 'app_install', 'app_remove', 'app_store_refund', 'app_update', 'app_upgrade', 'dynamic_link_app_open', 'dynamic_link_app_update', 'dynamic_link_first_open', 'error', 'firebase_campaign', 'firebase_in_app_message_action', 'firebase_in_app_message_dismiss', 'firebase_in_app_message_impression', 'first_open', 'first_visit', 'in_app_purchase', 'notification_dismiss', 'notification_foreground', 'notification_open', 'notification_receive', 'notification_send', 'os_update', 'screen_view', 'session_start', 'user_engagement'];
5
- declare const reservedEventNames: readonly ["app_remove", "app_store_refund", "app_store_subscription_cancel", "app_store_subscription_renew", "click", "error", "file_download", "first_open", "first_visit", "form_start", "form_submit", "in_app_purchase", "page_view", "scroll", "session_start", "user_engagement", "view_complete", "video_progress", "video_start", "view_search_results", "ad_activeview", "ad_click", "ad_exposure", "ad_impression", "ad_query", "ad_reward", "adunit_exposure", "app_clear_data", "app_exception", "app_install", "app_remove", "app_store_refund", "app_update", "app_upgrade", "dynamic_link_app_open", "dynamic_link_app_update", "dynamic_link_first_open", "error", "firebase_campaign", "firebase_in_app_message_action", "firebase_in_app_message_dismiss", "firebase_in_app_message_impression", "first_open", "first_visit", "in_app_purchase", "notification_dismiss", "notification_foreground", "notification_open", "notification_receive", "notification_send", "os_update", "screen_view", "session_start", "user_engagement"];
5
+ export declare const reservedEventNames: readonly ["app_remove", "app_store_refund", "app_store_subscription_cancel", "app_store_subscription_renew", "click", "error", "file_download", "first_open", "first_visit", "form_start", "form_submit", "in_app_purchase", "page_view", "scroll", "session_start", "user_engagement", "view_complete", "video_progress", "video_start", "view_search_results", "ad_activeview", "ad_click", "ad_exposure", "ad_impression", "ad_query", "ad_reward", "adunit_exposure", "app_clear_data", "app_exception", "app_install", "app_remove", "app_store_refund", "app_update", "app_upgrade", "dynamic_link_app_open", "dynamic_link_app_update", "dynamic_link_first_open", "error", "firebase_campaign", "firebase_in_app_message_action", "firebase_in_app_message_dismiss", "firebase_in_app_message_impression", "first_open", "first_visit", "in_app_purchase", "notification_dismiss", "notification_foreground", "notification_open", "notification_receive", "notification_send", "os_update", "screen_view", "session_start", "user_engagement"];
6
6
  type ReservedWebEventNames = (typeof reservedWebEventNames)[number];
7
7
  type ReservedAppEventNames = (typeof reservedAppEventNames)[number];
8
- type ReservedEventNames = ReservedWebEventNames | ReservedAppEventNames;
9
- type ReservedEventValues = 'cid' | 'currency' | 'customer_id' | 'customerid' | 'dclid' | 'gclid' | 'session_id' | 'sessionid' | 'sfmc_id' | 'sid' | 'srsltid' | 'uid' | 'user_id' | 'userid' | `_${string}` | `firebase_${string}` | `ga_${string}` | `google_${string}` | `gtag.${string}`;
10
- type ReservedUserPropertiesNames = 'cid' | 'customer_id' | 'customerid' | 'first_open_after_install' | 'first_open_time' | 'first_visit_time' | 'google_allow_ad_personalization_signals' | 'last_advertising_id_reset' | 'last_deep_link_referrer' | 'last_gclid' | 'lifetime_user_engagement' | 'non_personalized_ads' | 'session_id' | 'session_number' | 'sessionid' | 'sfmc_id' | 'sid' | 'uid' | 'user_id' | 'userid' | `_${string}` | `firebase_${string}` | `ga_${string}` | `google_${string}`;
11
- type UserPropertiesValue = string | boolean | number | null | undefined;
12
- type UserProperties = {
8
+ export type ReservedEventNames = ReservedWebEventNames | ReservedAppEventNames;
9
+ export type ReservedEventValues = 'cid' | 'currency' | 'customer_id' | 'customerid' | 'dclid' | 'gclid' | 'session_id' | 'sessionid' | 'sfmc_id' | 'sid' | 'srsltid' | 'uid' | 'user_id' | 'userid' | `_${string}` | `firebase_${string}` | `ga_${string}` | `google_${string}` | `gtag.${string}`;
10
+ export type ReservedUserPropertiesNames = 'cid' | 'customer_id' | 'customerid' | 'first_open_after_install' | 'first_open_time' | 'first_visit_time' | 'google_allow_ad_personalization_signals' | 'last_advertising_id_reset' | 'last_deep_link_referrer' | 'last_gclid' | 'lifetime_user_engagement' | 'non_personalized_ads' | 'session_id' | 'session_number' | 'sessionid' | 'sfmc_id' | 'sid' | 'uid' | 'user_id' | 'userid' | `_${string}` | `firebase_${string}` | `ga_${string}` | `google_${string}`;
11
+ export type UserPropertiesValue = string | boolean | number | null | undefined;
12
+ export type UserProperties = {
13
13
  [key: string]: UserPropertiesValue;
14
14
  } & { [key in ReservedUserPropertiesNames]?: never; };
15
15
  /**
@@ -49,7 +49,7 @@ type UserProvidedDataAddress = {
49
49
  * - Format phone numbers according to the E164 standard.
50
50
  * - Remove all periods (.) that precede the domain name in gmail.com and googlemail.com email addresses.
51
51
  */
52
- type UserProvidedData = {
52
+ export type UserProvidedData = {
53
53
  email?: string | string[];
54
54
  /**
55
55
  * User phone number. Must be in E.164 format, which means it must be 11 to 15 digits including a
@@ -60,11 +60,11 @@ type UserProvidedData = {
60
60
  phone_number?: string | string[];
61
61
  address?: UserProvidedDataAddress | UserProvidedDataAddress[];
62
62
  };
63
- type GaId = `G-${Uppercase<string>}`;
64
- type GtmId = `GTM-${Uppercase<string>}`;
65
- type CampaignMedium = 'email' | 'organic' | 'cpc' | 'banner' | 'social' | 'referral' | 'affiliate' | 'video' | 'display' | 'sms' | 'push' | 'qr' | 'audio' | (string & {});
66
- type CampaignSource = 'google' | 'googleads' | 'bing' | 'bingads' | 'metaads' | 'facebook' | 'twitter' | 'linkedin' | 'instagram' | 'tiktok' | 'youtube' | 'newsletter' | `website_${string}` | `affiliate_${string}` | (string & {});
67
- type Campaign = {
63
+ export type GaId = `G-${Uppercase<string>}`;
64
+ export type GtmId = `GTM-${Uppercase<string>}`;
65
+ export type CampaignMedium = 'email' | 'organic' | 'cpc' | 'banner' | 'social' | 'referral' | 'affiliate' | 'video' | 'display' | 'sms' | 'push' | 'qr' | 'audio' | (string & {});
66
+ export type CampaignSource = 'google' | 'googleads' | 'bing' | 'bingads' | 'metaads' | 'facebook' | 'twitter' | 'linkedin' | 'instagram' | 'tiktok' | 'youtube' | 'newsletter' | `website_${string}` | `affiliate_${string}` | (string & {});
67
+ export type Campaign = {
68
68
  id?: string;
69
69
  name?: string;
70
70
  term?: string;
@@ -72,7 +72,7 @@ type Campaign = {
72
72
  medium?: CampaignMedium;
73
73
  source?: CampaignSource;
74
74
  };
75
- type Config = {
75
+ export type Config = {
76
76
  allow_google_signals?: boolean;
77
77
  allow_ad_personalization_signals?: boolean;
78
78
  campaign_content?: string;
@@ -104,7 +104,7 @@ type Config = {
104
104
  user_id?: string;
105
105
  user_properties?: UserProperties;
106
106
  };
107
- type Item = {
107
+ export type Item = {
108
108
  item_id: string;
109
109
  item_name: string;
110
110
  affiliation?: 'Google Store' | (string & {});
@@ -124,18 +124,18 @@ type Item = {
124
124
  price?: number;
125
125
  quantity?: number;
126
126
  };
127
- type PromotionItem = {
127
+ export type PromotionItem = {
128
128
  creative_name?: string;
129
129
  creative_slot?: string;
130
130
  promotion_id?: string;
131
131
  promotion_name?: string;
132
132
  };
133
- type SurveyProperties = {
133
+ export type SurveyProperties = {
134
134
  id?: string;
135
135
  feature?: Lowercase<string>;
136
136
  trigger?: Lowercase<string>;
137
137
  };
138
- type SurveyQA = {
138
+ export type SurveyQA = {
139
139
  q1: string;
140
140
  a1: string;
141
141
  q2?: string;
@@ -150,11 +150,11 @@ type SurveyQA = {
150
150
  a6?: string;
151
151
  completed?: boolean;
152
152
  };
153
- type NPSScore = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | (number & {});
154
- type CASTScore = 1 | 2 | 3 | 4 | 5 | (number & {});
155
- type CESScore = 1 | 2 | 3 | 4 | 5 | (number & {});
153
+ export type NPSScore = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | (number & {});
154
+ export type CASTScore = 1 | 2 | 3 | 4 | 5 | (number & {});
155
+ export type CESScore = 1 | 2 | 3 | 4 | 5 | (number & {});
156
156
  /** ref: https://support.google.com/analytics/answer/9216061 */
157
- type EnhancedMeasurementEvents = {
157
+ export type EnhancedMeasurementEvents = {
158
158
  page_view: {
159
159
  page_path: string;
160
160
  page_title: string;
@@ -225,7 +225,7 @@ type EnhancedMeasurementEvents = {
225
225
  };
226
226
  };
227
227
  /** ref: https://support.google.com/analytics/answer/9234069 */
228
- type AutomaticallyCollectedEvents = EnhancedMeasurementEvents & {
228
+ export type AutomaticallyCollectedEvents = EnhancedMeasurementEvents & {
229
229
  first_visit: {
230
230
  page_path: string;
231
231
  page_title: string;
@@ -294,7 +294,7 @@ type AutomaticallyCollectedEvents = EnhancedMeasurementEvents & {
294
294
  * ref: https://developers.google.com/analytics/devguides/collection/ga4/reference/events?client_type=gtag
295
295
  * ref: https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.Event
296
296
  * */
297
- type RecommendedEvents = {
297
+ export type RecommendedEvents = {
298
298
  add_payment_info: {
299
299
  currency: string;
300
300
  value: number;
@@ -498,7 +498,7 @@ type RecommendedEvents = {
498
498
  * Extra commonly used events that are NOT part of the GA standard event set.
499
499
  * Added to satisfy additional analytics needs.
500
500
  */
501
- type AddedRecommendedEvents = {
501
+ export type AddedRecommendedEvents = {
502
502
  logout: undefined;
503
503
  trial_begin: {
504
504
  currency: string;
@@ -546,12 +546,12 @@ type AddedRecommendedEvents = {
546
546
  };
547
547
  ces_dismissed: SurveyProperties;
548
548
  };
549
- type StandardEvents = AutomaticallyCollectedEvents & RecommendedEvents & AddedRecommendedEvents;
549
+ export type StandardEvents = AutomaticallyCollectedEvents & RecommendedEvents & AddedRecommendedEvents;
550
550
  /**
551
551
  * reference: https://developers.google.com/analytics/devguides/collection/ga4/reference/config
552
552
  * reference: https://developers.google.com/analytics/devguides/collection/ga4/reference/events?client_type=gtag
553
553
  */
554
- interface Gtag {
554
+ export interface Gtag {
555
555
  /**
556
556
  * To disable advertising features based on third-party advertising identifiers, set
557
557
  * allow_google_signals to false.
@@ -758,5 +758,4 @@ interface Gtag {
758
758
  gtag<T extends string>(event: 'event', eventName: T extends keyof StandardEvents ? T : string, eventParams?: T extends keyof StandardEvents ? StandardEvents[T] : Record<string, string | number | boolean | null | undefined>): void;
759
759
  }
760
760
  //#endregion
761
- export { AddedRecommendedEvents, AutomaticallyCollectedEvents, CASTScore, CESScore, Campaign, CampaignMedium, CampaignSource, Config, EnhancedMeasurementEvents, GaId, Gtag, GtmId, Item, NPSScore, PromotionItem, RecommendedEvents, ReservedEventNames, ReservedEventValues, ReservedUserPropertiesNames, StandardEvents, SurveyProperties, SurveyQA, UserProperties, UserPropertiesValue, UserProvidedData, reservedEventNames };
762
761
  //# sourceMappingURL=gtag.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"gtag.d.mts","names":[],"sources":["../../src/track/gtag.ts"],"mappings":";;cACM;cAuBA;cAqCO;KAER,gCAAgC;KAChC,gCAAgC;KACzB,qBAAqB,wBAAwB;KAE7C;KAqBA;KA0BA;KACA;GACT,cAAc;OAEd,OAAO;;;;;;;;;;;;;;;;KAkBL;EACH;EACA;EACA;EACA;;EAEA;EACA;;;;;EAKA;;;;;;;;;;KAWU;EACV;;;;;;;EAOA;EACA,UAAU,0BAA0B;;KAG1B,YAAY;KACZ,eAAe;KAEf;KAgBA;KAiBA;EACV;EACA;EACA;EACA;EACA,SAAS;EACT,SAAS;;KAGC;EACV;EACA;EAEA;EACA;EACA,kBAAkB;EAClB;EACA,kBAAkB;EAClB;;;;;EAMA,WAAW;EAEX;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;EACA,kBAAkB;;KAGR;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;KAGU;EACV;EACA;EACA;EACA;;KAGU;EACV;EACA,UAAU;EACV,UAAU;;KAGA;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;KAGU;KACA;KACA;;KAGA;EACV;IACE;IACA;IACA;IACA;IACA;IACA;;EAIF;IACE;;EAGF;IACE;IACA;IACA;IACA;IACA;IACA;;EAGF;IACE;;EAGF;IACE;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;IACA;;EAGF;IACE;IACA;IACA;IACA;IACA;IACA;;EAGF;IACE;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;;;;KAKQ,+BAA+B;EACzC;IACE;IACA;IACA;IACA;;EAEF;IACE;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF;IAEE;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF;IAEE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;EAIF;EACA;IACE;IACA;;;;;;;KAQQ;EAEV;IACE;IACA;IACA;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA;IACA,OAAO;IACP;;EAEF;IACE;IACA;;EAEF;IACE;IACA;IACA;;EAEF;IACE;IACA;IACA;;EAEF;IACE;IACA;;EAEF;IACE;IACA;IACA;;EAEF;IACE;;EAEF;IACE;IACA;;EAEF;IACE;;EAEF;IACE;IACA;IACA;;EAEF;IACE;IAaA;;EAEF;IACE;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;IACA,QAAQ;IACR;;EAEF;IACE;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;IACA,QAAQ;;EAEV;IACE;IACA;IACA,OAAO;;EAET;IACE;;EAEF;IACE;IACA;;EAEF;IACE;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA;IACA;IACA,SAAS,OAAO;;EAElB;IACE;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;;EAEF;IACE;IACA;IACA;;EAEF;EACA;EACA;IACE;;EAEF;IACE;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA;IACA;IACA,QAAQ,OAAO;;EAEjB;IACE;IACA;IACA;;EAIF;IACE;IACA;IACA;IACA;IACA;IACA;;EAEF;EACA;IACE;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;;;;;;;KAQQ;EACV;EACA;IACE;IACA;IACA;IACA,QAAQ;;EAEV;IACE;IACA;IACA;IACA,QAAQ;;EAGV,cAAc;EACd,aAAa,mBAAmB;EAChC,kBAAkB;;;;;EAKlB,WAAW;EACX,UAAU;IAAqB,OAAO;IAAU;;EAChD,eAAe;;;;;EAKf,YAAY;EACZ,WAAW;IAAqB,OAAO;IAAW;;EAClD,gBAAgB;;;;;EAKhB,WAAW;EACX,UAAU;IAAqB,OAAO;IAAU;;EAChD,eAAe;;KAGL,iBAAiB,+BAC3B,oBACA;;;;;UAMe;;;;;;;;;;EAUf,KAAK,cAAc,gCAAgC;;;;;;;;;EAUnD,KAAK,cAAc,4CAA4C;;;;;EAM/D,KAAK,cAAc,4BAA4B;;;;;EA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;EACA;;EAEA;EACA;;;;;EAKA;;;;;;;;;;YAWU;EACV;;;;;;;EAOA;EACA,UAAU,0BAA0B;;YAG1B,YAAY;YACZ,eAAe;YAEf;YAgBA;YAiBA;EACV;EACA;EACA;EACA;EACA,SAAS;EACT,SAAS;;YAGC;EACV;EACA;EAEA;EACA;EACA,kBAAkB;EAClB;EACA,kBAAkB;EAClB;;;;;EAMA,WAAW;EAEX;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;EACA,kBAAkB;;YAGR;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;YAGU;EACV;EACA;EACA;EACA;;YAGU;EACV;EACA,UAAU;EACV,UAAU;;YAGA;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;YAGU;YACA;YACA;;YAGA;EACV;IACE;IACA;IACA;IACA;IACA;IACA;;EAIF;IACE;;EAGF;IACE;IACA;IACA;IACA;IACA;IACA;;EAGF;IACE;;EAGF;IACE;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;IACA;;EAGF;IACE;IACA;IACA;IACA;IACA;IACA;;EAGF;IACE;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;;;;YAKQ,+BAA+B;EACzC;IACE;IACA;IACA;IACA;;EAEF;IACE;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF;IAEE;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF;IAEE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;EAIF;EACA;IACE;IACA;;;;;;;YAQQ;EAEV;IACE;IACA;IACA;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA;IACA,OAAO;IACP;;EAEF;IACE;IACA;;EAEF;IACE;IACA;IACA;;EAEF;IACE;IACA;IACA;;EAEF;IACE;IACA;;EAEF;IACE;IACA;IACA;;EAEF;IACE;;EAEF;IACE;IACA;;EAEF;IACE;;EAEF;IACE;IACA;IACA;;EAEF;IACE;IAaA;;EAEF;IACE;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;IACA,QAAQ;IACR;;EAEF;IACE;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;IACA,QAAQ;;EAEV;IACE;IACA;IACA,OAAO;;EAET;IACE;;EAEF;IACE;IACA;;EAEF;IACE;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA;IACA;IACA,SAAS,OAAO;;EAElB;IACE;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;;EAEF;IACE;IACA;IACA;;EAEF;EACA;EACA;IACE;;EAEF;IACE;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA;IACA,OAAO;;EAET;IACE;IACA;IACA;IACA;IACA,QAAQ,OAAO;;EAEjB;IACE;IACA;IACA;;EAIF;IACE;IACA;IACA;IACA;IACA;IACA;;EAEF;EACA;IACE;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;;;;;;;YAQQ;EACV;EACA;IACE;IACA;IACA;IACA,QAAQ;;EAEV;IACE;IACA;IACA;IACA,QAAQ;;EAGV,cAAc;EACd,aAAa,mBAAmB;EAChC,kBAAkB;;;;;EAKlB,WAAW;EACX,UAAU;IAAqB,OAAO;IAAU;;EAChD,eAAe;;;;;EAKf,YAAY;EACZ,WAAW;IAAqB,OAAO;IAAW;;EAClD,gBAAgB;;;;;EAKhB,WAAW;EACX,UAAU;IAAq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Response, TrackName, TrackProperties } from "./types.cjs";
2
2
  //#region src/track/index.d.ts
3
- interface TrackOptions {
3
+ export interface TrackOptions {
4
4
  enableThirdPartyTracking?: boolean;
5
5
  onSucceed?: (response?: TrackEventResponse[number]) => void;
6
6
  onError?: (error: unknown) => void;
7
7
  }
8
- declare function track<T extends EventName = EventName>(name: TrackName<T>, properties?: TrackProperties<T>, options?: TrackOptions): void;
9
- declare function trackAsync<T extends EventName = EventName>(name: TrackName<T>, properties?: TrackProperties<T>, options?: TrackOptions): Promise<void>;
10
- declare function sendBeacon<T extends EventName = EventName>(name: TrackName<T>, properties?: TrackProperties<T>): void;
8
+ export declare function track<T extends EventName = EventName>(name: TrackName<T>, properties?: TrackProperties<T>, options?: TrackOptions): void;
9
+ export declare function trackAsync<T extends EventName = EventName>(name: TrackName<T>, properties?: TrackProperties<T>, options?: TrackOptions): Promise<void>;
10
+ export declare function sendBeacon<T extends EventName = EventName>(name: TrackName<T>, properties?: TrackProperties<T>): void;
11
11
  //#endregion
12
- export { TrackOptions, sendBeacon, track, trackAsync };
13
12
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/track/index.ts"],"mappings":";;UASiB;EACf;EACA,aAAa,WAAW;EACxB,WAAW;;iBAyLG,MAAM,UAAU,YAAY,WAC1C,MAAM,UAAU,IAChB,aAAa,gBAAgB,IAC7B,UAAS;iBAiBW,WAAW,UAAU,YAAY,WACrD,MAAM,UAAU,IAChB,aAAa,gBAAgB,IAC7B,UAAS,eAA6B;iBAOxB,WAAW,UAAU,YAAY,WAC/C,MAAM,UAAU,IAChB,aAAa,gBAAgB"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/track/index.ts"],"mappings":";;iBASiB;EACf;EACA,aAAa,WAAW;EACxB,WAAW;;wBAyLG,MAAM,UAAU,YAAY,WAC1C,MAAM,UAAU,IAChB,aAAa,gBAAgB,IAC7B,UAAS;wBAiBW,WAAW,UAAU,YAAY,WACrD,MAAM,UAAU,IAChB,aAAa,gBAAgB,IAC7B,UAAS,eAA6B;wBAOxB,WAAW,UAAU,YAAY,WAC/C,MAAM,UAAU,IAChB,aAAa,gBAAgB"}
@@ -1,13 +1,12 @@
1
1
  import { EventName, TrackEventResponse, TrackName, TrackProperties } from "./types.mjs";
2
2
  //#region src/track/index.d.ts
3
- interface TrackOptions {
3
+ export interface TrackOptions {
4
4
  enableThirdPartyTracking?: boolean;
5
5
  onSucceed?: (response?: TrackEventResponse[number]) => void;
6
6
  onError?: (error: unknown) => void;
7
7
  }
8
- declare function track<T extends EventName = EventName>(name: TrackName<T>, properties?: TrackProperties<T>, options?: TrackOptions): void;
9
- declare function trackAsync<T extends EventName = EventName>(name: TrackName<T>, properties?: TrackProperties<T>, options?: TrackOptions): Promise<void>;
10
- declare function sendBeacon<T extends EventName = EventName>(name: TrackName<T>, properties?: TrackProperties<T>): void;
8
+ export declare function track<T extends EventName = EventName>(name: TrackName<T>, properties?: TrackProperties<T>, options?: TrackOptions): void;
9
+ export declare function trackAsync<T extends EventName = EventName>(name: TrackName<T>, properties?: TrackProperties<T>, options?: TrackOptions): Promise<void>;
10
+ export declare function sendBeacon<T extends EventName = EventName>(name: TrackName<T>, properties?: TrackProperties<T>): void;
11
11
  //#endregion
12
- export { TrackOptions, sendBeacon, track, trackAsync };
13
12
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/track/index.ts"],"mappings":";;UASiB;EACf;EACA,aAAa,WAAW;EACxB,WAAW;;iBAyLG,MAAM,UAAU,YAAY,WAC1C,MAAM,UAAU,IAChB,aAAa,gBAAgB,IAC7B,UAAS;iBAiBW,WAAW,UAAU,YAAY,WACrD,MAAM,UAAU,IAChB,aAAa,gBAAgB,IAC7B,UAAS,eAA6B;iBAOxB,WAAW,UAAU,YAAY,WAC/C,MAAM,UAAU,IAChB,aAAa,gBAAgB"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/track/index.ts"],"mappings":";;iBASiB;EACf;EACA,aAAa,WAAW;EACxB,WAAW;;wBAyLG,MAAM,UAAU,YAAY,WAC1C,MAAM,UAAU,IAChB,aAAa,gBAAgB,IAC7B,UAAS;wBAiBW,WAAW,UAAU,YAAY,WACrD,MAAM,UAAU,IAChB,aAAa,gBAAgB,IAC7B,UAAS,eAA6B;wBAOxB,WAAW,UAAU,YAAY,WAC/C,MAAM,UAAU,IAChB,aAAa,gBAAgB"}
@@ -1,5 +1,5 @@
1
1
  //#region src/track/lintrk.d.ts
2
- interface Lintrk {
2
+ export interface Lintrk {
3
3
  lintrk(event: 'track', params: {
4
4
  conversion_id: number;
5
5
  event_id?: string;
@@ -10,5 +10,4 @@ interface Lintrk {
10
10
  }): void;
11
11
  }
12
12
  //#endregion
13
- export { Lintrk };
14
13
  //# sourceMappingURL=lintrk.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"lintrk.d.cts","names":[],"sources":["../../src/track/lintrk.ts"],"mappings":";UAAiB;EACf,OAAO,gBAAgB;IAAU;IAAuB;;;EAGxD,OAAO,sBAAsB;IAAU"}
1
+ {"version":3,"file":"lintrk.d.cts","names":[],"sources":["../../src/track/lintrk.ts"],"mappings":";iBAAiB;EACf,OAAO,gBAAgB;IAAU;IAAuB;;;EAGxD,OAAO,sBAAsB;IAAU"}
@@ -1,5 +1,5 @@
1
1
  //#region src/track/lintrk.d.ts
2
- interface Lintrk {
2
+ export interface Lintrk {
3
3
  lintrk(event: 'track', params: {
4
4
  conversion_id: number;
5
5
  event_id?: string;
@@ -10,5 +10,4 @@ interface Lintrk {
10
10
  }): void;
11
11
  }
12
12
  //#endregion
13
- export { Lintrk };
14
13
  //# sourceMappingURL=lintrk.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"lintrk.d.mts","names":[],"sources":["../../src/track/lintrk.ts"],"mappings":";UAAiB;EACf,OAAO,gBAAgB;IAAU;IAAuB;;;EAGxD,OAAO,sBAAsB;IAAU"}
1
+ {"version":3,"file":"lintrk.d.mts","names":[],"sources":["../../src/track/lintrk.ts"],"mappings":";iBAAiB;EACf,OAAO,gBAAgB;IAAU;IAAuB;;;EAGxD,OAAO,sBAAsB;IAAU"}