@vrplatform/log 2.0.0-alpha.48 → 2.0.0-alpha.49
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.
|
@@ -266,6 +266,7 @@ type ReportEvent = 'listings_reported';
|
|
|
266
266
|
type UserEvent = 'update_refresh_accepted' | 'owner_statement_opened';
|
|
267
267
|
type TestEvent = 'test_event' | 'test_error';
|
|
268
268
|
export type TrackingEvent = AuthEvent | TeamEvent | ConnectionEvent | OwnershipEvent | OwnerEvent | SetupEvent | AutomationEvent | TaxStatementEvent | GLOwnerStatementEvent | HyperlineEvent | UserEvent | ListingEvent | ReportEvent | TestEvent;
|
|
269
|
+
type WebhookEventType = 'customer.created' | 'customer.updated' | 'subscription.activated' | 'subscription.cancelled' | 'subscription.created' | 'subscription.errored' | 'subscription.paused' | 'subscription.voided' | 'subscription.charged' | 'payment_method.created' | 'payment_method.errored' | 'payment_method.deleted';
|
|
269
270
|
type AccountInvitationAcceptedProps = Partial<{
|
|
270
271
|
userId: string;
|
|
271
272
|
userEmail: string;
|
|
@@ -424,7 +425,7 @@ type HyperlinePaymentMethodCreatedProps = Partial<{
|
|
|
424
425
|
payloadState: 'active' | 'pending';
|
|
425
426
|
payloadId: string;
|
|
426
427
|
payloadCustomerId: string;
|
|
427
|
-
webhookEventType:
|
|
428
|
+
webhookEventType: WebhookEventType;
|
|
428
429
|
}>;
|
|
429
430
|
type HyperlinePaymentMethodDeletedProps = Partial<{
|
|
430
431
|
userId: string;
|
|
@@ -434,7 +435,7 @@ type HyperlinePaymentMethodDeletedProps = Partial<{
|
|
|
434
435
|
payloadState: 'active' | 'pending';
|
|
435
436
|
payloadId: string;
|
|
436
437
|
payloadCustomerId: string;
|
|
437
|
-
webhookEventType:
|
|
438
|
+
webhookEventType: WebhookEventType;
|
|
438
439
|
}>;
|
|
439
440
|
type HyperlinePaymentMethodErroredProps = Partial<{
|
|
440
441
|
userId: string;
|
|
@@ -444,13 +445,13 @@ type HyperlinePaymentMethodErroredProps = Partial<{
|
|
|
444
445
|
payloadState: 'active' | 'pending';
|
|
445
446
|
payloadId: string;
|
|
446
447
|
payloadCustomerId: string;
|
|
447
|
-
webhookEventType:
|
|
448
|
+
webhookEventType: WebhookEventType;
|
|
448
449
|
}>;
|
|
449
450
|
type HyperlineSubscriptionActivatedProps = Partial<{
|
|
450
451
|
userId: string;
|
|
451
452
|
tenantId: string;
|
|
452
453
|
tenantBillingStatus: 'pending' | 'active' | 'canceled';
|
|
453
|
-
webhookEventType:
|
|
454
|
+
webhookEventType: WebhookEventType;
|
|
454
455
|
}>;
|
|
455
456
|
type HyperlineSubscriptionCancelledProps = Partial<{
|
|
456
457
|
trialEndAt: string;
|
|
@@ -462,7 +463,7 @@ type HyperlineSubscriptionCancelledProps = Partial<{
|
|
|
462
463
|
customerId: string;
|
|
463
464
|
userId: string;
|
|
464
465
|
tenantId: string;
|
|
465
|
-
webhookEventType:
|
|
466
|
+
webhookEventType: WebhookEventType;
|
|
466
467
|
tenantBillingStatus: 'pending' | 'active' | 'canceled';
|
|
467
468
|
}>;
|
|
468
469
|
type HyperlineSubscriptionChargedProps = Partial<{
|
|
@@ -486,19 +487,19 @@ type HyperlineSubscriptionErroredProps = Partial<{
|
|
|
486
487
|
userId: string;
|
|
487
488
|
tenantId: string;
|
|
488
489
|
tenantBillingStatus: 'pending' | 'active' | 'canceled';
|
|
489
|
-
webhookEventType:
|
|
490
|
+
webhookEventType: WebhookEventType;
|
|
490
491
|
}>;
|
|
491
492
|
type HyperlineSubscriptionPausedProps = Partial<{
|
|
492
493
|
userId: string;
|
|
493
494
|
tenantId: string;
|
|
494
495
|
tenantBillingStatus: 'pending' | 'active' | 'canceled';
|
|
495
|
-
webhookEventType:
|
|
496
|
+
webhookEventType: WebhookEventType;
|
|
496
497
|
}>;
|
|
497
498
|
type HyperlineSubscriptionVoidedProps = Partial<{
|
|
498
499
|
userId: string;
|
|
499
500
|
tenantId: string;
|
|
500
501
|
tenantBillingStatus: 'pending' | 'active' | 'canceled';
|
|
501
|
-
webhookEventType:
|
|
502
|
+
webhookEventType: WebhookEventType;
|
|
502
503
|
}>;
|
|
503
504
|
type HyperlineTrialEndedProps = Partial<{
|
|
504
505
|
trialStartDate: string;
|
|
@@ -513,7 +514,7 @@ type HyperlineTrialStartedProps = Partial<{
|
|
|
513
514
|
tenantId: string;
|
|
514
515
|
userId: string;
|
|
515
516
|
tenantBillingStatus: 'pending' | 'active' | 'canceled';
|
|
516
|
-
webhookEventType:
|
|
517
|
+
webhookEventType: WebhookEventType;
|
|
517
518
|
}>;
|
|
518
519
|
type OwnerCreatedProps = Partial<{
|
|
519
520
|
userId: string;
|
|
@@ -266,6 +266,7 @@ type ReportEvent = 'listings_reported';
|
|
|
266
266
|
type UserEvent = 'update_refresh_accepted' | 'owner_statement_opened';
|
|
267
267
|
type TestEvent = 'test_event' | 'test_error';
|
|
268
268
|
export type TrackingEvent = AuthEvent | TeamEvent | ConnectionEvent | OwnershipEvent | OwnerEvent | SetupEvent | AutomationEvent | TaxStatementEvent | GLOwnerStatementEvent | HyperlineEvent | UserEvent | ListingEvent | ReportEvent | TestEvent;
|
|
269
|
+
type WebhookEventType = 'customer.created' | 'customer.updated' | 'subscription.activated' | 'subscription.cancelled' | 'subscription.created' | 'subscription.errored' | 'subscription.paused' | 'subscription.voided' | 'subscription.charged' | 'payment_method.created' | 'payment_method.errored' | 'payment_method.deleted';
|
|
269
270
|
type AccountInvitationAcceptedProps = Partial<{
|
|
270
271
|
userId: string;
|
|
271
272
|
userEmail: string;
|
|
@@ -424,7 +425,7 @@ type HyperlinePaymentMethodCreatedProps = Partial<{
|
|
|
424
425
|
payloadState: 'active' | 'pending';
|
|
425
426
|
payloadId: string;
|
|
426
427
|
payloadCustomerId: string;
|
|
427
|
-
webhookEventType:
|
|
428
|
+
webhookEventType: WebhookEventType;
|
|
428
429
|
}>;
|
|
429
430
|
type HyperlinePaymentMethodDeletedProps = Partial<{
|
|
430
431
|
userId: string;
|
|
@@ -434,7 +435,7 @@ type HyperlinePaymentMethodDeletedProps = Partial<{
|
|
|
434
435
|
payloadState: 'active' | 'pending';
|
|
435
436
|
payloadId: string;
|
|
436
437
|
payloadCustomerId: string;
|
|
437
|
-
webhookEventType:
|
|
438
|
+
webhookEventType: WebhookEventType;
|
|
438
439
|
}>;
|
|
439
440
|
type HyperlinePaymentMethodErroredProps = Partial<{
|
|
440
441
|
userId: string;
|
|
@@ -444,13 +445,13 @@ type HyperlinePaymentMethodErroredProps = Partial<{
|
|
|
444
445
|
payloadState: 'active' | 'pending';
|
|
445
446
|
payloadId: string;
|
|
446
447
|
payloadCustomerId: string;
|
|
447
|
-
webhookEventType:
|
|
448
|
+
webhookEventType: WebhookEventType;
|
|
448
449
|
}>;
|
|
449
450
|
type HyperlineSubscriptionActivatedProps = Partial<{
|
|
450
451
|
userId: string;
|
|
451
452
|
tenantId: string;
|
|
452
453
|
tenantBillingStatus: 'pending' | 'active' | 'canceled';
|
|
453
|
-
webhookEventType:
|
|
454
|
+
webhookEventType: WebhookEventType;
|
|
454
455
|
}>;
|
|
455
456
|
type HyperlineSubscriptionCancelledProps = Partial<{
|
|
456
457
|
trialEndAt: string;
|
|
@@ -462,7 +463,7 @@ type HyperlineSubscriptionCancelledProps = Partial<{
|
|
|
462
463
|
customerId: string;
|
|
463
464
|
userId: string;
|
|
464
465
|
tenantId: string;
|
|
465
|
-
webhookEventType:
|
|
466
|
+
webhookEventType: WebhookEventType;
|
|
466
467
|
tenantBillingStatus: 'pending' | 'active' | 'canceled';
|
|
467
468
|
}>;
|
|
468
469
|
type HyperlineSubscriptionChargedProps = Partial<{
|
|
@@ -486,19 +487,19 @@ type HyperlineSubscriptionErroredProps = Partial<{
|
|
|
486
487
|
userId: string;
|
|
487
488
|
tenantId: string;
|
|
488
489
|
tenantBillingStatus: 'pending' | 'active' | 'canceled';
|
|
489
|
-
webhookEventType:
|
|
490
|
+
webhookEventType: WebhookEventType;
|
|
490
491
|
}>;
|
|
491
492
|
type HyperlineSubscriptionPausedProps = Partial<{
|
|
492
493
|
userId: string;
|
|
493
494
|
tenantId: string;
|
|
494
495
|
tenantBillingStatus: 'pending' | 'active' | 'canceled';
|
|
495
|
-
webhookEventType:
|
|
496
|
+
webhookEventType: WebhookEventType;
|
|
496
497
|
}>;
|
|
497
498
|
type HyperlineSubscriptionVoidedProps = Partial<{
|
|
498
499
|
userId: string;
|
|
499
500
|
tenantId: string;
|
|
500
501
|
tenantBillingStatus: 'pending' | 'active' | 'canceled';
|
|
501
|
-
webhookEventType:
|
|
502
|
+
webhookEventType: WebhookEventType;
|
|
502
503
|
}>;
|
|
503
504
|
type HyperlineTrialEndedProps = Partial<{
|
|
504
505
|
trialStartDate: string;
|
|
@@ -513,7 +514,7 @@ type HyperlineTrialStartedProps = Partial<{
|
|
|
513
514
|
tenantId: string;
|
|
514
515
|
userId: string;
|
|
515
516
|
tenantBillingStatus: 'pending' | 'active' | 'canceled';
|
|
516
|
-
webhookEventType:
|
|
517
|
+
webhookEventType: WebhookEventType;
|
|
517
518
|
}>;
|
|
518
519
|
type OwnerCreatedProps = Partial<{
|
|
519
520
|
userId: string;
|
package/package.json
CHANGED
package/src/tracking/types.ts
CHANGED
|
@@ -429,19 +429,19 @@ export type TrackingEvent =
|
|
|
429
429
|
| ReportEvent
|
|
430
430
|
| TestEvent;
|
|
431
431
|
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
432
|
+
type WebhookEventType =
|
|
433
|
+
| 'customer.created'
|
|
434
|
+
| 'customer.updated'
|
|
435
|
+
| 'subscription.activated'
|
|
436
|
+
| 'subscription.cancelled'
|
|
437
|
+
| 'subscription.created'
|
|
438
|
+
| 'subscription.errored'
|
|
439
|
+
| 'subscription.paused'
|
|
440
|
+
| 'subscription.voided'
|
|
441
|
+
| 'subscription.charged'
|
|
442
|
+
| 'payment_method.created'
|
|
443
|
+
| 'payment_method.errored'
|
|
444
|
+
| 'payment_method.deleted';
|
|
445
445
|
|
|
446
446
|
type AccountInvitationAcceptedProps = Partial<{
|
|
447
447
|
userId: string;
|
|
@@ -634,7 +634,7 @@ type HyperlinePaymentMethodCreatedProps = Partial<{
|
|
|
634
634
|
payloadState: 'active' | 'pending';
|
|
635
635
|
payloadId: string;
|
|
636
636
|
payloadCustomerId: string;
|
|
637
|
-
webhookEventType:
|
|
637
|
+
webhookEventType: WebhookEventType;
|
|
638
638
|
}>;
|
|
639
639
|
|
|
640
640
|
type HyperlinePaymentMethodDeletedProps = Partial<{
|
|
@@ -649,7 +649,7 @@ type HyperlinePaymentMethodDeletedProps = Partial<{
|
|
|
649
649
|
payloadState: 'active' | 'pending';
|
|
650
650
|
payloadId: string;
|
|
651
651
|
payloadCustomerId: string;
|
|
652
|
-
webhookEventType:
|
|
652
|
+
webhookEventType: WebhookEventType;
|
|
653
653
|
}>;
|
|
654
654
|
|
|
655
655
|
type HyperlinePaymentMethodErroredProps = Partial<{
|
|
@@ -664,14 +664,14 @@ type HyperlinePaymentMethodErroredProps = Partial<{
|
|
|
664
664
|
payloadState: 'active' | 'pending';
|
|
665
665
|
payloadId: string;
|
|
666
666
|
payloadCustomerId: string;
|
|
667
|
-
webhookEventType:
|
|
667
|
+
webhookEventType: WebhookEventType;
|
|
668
668
|
}>;
|
|
669
669
|
|
|
670
670
|
type HyperlineSubscriptionActivatedProps = Partial<{
|
|
671
671
|
userId: string;
|
|
672
672
|
tenantId: string;
|
|
673
673
|
tenantBillingStatus: 'pending' | 'active' | 'canceled';
|
|
674
|
-
webhookEventType:
|
|
674
|
+
webhookEventType: WebhookEventType;
|
|
675
675
|
}>;
|
|
676
676
|
|
|
677
677
|
type HyperlineSubscriptionCancelledProps = Partial<{
|
|
@@ -684,7 +684,7 @@ type HyperlineSubscriptionCancelledProps = Partial<{
|
|
|
684
684
|
customerId: string;
|
|
685
685
|
userId: string;
|
|
686
686
|
tenantId: string;
|
|
687
|
-
webhookEventType:
|
|
687
|
+
webhookEventType: WebhookEventType;
|
|
688
688
|
tenantBillingStatus: 'pending' | 'active' | 'canceled';
|
|
689
689
|
}>;
|
|
690
690
|
|
|
@@ -711,21 +711,21 @@ type HyperlineSubscriptionErroredProps = Partial<{
|
|
|
711
711
|
userId: string;
|
|
712
712
|
tenantId: string;
|
|
713
713
|
tenantBillingStatus: 'pending' | 'active' | 'canceled';
|
|
714
|
-
webhookEventType:
|
|
714
|
+
webhookEventType: WebhookEventType;
|
|
715
715
|
}>;
|
|
716
716
|
|
|
717
717
|
type HyperlineSubscriptionPausedProps = Partial<{
|
|
718
718
|
userId: string;
|
|
719
719
|
tenantId: string;
|
|
720
720
|
tenantBillingStatus: 'pending' | 'active' | 'canceled';
|
|
721
|
-
webhookEventType:
|
|
721
|
+
webhookEventType: WebhookEventType;
|
|
722
722
|
}>;
|
|
723
723
|
|
|
724
724
|
type HyperlineSubscriptionVoidedProps = Partial<{
|
|
725
725
|
userId: string;
|
|
726
726
|
tenantId: string;
|
|
727
727
|
tenantBillingStatus: 'pending' | 'active' | 'canceled';
|
|
728
|
-
webhookEventType:
|
|
728
|
+
webhookEventType: WebhookEventType;
|
|
729
729
|
}>;
|
|
730
730
|
|
|
731
731
|
type HyperlineTrialEndedProps = Partial<{
|
|
@@ -742,7 +742,7 @@ type HyperlineTrialStartedProps = Partial<{
|
|
|
742
742
|
tenantId: string;
|
|
743
743
|
userId: string;
|
|
744
744
|
tenantBillingStatus: 'pending' | 'active' | 'canceled';
|
|
745
|
-
webhookEventType:
|
|
745
|
+
webhookEventType: WebhookEventType;
|
|
746
746
|
}>;
|
|
747
747
|
|
|
748
748
|
type OwnerCreatedProps = Partial<{
|