@vrplatform/log 2.0.0-alpha.47 → 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.
@@ -429,157 +429,177 @@ export type TrackingEvent =
429
429
  | ReportEvent
430
430
  | TestEvent;
431
431
 
432
- type AccountInvitationAcceptedProps = {
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
+
446
+ type AccountInvitationAcceptedProps = Partial<{
433
447
  userId: string;
434
448
  userEmail: string;
435
449
  userRole: 'owner' | 'user' | 'admin';
436
450
  tenantId: string;
437
451
  isNewUser: boolean;
438
- };
452
+ }>;
439
453
 
440
- type AccountPasswordResetCompletedProps = {
454
+ type AccountPasswordResetCompletedProps = Partial<{
441
455
  userEmail: string;
442
- };
456
+ }>;
443
457
 
444
- type AccountPasswordResetFailedProps = {
458
+ type AccountPasswordResetFailedProps = Partial<{
445
459
  userEmail: string;
446
- status: string;
447
- };
460
+ status:
461
+ | 'needs_second_factor'
462
+ | 'needs_identifier'
463
+ | 'needs_first_factor'
464
+ | 'needs_new_password'
465
+ | null
466
+ | any;
467
+ }>;
448
468
 
449
- type AccountPasswordResetRequestedProps = {
469
+ type AccountPasswordResetRequestedProps = Partial<{
450
470
  userEmail: string;
451
- };
471
+ }>;
452
472
 
453
- type AccountSignedOutProps = {
473
+ type AccountSignedOutProps = Partial<{
454
474
  userId: string;
455
475
  userEmail: string;
456
476
  tenantId: string;
457
477
  firstName: string;
458
478
  lastName: string;
459
- };
479
+ }>;
460
480
 
461
- type AccountSigninCompletedProps = {
481
+ type AccountSigninCompletedProps = Partial<{
462
482
  firstName: string;
463
483
  lastName: string;
464
484
  userEmail: string;
465
- };
485
+ }>;
466
486
 
467
- type AccountSignupCodeCompletedProps = {
487
+ type AccountSignupCodeCompletedProps = Partial<{
468
488
  firstName: string;
469
489
  lastName: string;
470
490
  userEmail: string;
471
491
  companyName: string;
472
- type: string;
473
- };
492
+ type: 'property_manager' | 'partner';
493
+ }>;
474
494
 
475
- type AccountSignupCodeFailedProps = {
495
+ type AccountSignupCodeFailedProps = Partial<{
476
496
  firstName: string;
477
497
  lastName: string;
478
498
  userEmail: string;
479
499
  companyName: string;
480
- type: string;
481
- status: string;
482
- };
500
+ type: 'property_manager' | 'partner';
501
+ status: 'missing_requirements' | 'abandoned' | null | any;
502
+ }>;
483
503
 
484
- type AccountSignupCodeRequestedProps = {
504
+ type AccountSignupCodeRequestedProps = Partial<{
485
505
  firstName: string;
486
506
  lastName: string;
487
507
  userEmail: string;
488
508
  companyName: string;
489
- type: string;
490
- };
509
+ type: 'property_manager' | 'partner';
510
+ }>;
491
511
 
492
- type AccountSignupCompletedProps = {
512
+ type AccountSignupCompletedProps = Partial<{
493
513
  tenantId: string;
494
514
  userEmail: string;
495
515
  firstName: string;
496
516
  lastName: string;
497
517
  userId: string;
498
- };
518
+ }>;
499
519
 
500
- type AutomationCreatedProps = {
520
+ type AutomationCreatedProps = Partial<{
501
521
  automationId: string;
502
522
  templateId: string;
503
- type: string;
523
+ type?: string | null;
504
524
  uniqueRef: string;
505
525
  userId: string;
506
526
  userEmail: string;
507
527
  tenantId: string;
508
- };
528
+ }>;
509
529
 
510
- type AutomationDeletedProps = {
530
+ type AutomationDeletedProps = Partial<{
511
531
  automationId: string;
512
532
  templateId: string;
513
- type: string;
533
+ type?: string | null;
514
534
  uniqueRef: string;
515
535
  userId: string;
516
536
  userEmail: string;
517
537
  tenantId: string;
518
- };
538
+ }>;
519
539
 
