@vrplatform/log 2.0.0-alpha.44 → 2.0.0-alpha.45

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.
@@ -88,14 +88,23 @@ declare module 'intercom-client' {
88
88
  import { Analytics } from '@june-so/analytics-node';
89
89
  import { IntercomClient } from 'intercom-client';
90
90
  import { PostHog } from 'posthog-node';
91
- import { type WorkerLog } from '../log';
92
- import type { GroupProps, IdentifyProps, TrackProps, TrackingProps } from './types';
91
+ import { type LogBindings, type WorkerLog } from '../log';
92
+ import type { GroupProps, IdentifyProps, TrackProps } from './types';
93
93
  export * from './types';
94
- export * from './eventTypes';
95
94
  export * from 'intercom-client';
96
95
  export * from '../utils';
97
96
  export type Tracking = ReturnType<typeof useTracking>;
98
- export declare const useTracking: ({ dataset, env, name }: TrackingProps, isDev?: boolean) => {
97
+ export type UseTracking = {
98
+ name: string;
99
+ dataset: string;
100
+ env: {
101
+ INTERCOM_TOKEN?: string;
102
+ JUNESO_TOKEN?: string;
103
+ POSTHOG_TOKEN?: string;
104
+ } & LogBindings;
105
+ debugging?: boolean;
106
+ };
107
+ export declare const useTracking: ({ dataset, env, name }: UseTracking, isDev?: boolean) => {
99
108
  track: (props: TrackProps) => Promise<void>;
100
109
  identify: (props: IdentifyProps) => Promise<void>;
101
110
  group: (props: GroupProps) => Promise<void>;
@@ -23,7 +23,6 @@ const log_1 = require("../log");
23
23
  const utils_1 = require("../utils");
24
24
  const convertValuesToString_1 = require("../utils/convertValuesToString");
25
25
  __exportStar(require("./types"), exports);
26
- __exportStar(require("./eventTypes"), exports);
27
26
  __exportStar(require("intercom-client"), exports);
28
27
  __exportStar(require("../utils"), exports);
29
28
  const useTracking = ({ dataset, env, name }, isDev) => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"src/","sources":["tracking/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAoGA,4DAAoD;AACpD,qDAA2D;AAC3D,kEAA+D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 -1,15 +1,3 @@
1
- import type { LogBindings } from '../log';
2
- import type { TrackingEvent } from './eventTypes';
3
- export type TrackingProps = {
4
- name: string;
5
- dataset: string;
6
- env: {
7
- INTERCOM_TOKEN?: string;
8
- JUNESO_TOKEN?: string;
9
- POSTHOG_TOKEN?: string;
10
- } & LogBindings;
11
- debugging?: boolean;
12
- };
13
1
  export type TrackProps = OptionalUser<{
14
2
  groupId: string;
15
3
  event: TrackingEvent;
@@ -73,4 +61,589 @@ type OptionalUser<T> = T & ({
73
61
  userId?: string;
74
62
  anonymousId: string;
75
63
  });
64
+ type AuthEvent = 'account_signin_completed' | 'account_signup_code_requested' | 'account_signup_code_completed' | 'account_signup_code_failed' | 'account_signup_completed' | 'account_password_reset_requested' | 'account_password_reset_failed' | 'account_password_reset_completed' | 'account_invitation_accepted' | 'account_signed_out';
65
+ type TeamEvent = 'team_added' | 'team_info_updated' | 'team_deleted' | 'team_member_removed';
66
+ type ConnectionEvent = 'connection_created' | 'connection_reconnected' | 'connection_deleted' | 'connection_requested';
67
+ type OwnershipEvent = 'ownership_created' | 'ownership_updated' | 'ownership_deleted';
68
+ type OwnerEvent = 'owner_created' | 'owner_updated' | 'owner_deleted' | 'owner_tax_info_modal_opened' | 'owner_tax_info_modal_submitted';
69
+ type SetupEvent = 'setup_classes_set' | 'setup_accounting_version_completed' | 'setup_accounting_config_completed' | 'setup_owner_imported' | 'setup_listing_imported';
70
+ type AutomationEvent = 'automation_created' | 'automation_updated' | 'automation_deleted';
71
+ type TaxStatementEvent = 'tax_statement_preview_opened' | 'tax_statement_downloaded';
72
+ type GLOwnerStatementEvent = 'gl_owner_statement_preview_opened' | 'gl_owner_statement_downloaded';
73
+ type HyperlineEvent = 'hyperline_invoice_ready' | 'hyperline_invoice_settled' | 'hyperline_trial_started' | 'hyperline_trial_ended' | 'hyperline_subscription_activated' | 'hyperline_subscription_cancelled' | 'hyperline_subscription_created' | 'hyperline_subscription_errored' | 'hyperline_subscription_paused' | 'hyperline_subscription_voided' | 'hyperline_subscription_charged' | 'hyperline_customer_created' | 'hyperline_customer_updated' | 'hyperline_payment_method_created' | 'hyperline_payment_method_errored' | 'hyperline_payment_method_deleted';
74
+ type ListingEvent = 'listing_activated' | 'listing_deactivated';
75
+ type ReportEvent = 'listings_reported';
76
+ type UserEvent = 'update_refresh_accepted' | 'owner_statement_opened';
77
+ type TestEvent = 'test_event' | 'test_error';
78
+ export type TrackingEvent = AuthEvent | TeamEvent | ConnectionEvent | OwnershipEvent | OwnerEvent | SetupEvent | AutomationEvent | TaxStatementEvent | GLOwnerStatementEvent | HyperlineEvent | UserEvent | ListingEvent | ReportEvent | TestEvent;
79
+ export type TrackingProps = {
80
+ event: 'account_invitation_accepted';
81
+ properties: AccountInvitationAcceptedProps;
82
+ } | {
83
+ event: 'account_password_reset_completed';
84
+ properties: AccountPasswordResetCompletedProps;
85
+ } | {
86
+ event: 'account_password_reset_failed';
87
+ properties: AccountPasswordResetFailedProps;
88
+ } | {
89
+ event: 'account_password_reset_requested';
90
+ properties: AccountPasswordResetRequestedProps;
91
+ } | {
92
+ event: 'account_signed_out';
93
+ properties: AccountSignedOutProps;
94
+ } | {
95
+ event: 'account_signin_completed';
96
+ properties: AccountSigninCompletedProps;
97
+ } | {
98
+ event: 'account_signup_code_completed';
99
+ properties: AccountSignupCodeCompletedProps;
100
+ } | {
101
+ event: 'account_signup_code_failed';
102
+ properties: AccountSignupCodeFailedProps;
103
+ } | {
104
+ event: 'account_signup_code_requested';
105
+ properties: AccountSignupCodeRequestedProps;
106
+ } | {
107
+ event: 'account_signup_completed';
108
+ properties: AccountSignupCompletedProps;
109
+ } | {
110
+ event: 'automation_created';
111
+ properties: AutomationCreatedProps;
112
+ } | {
113
+ event: 'automation_deleted';
114
+ properties: AutomationDeletedProps;
115
+ } | {
116
+ event: 'automation_updated';
117
+ properties: AutomationUpdated;
118
+ } | {
119
+ event: 'connection_created';
120
+ properties: ConnectionCreatedProps;
121
+ } | {
122
+ event: 'connection_deleted';
123
+ properties: ConnectionDeletedProps;
124
+ } | {
125
+ event: 'connection_reconnected';
126
+ properties: ConnectionReconnectedProps;
127
+ } | {
128
+ event: 'connection_requested';
129
+ properties: ConnectionRequestedProps;
130
+ } | {
131
+ event: 'gl_owner_statement_downloaded';
132
+ properties: GlOwnerStatementDownloadedProps;
133
+ } | {
134
+ event: 'gl_owner_statement_preview_opened';
135
+ properties: GlOwnerStatementPreviewOpenedProps;
136
+ } | {
137
+ event: 'hyperline_customer_created';
138
+ properties: HyperlineCustomerCreatedProps;
139
+ } | {
140
+ event: 'hyperline_customer_updated';
141
+ properties: HyperlineCustomerUpdatedProps;
142
+ } | {
143
+ event: 'hyperline_invoice_ready';
144
+ properties: HyperlineInvoiceReadyProps;
145
+ } | {
146
+ event: 'hyperline_invoice_settled';
147
+ properties: HyperlineInvoiceSettledProps;
148
+ } | {
149
+ event: 'hyperline_payment_method_created';
150
+ properties: HyperlinePaymentMethodCreatedProps;
151
+ } | {
152
+ event: 'hyperline_payment_method_deleted';
153
+ properties: HyperlinePaymentMethodDeletedProps;
154
+ } | {
155
+ event: 'hyperline_payment_method_errored';
156
+ properties: HyperlinePaymentMethodErroredProps;
157
+ } | {
158
+ event: 'hyperline_subscription_activated';
159
+ properties: HyperlineSubscriptionActivatedProps;
160
+ } | {
161
+ event: 'hyperline_subscription_cancelled';
162
+ properties: HyperlineSubscriptionCancelledProps;
163
+ } | {
164
+ event: 'hyperline_subscription_charged';
165
+ properties: HyperlineSubscriptionChargedProps;
166
+ } | {
167
+ event: 'hyperline_subscription_created';
168
+ properties: HyperlineSubscriptionCreatedProps;
169
+ } | {
170
+ event: 'hyperline_subscription_errored';
171
+ properties: HyperlineSubscriptionErroredProps;
172
+ } | {
173
+ event: 'hyperline_subscription_paused';
174
+ properties: HyperlineSubscriptionPausedProps;
175
+ } | {
176
+ event: 'hyperline_subscription_voided';
177
+ properties: HyperlineSubscriptionVoidedProps;
178
+ } | {
179
+ event: 'hyperline_trial_ended';
180
+ properties: HyperlineTrialEndedProps;
181
+ } | {
182
+ event: 'hyperline_trial_started';
183
+ properties: HyperlineTrialStartedProps;
184
+ } | {
185
+ event: 'owner_created';
186
+ properties: OwnerCreatedProps;
187
+ } | {
188
+ event: 'owner_deleted';
189
+ properties: OwnerDeletedProps;
190
+ } | {
191
+ event: 'owner_tax_info_modal_opened';
192
+ properties: OwnerTaxInfoModalOpenedProps;
193
+ } | {
194
+ event: 'owner_tax_info_modal_submitted';
195
+ properties: OwnerTaxInfoModalSubmittedProps;
196
+ } | {
197
+ event: 'owner_updated';
198
+ properties: OwnerUpdatedProps;
199
+ } | {
200
+ event: 'ownership_created';
201
+ properties: OwnershipCreatedProps;
202
+ } | {
203
+ event: 'ownership_deleted';
204
+ properties: OwnershipDeletedProps;
205
+ } | {
206
+ event: 'ownership_updated';
207
+ properties: OwnershipUpdatedProps;
208
+ } | {
209
+ event: 'setup_accounting_config_completed';
210
+ properties: SetupAccountingConfigCompleted;
211
+ } | {
212
+ event: 'setup_accounting_version_completed';
213
+ properties: SetupAccountingVersionCompleted;
214
+ } | {
215
+ event: 'setup_classes_set';
216
+ properties: SetupClassesSet;
217
+ } | {
218
+ event: 'setup_entities_set';
219
+ properties: SetupEntitiesSet;
220
+ } | {
221
+ event: 'setup_listing_imported';
222
+ properties: SetupListingImportedProps;
223
+ } | {
224
+ event: 'setup_owner_imported';
225
+ properties: SetupOwnerImportedProps;
226
+ } | {
227
+ event: 'setup_reservation_imported';
228
+ properties: SetupReservationImportedProps;
229
+ } | {
230
+ event: 'setup_vendors_set';
231
+ properties: SetupVendorsSet;
232
+ } | {
233
+ event: 'tax_statement_downloaded';
234
+ properties: TaxStatementDownloadedProps;
235
+ } | {
236
+ event: 'tax_statement_preview_opened';
237
+ properties: TaxStatementPreviewOpenedProps;
238
+ } | {
239
+ event: 'team_added';
240
+ properties: TeamAddedProps;
241
+ } | {
242
+ event: 'team_deleted';
243
+ properties: TeamDeletedProps;
244
+ } | {
245
+ event: 'team_info_updated';
246
+ properties: TeamInfoUpdatedProps;
247
+ } | {
248
+ event: 'team_member_removed';
249
+ properties: TeamMemberRemovedProps;
250
+ } | {
251
+ event: 'test_error';
252
+ properties: TestErrorProps;
253
+ } | {
254
+ event: 'test_event';
255
+ properties: TestEventProps;
256
+ } | {
257
+ event: 'user_forced_reloaded';
258
+ properties: UserForcedReloadedProps;
259
+ } | {
260
+ event: 'owner_statement_opened';
261
+ properties: OwnerStatementOpenedProps;
262
+ } | {
263
+ event: 'listing_activated';
264
+ properties: ListingActivated;
265
+ } | {
266
+ event: 'listing_deactivated';
267
+ properties: ListingDeactivated;
268
+ } | {
269
+ event: 'listings_reported';
270
+ properties: ListingsReported;
271
+ };
272
+ type AccountInvitationAcceptedProps = {
273
+ userId: string;
274
+ userEmail: string;
275
+ userRole: 'owner' | 'user' | 'admin';
276
+ tenantId: string;
277
+ isNewUser: boolean;
278
+ };
279
+ type AccountPasswordResetCompletedProps = {
280
+ userEmail: string;
281
+ };
282
+ type AccountPasswordResetFailedProps = {
283
+ userEmail: string;
284
+ status: string;
285
+ };
286
+ type AccountPasswordResetRequestedProps = {
287
+ userEmail: string;
288
+ };
289
+ type AccountSignedOutProps = {
290
+ userId: string;
291
+ userEmail: string;
292
+ tenantId: string;
293
+ firstName: string;
294
+ lastName: string;
295
+ };
296
+ type AccountSigninCompletedProps = {
297
+ firstName: string;
298
+ lastName: string;
299
+ userEmail: string;
300
+ };
301
+ type AccountSignupCodeCompletedProps = {
302
+ firstName: string;
303
+ lastName: string;
304
+ userEmail: string;
305
+ companyName: string;
306
+ type: string;
307
+ };
308
+ type AccountSignupCodeFailedProps = {
309
+ firstName: string;
310
+ lastName: string;
311
+ userEmail: string;
312
+ companyName: string;
313
+ type: string;
314
+ status: string;
315
+ };
316
+ type AccountSignupCodeRequestedProps = {
317
+ firstName: string;
318
+ lastName: string;
319
+ userEmail: string;
320
+ companyName: string;
321
+ type: string;
322
+ };
323
+ type AccountSignupCompletedProps = {
324
+ tenantId: string;
325
+ userEmail: string;
326
+ firstName: string;
327
+ lastName: string;
328
+ userId: string;
329
+ };
330
+ type AutomationCreatedProps = {
331
+ automationId: string;
332
+ templateId: string;
333
+ type: string;
334
+ uniqueRef: string;
335
+ userId: string;
336
+ userEmail: string;
337
+ tenantId: string;
338
+ };
339
+ type AutomationDeletedProps = {
340
+ automationId: string;
341
+ templateId: string;
342
+ type: string;
343
+ uniqueRef: string;
344
+ userId: string;
345
+ userEmail: string;
346
+ tenantId: string;
347
+ };
348
+ type AutomationUpdated = any;
349
+ type ConnectionCreatedProps = {
350
+ connectionId: string;
351
+ tenantId: string;
352
+ userId: string;
353
+ userEmail: string;
354
+ appId: string;
355
+ type: string;
356
+ };
357
+ type ConnectionDeletedProps = {
358
+ connectionId: string;
359
+ tenantId: string;
360
+ type: string;
361
+ userId: string;
362
+ appId: string;
363
+ userEmail: string;
364
+ };
365
+ type ConnectionReconnectedProps = {
366
+ connectionId: string;
367
+ tenantId: string;
368
+ userId: string;
369
+ userEmail: string;
370
+ appId: string;
371
+ };
372
+ type ConnectionRequestedProps = {
373
+ type: string;
374
+ website: string;
375
+ userId: string;
376
+ userEmail: string;
377
+ tenantId: string;
378
+ };
379
+ type GlOwnerStatementDownloadedProps = {
380
+ ownerStatementId: string;
381
+ ownerStatementUrls: string[];
382
+ userType: string;
383
+ };
384
+ type GlOwnerStatementPreviewOpenedProps = {
385
+ ownerStatementStatus: string;
386
+ ownerStatementId: string;
387
+ ownerStatementUrls: string[];
388
+ userType: string;
389
+ };
390
+ type HyperlineCustomerCreatedProps = {
391
+ userId: string;
392
+ tenantId: string;
393
+ customerId: string;
394
+ };
395
+ type HyperlineCustomerUpdatedProps = {
396
+ userId: string;
397
+ tenantId: string;
398
+ customerId: string;
399
+ };
400
+ type HyperlineInvoiceReadyProps = {
401
+ status: string;
402
+ paymentMethodType: string;
403
+ invoiceId: string;
404
+ amount: number;
405
+ amountOrigin: number;
406
+ currency: string;
407
+ customerId: string;
408
+ taxAmount: string;
409
+ readyAt: string;
410
+ };
411
+ type HyperlineInvoiceSettledProps = {
412
+ status: string;
413
+ paymentMethodType: string;
414
+ invoiceId: string;
415
+ amount: number;
416
+ amountOrigin: number;
417
+ currency: string;
418
+ customerId: string;
419
+ taxAmount: string;
420
+ settledAt: string;
421
+ };
422
+ type HyperlinePaymentMethodCreatedProps = {
423
+ userId: string;
424
+ tenantId: string;
425
+ payloadCreatedAt: string;
426
+ payloadType: string;
427
+ payloadState: string;
428
+ payloadId: string;
429
+ payloadCustomerId: string;
430
+ webhookEventType: string;
431
+ };
432
+ type HyperlinePaymentMethodDeletedProps = {
433
+ userId: string;
434
+ tenantId: string;
435
+ payloadCreatedAt: string;
436
+ payloadType: string;
437
+ payloadState: string;
438
+ payloadId: string;
439
+ payloadCustomerId: string;
440
+ webhookEventType: string;
441
+ };
442
+ type HyperlinePaymentMethodErroredProps = {
443
+ userId: string;
444
+ tenantId: string;
445
+ payloadCreatedAt: string;
446
+ payloadType: string;
447
+ payloadState: string;
448
+ payloadId: string;
449
+ payloadCustomerId: string;
450
+ webhookEventType: string;
451
+ };
452
+ type HyperlineSubscriptionActivatedProps = {
453
+ userId: string;
454
+ tenantId: string;
455
+ tenantBillingStatus: string;
456
+ webhookEventType: string;
457
+ };
458
+ type HyperlineSubscriptionCancelledProps = {
459
+ trialEndAt: string;
460
+ plan: string;
461
+ subscriptionId: string;
462
+ subscriptionStartDate: string;
463
+ subscriptionStatus: string;
464
+ paymentMethodType: string;
465
+ customerId: string;
466
+ userId: string;
467
+ tenantId: string;
468
+ webhookEventType: string;
469
+ tenantBillingStatus: string;
470
+ };
471
+ type HyperlineSubscriptionChargedProps = {
472
+ plan: string;
473
+ subscriptionId: string;
474
+ subscriptionStartDate: string;
475
+ subscriptionStatus: string;
476
+ paymentMethodType: string;
477
+ customerId: string;
478
+ };
479
+ type HyperlineSubscriptionCreatedProps = {
480
+ trialStartDate: string;
481
+ plan: string;
482
+ subscriptionId: string;
483
+ subscriptionStartDate: string;
484
+ subscriptionStatus: string;
485
+ paymentMethodType: string;
486
+ customerId: string;
487
+ };
488
+ type HyperlineSubscriptionErroredProps = {
489
+ userId: string;
490
+ tenantId: string;
491
+ tenantBillingStatus: string;
492
+ webhookEventType: string;
493
+ };
494
+ type HyperlineSubscriptionPausedProps = {
495
+ userId: string;
496
+ tenantId: string;
497
+ tenantBillingStatus: string;
498
+ webhookEventType: string;
499
+ };
500
+ type HyperlineSubscriptionVoidedProps = {
501
+ userId: string;
502
+ tenantId: string;
503
+ tenantBillingStatus: string;
504
+ webhookEventType: string;
505
+ };
506
+ type HyperlineTrialEndedProps = {
507
+ trialStartDate: string;
508
+ trialEndDate: string;
509
+ plan: string;
510
+ subscriptionId: string;
511
+ subscriptionStartDate: string;
512
+ subscriptionStatus: string;
513
+ paymentMethodType: string;
514
+ };
515
+ type HyperlineTrialStartedProps = {
516
+ tenantId: string;
517
+ userId: string;
518
+ tenantBillingStatus: string;
519
+ webhookEventType: string;
520
+ };
521
+ type OwnerCreatedProps = {
522
+ userId: string;
523
+ tenantId: string;
524
+ ownerId: string;
525
+ };
526
+ type OwnerDeletedProps = {
527
+ userId: string;
528
+ tenantId: string;
529
+ ownerId: string;
530
+ };
531
+ type OwnerTaxInfoModalOpenedProps = {
532
+ userId: string;
533
+ tenantId: string;
534
+ ownerId: string;
535
+ taxId: string;
536
+ };
537
+ type OwnerTaxInfoModalSubmittedProps = {
538
+ userId: string;
539
+ tenantId: string;
540
+ ownerId: string;
541
+ taxId: string;
542
+ status: string;
543
+ };
544
+ type OwnerUpdatedProps = {
545
+ userId: string;
546
+ tenantId: string;
547
+ ownerId: string;
548
+ };
549
+ type OwnershipCreatedProps = {
550
+ ownershipId: string;
551
+ ownerId: string;
552
+ listingId: string;
553
+ userId: string;
554
+ userEmail: string;
555
+ tenantId: string;
556
+ };
557
+ type OwnershipDeletedProps = {
558
+ ownershipId: string;
559
+ ownerId: string;
560
+ listingId: string;
561
+ userId: string;
562
+ userEmail: string;
563
+ tenantId: string;
564
+ };
565
+ type OwnershipUpdatedProps = {
566
+ ownershipId: string;
567
+ ownerId: string;
568
+ listingId: string;
569
+ userId: string;
570
+ userEmail: string;
571
+ tenantId: string;
572
+ };
573
+ type SetupAccountingConfigCompleted = any;
574
+ type SetupAccountingVersionCompleted = any;
575
+ type SetupClassesSet = any;
576
+ type SetupEntitiesSet = any;
577
+ type SetupListingImportedProps = {
578
+ appId: string;
579
+ };
580
+ type SetupOwnerImportedProps = {
581
+ appId: string;
582
+ };
583
+ type SetupReservationImportedProps = {
584
+ appId: string;
585
+ };
586
+ type SetupVendorsSet = any;
587
+ type TaxStatementDownloadedProps = {
588
+ taxStatementStatus: string;
589
+ taxStatementId: string;
590
+ taxStatementUrl: string;
591
+ userType: string;
592
+ userId: string;
593
+ userEmail: string;
594
+ tenantId: string;
595
+ };
596
+ type TaxStatementPreviewOpenedProps = {
597
+ taxStatementStatus: string;
598
+ taxStatementId: string;
599
+ taxStatementUrl: string;
600
+ userType: string;
601
+ userId: string;
602
+ userEmail: string;
603
+ tenantId: string;
604
+ };
605
+ type TeamAddedProps = {
606
+ tenantId: string;
607
+ tenantName: string;
608
+ partnerId: string;
609
+ userType: string;
610
+ userId: string;
611
+ userEmail: string;
612
+ };
613
+ type TeamDeletedProps = {
614
+ tenantId: string;
615
+ userId: string;
616
+ userEmail: string;
617
+ };
618
+ type TeamInfoUpdatedProps = {
619
+ userId: string;
620
+ tenantId: string;
621
+ userEmail: string;
622
+ };
623
+ type TeamMemberRemovedProps = {
624
+ userId: string;
625
+ removedUserId: string;
626
+ tenantId: string;
627
+ userEmail: string;
628
+ };
629
+ type TestErrorProps = {
630
+ userId: string;
631
+ tenantId: string;
632
+ };
633
+ type TestEventProps = {
634
+ success: string;
635
+ };
636
+ type UserForcedReloadedProps = {
637
+ appName: string;
638
+ };
639
+ type OwnerStatementOpenedProps = {
640
+ userId: string;
641
+ tenantId: string;
642
+ userEmail: string;
643
+ listingId: string;
644
+ startAt: string;
645
+ };
646
+ type ListingActivated = any;
647
+ type ListingDeactivated = any;
648
+ type ListingsReported = any;
76
649
  export {};
@@ -88,14 +88,23 @@ declare module 'intercom-client' {
88
88
  import { Analytics } from '@june-so/analytics-node';
89
89
  import { IntercomClient } from 'intercom-client';
90
90
  import { PostHog } from 'posthog-node';
91
- import { type WorkerLog } from '../log';
92
- import type { GroupProps, IdentifyProps, TrackProps, TrackingProps } from './types';
91
+ import { type LogBindings, type WorkerLog } from '../log';
92
+ import type { GroupProps, IdentifyProps, TrackProps } from './types';
93
93
  export * from './types';
94
- export * from './eventTypes';
95
94
  export * from 'intercom-client';
96
95
  export * from '../utils';
97
96
  export type Tracking = ReturnType<typeof useTracking>;
98
- export declare const useTracking: ({ dataset, env, name }: TrackingProps, isDev?: boolean) => {
97
+ export type UseTracking = {
98
+ name: string;
99
+ dataset: string;
100
+ env: {
101
+ INTERCOM_TOKEN?: string;
102
+ JUNESO_TOKEN?: string;
103
+ POSTHOG_TOKEN?: string;
104
+ } & LogBindings;
105
+ debugging?: boolean;
106
+ };
107
+ export declare const useTracking: ({ dataset, env, name }: UseTracking, isDev?: boolean) => {
99
108
  track: (props: TrackProps) => Promise<void>;
100
109
  identify: (props: IdentifyProps) => Promise<void>;
101
110
  group: (props: GroupProps) => Promise<void>;