@reservamos/browser-analytics 1.1.7-alpha.0 → 1.1.7-alpha.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.
@@ -981,6 +981,61 @@ declare const viewResultsSchema: z.ZodObject<{
981
981
  }>;
982
982
  export type ViewResultsProps = z.infer<typeof viewResultsSchema>;
983
983
  declare function trackViewResults(eventData: ViewResultsProps, meta?: EventMetadata): void;
984
+ declare const InitConfigSchema: z.ZodObject<{
985
+ /**
986
+ * The Mixpanel token used for authenticating API requests.
987
+ */
988
+ mixpanelToken: z.ZodString;
989
+ /**
990
+ * Optional flag to enable or disable debug mode.
991
+ * When set to true, additional debug information will be logged.
992
+ */
993
+ debug: z.ZodOptional<z.ZodBoolean>;
994
+ /**
995
+ * Key for tracking user identities.
996
+ */
997
+ identificationKey: z.ZodString;
998
+ /**
999
+ * Optional flag to determine if the sandbox environment should be used.
1000
+ * When set to true, the sandbox environment will be used; otherwise, the production environment will be used.
1001
+ */
1002
+ isSandbox: z.ZodOptional<z.ZodBoolean>;
1003
+ /**
1004
+ * Optional proxy URL for Mixpanel requests.
1005
+ */
1006
+ mixpanelProxyUrl: z.ZodOptional<z.ZodString>;
1007
+ /**
1008
+ * Optional proxy URL for identify requests.
1009
+ */
1010
+ identifyProxyUrl: z.ZodOptional<z.ZodString>;
1011
+ /**
1012
+ * Optional client platform identifier sent as the `x-app-name` header on Datalake
1013
+ * identify and anonymous-profile requests.
1014
+ */
1015
+ appName: z.ZodOptional<z.ZodString>;
1016
+ }, "strip", z.ZodTypeAny, {
1017
+ mixpanelToken: string;
1018
+ identificationKey: string;
1019
+ debug?: boolean | undefined;
1020
+ isSandbox?: boolean | undefined;
1021
+ mixpanelProxyUrl?: string | undefined;
1022
+ identifyProxyUrl?: string | undefined;
1023
+ appName?: string | undefined;
1024
+ }, {
1025
+ mixpanelToken: string;
1026
+ identificationKey: string;
1027
+ debug?: boolean | undefined;
1028
+ isSandbox?: boolean | undefined;
1029
+ mixpanelProxyUrl?: string | undefined;
1030
+ identifyProxyUrl?: string | undefined;
1031
+ appName?: string | undefined;
1032
+ }>;
1033
+ /**
1034
+ * Configuration object for initializing the tracking library.
1035
+ */
1036
+ export type InitConfig = z.infer<typeof InitConfigSchema>;
1037
+ declare function init(config: InitConfig): Promise<void>;
1038
+ declare function isTrackerReady(): boolean;
984
1039
  declare const CreateAnonymousProfileSchema: z.ZodEffects<z.ZodObject<{
985
1040
  email: z.ZodOptional<z.ZodString>;
986
1041
  phone: z.ZodOptional<z.ZodString>;
@@ -1237,61 +1292,6 @@ export type DefaultProperties = z.infer<typeof IdentifySchema>;
1237
1292
  export interface UserProperties extends DefaultProperties, Record<string, string | number | boolean | undefined> {
1238
1293
  }
1239
1294
  declare function identify(userId: string, properties?: UserProperties): Promise<void>;
1240
- declare const InitConfigSchema: z.ZodObject<{
1241
- /**
1242
- * The Mixpanel token used for authenticating API requests.
1243
- */
1244
- mixpanelToken: z.ZodString;
1245
- /**
1246
- * Optional flag to enable or disable debug mode.
1247
- * When set to true, additional debug information will be logged.
1248
- */
1249
- debug: z.ZodOptional<z.ZodBoolean>;
1250
- /**
1251
- * Key for tracking user identities.
1252
- */
1253
- identificationKey: z.ZodString;
1254
- /**
1255
- * Optional flag to determine if the sandbox environment should be used.
1256
- * When set to true, the sandbox environment will be used; otherwise, the production environment will be used.
1257
- */
1258
- isSandbox: z.ZodOptional<z.ZodBoolean>;
1259
- /**
1260
- * Optional proxy URL for Mixpanel requests.
1261
- */
1262
- mixpanelProxyUrl: z.ZodOptional<z.ZodString>;
1263
- /**
1264
- * Optional proxy URL for identify requests.
1265
- */
1266
- identifyProxyUrl: z.ZodOptional<z.ZodString>;
1267
- /**
1268
- * Optional client platform identifier sent as the `x-app-name` header on Datalake
1269
- * identify and anonymous-profile requests.
1270
- */
1271
- appName: z.ZodOptional<z.ZodString>;
1272
- }, "strip", z.ZodTypeAny, {
1273
- mixpanelToken: string;
1274
- identificationKey: string;
1275
- debug?: boolean | undefined;
1276
- isSandbox?: boolean | undefined;
1277
- mixpanelProxyUrl?: string | undefined;
1278
- identifyProxyUrl?: string | undefined;
1279
- appName?: string | undefined;
1280
- }, {
1281
- mixpanelToken: string;
1282
- identificationKey: string;
1283
- debug?: boolean | undefined;
1284
- isSandbox?: boolean | undefined;
1285
- mixpanelProxyUrl?: string | undefined;
1286
- identifyProxyUrl?: string | undefined;
1287
- appName?: string | undefined;
1288
- }>;
1289
- /**
1290
- * Configuration object for initializing the tracking library.
1291
- */
1292
- export type InitConfig = z.infer<typeof InitConfigSchema>;
1293
- declare function init(config: InitConfig): Promise<void>;
1294
- declare function isTrackerReady(): boolean;
1295
1295
  declare function getFrequentPassengers(): Promise<FrequentPassengersResponse>;
1296
1296
  declare function getRecommendedPlaces(): Promise<RecommendedPlacesResponse>;
1297
1297
  declare const analytics: {