520
540
  type AutomationUpdated = any;
521
541
 
522
- type ConnectionCreatedProps = {
542
+ type ConnectionCreatedProps = Partial<{
523
543
  connectionId: string;
524
544
  tenantId: string;
525
545
  userId: string;
526
546
  userEmail: string;
527
547
  appId: string;
528
- type: string;
529
- };
548
+ type?: string;
549
+ }>;
530
550
 
531
- type ConnectionDeletedProps = {
551
+ type ConnectionDeletedProps = Partial<{
532
552
  connectionId: string;
533
553
  tenantId: string;
534
- type: string;
554
+ type?: string;
535
555
  userId: string;
536
556
  appId: string;
537
557
  userEmail: string;
538
- };
558
+ }>;
539
559
 
540
- type ConnectionReconnectedProps = {
560
+ type ConnectionReconnectedProps = Partial<{
541
561
  connectionId: string;
542
562
  tenantId: string;
543
563
  userId: string;
544
564
  userEmail: string;
545
565
  appId: string;
546
- };
566
+ }>;
547
567
 
548
- type ConnectionRequestedProps = {
549
- type: string;
568
+ type ConnectionRequestedProps = Partial<{
569
+ type: 'PMS' | 'Accounting';
550
570
  website: string;
551
571
  userId: string;
552
572
  userEmail: string;
553
573
  tenantId: string;
554
- };
574
+ }>;
555
575
 
556
- type GlOwnerStatementDownloadedProps = {
576
+ type GlOwnerStatementDownloadedProps = Partial<{
557
577
  ownerStatementId: string;
558
578
  ownerStatementUrls: string[];
559
- userType: string;
560
- };
579
+ userType: 'owner' | 'property_manager';
580
+ }>;
561
581
 
562
- type GlOwnerStatementPreviewOpenedProps = {
582
+ type GlOwnerStatementPreviewOpenedProps = Partial<{
563
583
  ownerStatementStatus: string;
564
584
  ownerStatementId: string;
565
585
  ownerStatementUrls: string[];
566
- userType: string;
567
- };
586
+ userType: 'owner' | 'property_manager';
587
+ }>;
568
588
 
569
- type HyperlineCustomerCreatedProps = {
589
+ type HyperlineCustomerCreatedProps = Partial<{
570
590
  userId: string;
571
591
  tenantId: string;
572
592
  customerId: string;
573
- };
593
+ }>;
574
594
 
575
- type HyperlineCustomerUpdatedProps = {
595
+ type HyperlineCustomerUpdatedProps = Partial<{
576
596
  userId: string;
577
597
  tenantId: string;
578
598
  customerId: string;
579
- };
599
+ }>;
580
600
 
581
- type HyperlineInvoiceReadyProps = {
582
- status: string;
601
+ type HyperlineInvoiceReadyProps = Partial<{
602
+ status: 'ready';
583
603
  paymentMethodType: string;
584
604
  invoiceId: string;
585
605
  amount: number;
@@ -588,10 +608,10 @@ type HyperlineInvoiceReadyProps = {
588
608
  customerId: string;
589
609
  taxAmount: string;
590
610
  readyAt: string;
591
- };
611
+ }>;
592
612
 
593
- type HyperlineInvoiceSettledProps = {
594
- status: string;
613
+ type HyperlineInvoiceSettledProps = Partial<{
614
+ status: 'settled';
595
615
  paymentMethodType: string;
596
616
  invoiceId: string;
597
617
  amount: number;
@@ -600,49 +620,61 @@ type HyperlineInvoiceSettledProps = {
600
620
  customerId: string;
601
621
  taxAmount: string;
602
622
  settledAt: string;
603
- };
623
+ }>;
604
624
 
605
- type HyperlinePaymentMethodCreatedProps = {
625
+ type HyperlinePaymentMethodCreatedProps = Partial<{
606
626
  userId: string;
607
627
  tenantId: string;
608
628
  payloadCreatedAt: string;
609
- payloadType: string;
610
- payloadState: string;
629
+ payloadType:
630
+ | 'card'
631
+ | 'direct_debit_sepa'
632
+ | 'direct_debit_ach'
633
+ | 'direct_debit_bacs';
634
+ payloadState: 'active' | 'pending';
611
635
  payloadId: string;
612
636
  payloadCustomerId: string;
613
- webhookEventType: string;
614
- };
637
+ webhookEventType: WebhookEventType;
638
+ }>;
615
639
 
616
- type HyperlinePaymentMethodDeletedProps = {
640
+ type HyperlinePaymentMethodDeletedProps = Partial<{
617
641
  userId: string;
618
642
  tenantId: string;
619
643
  payloadCreatedAt: string;
620
- payloadType: string;
621
- payloadState: string;
644
+ payloadType:
645
+ | 'card'
646
+ | 'direct_debit_sepa'
647
+ | 'direct_debit_ach'
648
+ | 'direct_debit_bacs';
649
+ payloadState: 'active' | 'pending';
622
650
  payloadId: string;
623
651
  payloadCustomerId: string;
624
- webhookEventType: string;
625
- };
652
+ webhookEventType: WebhookEventType;
653
+ }>;
626
654
 
627
- type HyperlinePaymentMethodErroredProps = {
655
+ type HyperlinePaymentMethodErroredProps = Partial<{
628
656
  userId: string;
629
657
  tenantId: string;
630
658
  payloadCreatedAt: string;
631
- payloadType: string;
632
- payloadState: string;
659
+ payloadType:
660
+ | 'card'
661
+ | 'direct_debit_sepa'
662
+ | 'direct_debit_ach'
663
+ | 'direct_debit_bacs';
664
+ payloadState: 'active' | 'pending';
633
665
  payloadId: string;
634
666
  payloadCustomerId: string;
635
- webhookEventType: string;
636
- };
667
+ webhookEventType: WebhookEventType;
668
+ }>;
637
669
 
638
- type HyperlineSubscriptionActivatedProps = {
670
+ type HyperlineSubscriptionActivatedProps = Partial<{
639
671
  userId: string;
640
672
  tenantId: string;
641
- tenantBillingStatus: string;
642
- webhookEventType: string;
643
- };
673
+ tenantBillingStatus: 'pending' | 'active' | 'canceled';
674
+ webhookEventType: WebhookEventType;
675
+ }>;
644
676
 
645
- type HyperlineSubscriptionCancelledProps = {
677
+ type HyperlineSubscriptionCancelledProps = Partial<{
646
678
  trialEndAt: string;
647
679
  plan: string;
648
680
  subscriptionId: string;
@@ -652,20 +684,20 @@ type HyperlineSubscriptionCancelledProps = {
652
684
  customerId: string;
653
685
  userId: string;
654
686
  tenantId: string;
655
- webhookEventType: string;
656
- tenantBillingStatus: string;
657
- };
687
+ webhookEventType: WebhookEventType;
688
+ tenantBillingStatus: 'pending' | 'active' | 'canceled';
689
+ }>;
658
690
 
659
- type HyperlineSubscriptionChargedProps = {
691
+ type HyperlineSubscriptionChargedProps = Partial<{
660
692
  plan: string;
661
693
  subscriptionId: string;
662
694
  subscriptionStartDate: string;
663
695
  subscriptionStatus: string;
664
696
  paymentMethodType: string;
665
697
  customerId: string;
666
- };
698
+ }>;
667
699
 
668
- type HyperlineSubscriptionCreatedProps = {
700
+ type HyperlineSubscriptionCreatedProps = Partial<{
669
701
  trialStartDate: string;
670
702
  plan: string;
671
703
  subscriptionId: string;
@@ -673,105 +705,98 @@ type HyperlineSubscriptionCreatedProps = {
673
705
  subscriptionStatus: string;
674
706
  paymentMethodType: string;
675
707
  customerId: string;
676
- };
708
+ }>;
677
709
 
678
- type HyperlineSubscriptionErroredProps = {
710
+ type HyperlineSubscriptionErroredProps = Partial<{
679
711
  userId: string;
680
712
  tenantId: string;
681
- tenantBillingStatus: string;
682
- webhookEventType: string;
683
- };
713
+ tenantBillingStatus: 'pending' | 'active' | 'canceled';
714
+ webhookEventType: WebhookEventType;
715
+ }>;
684
716
 
685
- type HyperlineSubscriptionPausedProps = {
717
+ type HyperlineSubscriptionPausedProps = Partial<{
686
718
  userId: string;
687
719
  tenantId: string;
688
- tenantBillingStatus: string;
689
- webhookEventType: string;
690
- };
720
+ tenantBillingStatus: 'pending' | 'active' | 'canceled';
721
+ webhookEventType: WebhookEventType;
722
+ }>;
691
723
 
692
- type HyperlineSubscriptionVoidedProps = {
724
+ type HyperlineSubscriptionVoidedProps = Partial<{
693
725
  userId: string;
694
726
  tenantId: string;
695
- tenantBillingStatus: string;
696
- webhookEventType: string;
697
- };
727
+ tenantBillingStatus: 'pending' | 'active' | 'canceled';
728
+ webhookEventType: WebhookEventType;
729
+ }>;
698
730
 
699
- type HyperlineTrialEndedProps = {
731
+ type HyperlineTrialEndedProps = Partial<{
700
732
  trialStartDate: string;
701
733
  trialEndDate: string;
702
734
  plan: string;
703
735
  subscriptionId: string;
704
736
  subscriptionStartDate: string;
705
737
  subscriptionStatus: string;
706
- paymentMethodType: string;
707
- };
738
+ paymentMethodType: 'card';
739
+ }>;
708
740
 
709
- type HyperlineTrialStartedProps = {
741
+ type HyperlineTrialStartedProps = Partial<{
710
742
  tenantId: string;
711
743
  userId: string;
712
- tenantBillingStatus: string;
713
- webhookEventType: string;
714
- };
744
+ tenantBillingStatus: 'pending' | 'active' | 'canceled';
745
+ webhookEventType: WebhookEventType;
746
+ }>;
715
747
 
716
- type OwnerCreatedProps = {
748
+ type OwnerCreatedProps = Partial<{
717
749
  userId: string;
718
750
  tenantId: string;
719
751
  ownerId: string;
720
- };
752
+ }>;
721
753
 
722
- type OwnerDeletedProps = {
754
+ type OwnerDeletedProps = Partial<{
723
755
  userId: string;
724
756
  tenantId: string;
725
757
  ownerId: string;
726
- };
758
+ }>;
727
759
 
728
- type OwnerTaxInfoModalOpenedProps = {
729
- userId: string;
730
- tenantId: string;
731
- ownerId: string;
732
- taxId: string;
733
- };
760
+ type OwnerTaxInfoModalOpenedProps = Partial<{
761
+ flag: string;
762
+ }>;
734
763
 
735
- type OwnerTaxInfoModalSubmittedProps = {
736
- userId: string;
737
- tenantId: string;
738
- ownerId: string;
739
- taxId: string;
740
- status: string;
741
- };
764
+ type OwnerTaxInfoModalSubmittedProps = Partial<{
765
+ flag: string;
766
+ }>;
742
767
 
743
- type OwnerUpdatedProps = {
768
+ type OwnerUpdatedProps = Partial<{
744
769
  userId: string;
745
770
  tenantId: string;
746
771
  ownerId: string;
747
- };
772
+ }>;
748
773
 
749
- type OwnershipCreatedProps = {
774
+ type OwnershipCreatedProps = Partial<{
750
775
  ownershipId: string;
751
776
  ownerId: string;
752
777
  listingId: string;
753
778
  userId: string;
754
779
  userEmail: string;
755
780
  tenantId: string;
756
- };
781
+ }>;
757
782
 
758
- type OwnershipDeletedProps = {
783
+ type OwnershipDeletedProps = Partial<{
759
784
  ownershipId: string;
760
785
  ownerId: string;
761
786
  listingId: string;
762
787
  userId: string;
763
788
  userEmail: string;
764
789
  tenantId: string;
765
- };
790
+ }>;
766
791
 
767
- type OwnershipUpdatedProps = {
792
+ type OwnershipUpdatedProps = Partial<{
768
793
  ownershipId: string;
769
794
  ownerId: string;
770
795
  listingId: string;
771
796
  userId: string;
772
797
  userEmail: string;
773
798
  tenantId: string;
774
- };
799
+ }>;
775
800
 
776
801
  type SetupAccountingConfigCompleted = any;
777
802
 
@@ -781,88 +806,88 @@ type SetupClassesSet = any;
781
806
 
782
807
  type SetupEntitiesSet = any;
783
808
 
784
- type SetupListingImportedProps = {
809
+ type SetupListingImportedProps = Partial<{
785
810
  appId: string;
786
- };
811
+ }>;
787
812
 
788
- type SetupOwnerImportedProps = {
813
+ type SetupOwnerImportedProps = Partial<{
789
814
  appId: string;
790
- };
815
+ }>;
791
816
 
792
- type SetupReservationImportedProps = {
817
+ type SetupReservationImportedProps = Partial<{
793
818
  appId: string;
794
- };
819
+ }>;
795
820
 
796
821
  type SetupVendorsSet = any;
797
822
 
798
- type TaxStatementDownloadedProps = {
799
- taxStatementStatus: string;
823
+ type TaxStatementDownloadedProps = Partial<{
824
+ taxStatementStatus?: 'draft' | 'ignored' | 'inReview' | 'ready' | 'submitted';
800
825
  taxStatementId: string;
801
826
  taxStatementUrl: string;
802
827
  userType: string;
803
828
  userId: string;
804
829
  userEmail: string;
805
830
  tenantId: string;
806
- };
831
+ }>;
807
832
 
808
- type TaxStatementPreviewOpenedProps = {
809
- taxStatementStatus: string;
833
+ type TaxStatementPreviewOpenedProps = Partial<{
834
+ taxStatementStatus?: 'draft' | 'ignored' | 'inReview' | 'ready' | 'submitted';
810
835
  taxStatementId: string;
811
836
  taxStatementUrl: string;
812
837
  userType: string;
813
838
  userId: string;
814
839
  userEmail: string;
815
840
  tenantId: string;
816
- };
841
+ }>;
817
842
 
818
- type TeamAddedProps = {
843
+ type TeamAddedProps = Partial<{
819
844
  tenantId: string;
820
845
  tenantName: string;
821
846
  partnerId: string;
822
847
  userType: string;
823
848
  userId: string;
824
849
  userEmail: string;
825
- };
850
+ }>;
826
851
 
827
- type TeamDeletedProps = {
852
+ type TeamDeletedProps = Partial<{
828
853
  tenantId: string;
829
854
  userId: string;
830
855
  userEmail: string;
831
- };
856
+ }>;
832
857
 
833
- type TeamInfoUpdatedProps = {
858
+ type TeamInfoUpdatedProps = Partial<{
834
859
  userId: string;
835
860
  tenantId: string;
836
861
  userEmail: string;
837
- };
862
+ }>;
838
863
 
839
- type TeamMemberRemovedProps = {
864
+ type TeamMemberRemovedProps = Partial<{
840
865
  userId: string;
841
866
  removedUserId: string;
842
867
  tenantId: string;
843
868
  userEmail: string;
844
- };
869
+ }>;
845
870
 
846
- type TestErrorProps = {
871
+ type TestErrorProps = Partial<{
847
872
  userId: string;
848
873
  tenantId: string;
849
- };
874
+ }>;
850
875
 
851
- type TestEventProps = {
852
- success: string;
853
- };
876
+ type TestEventProps = Partial<{
877
+ success: boolean;
878
+ }>;
854
879
 
855
- type UserForcedReloadedProps = {
880
+ type UserForcedReloadedProps = Partial<{
856
881
  appName: string;
857
- };
882
+ }>;
858
883
 
859
- type OwnerStatementOpenedProps = {
884
+ type OwnerStatementOpenedProps = Partial<{
860
885
  userId: string;
861
886
  tenantId: string;
862
887
  userEmail: string;
863
888
  listingId: string;
864
889
  startAt: string;
865
- };
890
+ }>;
866
891
 
867
892
  type ListingActivated = any;
868
893