@vrplatform/log 2.0.0-alpha.47 → 2.0.0-alpha.48

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,136 +266,136 @@ 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 AccountInvitationAcceptedProps = {
269
+ type AccountInvitationAcceptedProps = Partial<{
270
270
  userId: string;
271
271
  userEmail: string;
272
272
  userRole: 'owner' | 'user' | 'admin';
273
273
  tenantId: string;
274
274
  isNewUser: boolean;
275
- };
276
- type AccountPasswordResetCompletedProps = {
275
+ }>;
276
+ type AccountPasswordResetCompletedProps = Partial<{
277
277
  userEmail: string;
278
- };
279
- type AccountPasswordResetFailedProps = {
278
+ }>;
279
+ type AccountPasswordResetFailedProps = Partial<{
280
280
  userEmail: string;
281
- status: string;
282
- };
283
- type AccountPasswordResetRequestedProps = {
281
+ status: 'needs_second_factor' | 'needs_identifier' | 'needs_first_factor' | 'needs_new_password' | null | any;
282
+ }>;
283
+ type AccountPasswordResetRequestedProps = Partial<{
284
284
  userEmail: string;
285
- };
286
- type AccountSignedOutProps = {
285
+ }>;
286
+ type AccountSignedOutProps = Partial<{
287
287
  userId: string;
288
288
  userEmail: string;
289
289
  tenantId: string;
290
290
  firstName: string;
291
291
  lastName: string;
292
- };
293
- type AccountSigninCompletedProps = {
292
+ }>;
293
+ type AccountSigninCompletedProps = Partial<{
294
294
  firstName: string;
295
295
  lastName: string;
296
296
  userEmail: string;
297
- };
298
- type AccountSignupCodeCompletedProps = {
297
+ }>;
298
+ type AccountSignupCodeCompletedProps = Partial<{
299
299
  firstName: string;
300
300
  lastName: string;
301
301
  userEmail: string;
302
302
  companyName: string;
303
- type: string;
304
- };
305
- type AccountSignupCodeFailedProps = {
303
+ type: 'property_manager' | 'partner';
304
+ }>;
305
+ type AccountSignupCodeFailedProps = Partial<{
306
306
  firstName: string;
307
307
  lastName: string;
308
308
  userEmail: string;
309
309
  companyName: string;
310
- type: string;
311
- status: string;
312
- };
313
- type AccountSignupCodeRequestedProps = {
310
+ type: 'property_manager' | 'partner';
311
+ status: 'missing_requirements' | 'abandoned' | null | any;
312
+ }>;
313
+ type AccountSignupCodeRequestedProps = Partial<{
314
314
  firstName: string;
315
315
  lastName: string;
316
316
  userEmail: string;
317
317
  companyName: string;
318
- type: string;
319
- };
320
- type AccountSignupCompletedProps = {
318
+ type: 'property_manager' | 'partner';
319
+ }>;
320
+ type AccountSignupCompletedProps = Partial<{
321
321
  tenantId: string;
322
322
  userEmail: string;
323
323
  firstName: string;
324
324
  lastName: string;
325
325
  userId: string;
326
- };
327
- type AutomationCreatedProps = {
326
+ }>;
327
+ type AutomationCreatedProps = Partial<{
328
328
  automationId: string;
329
329
  templateId: string;
330
- type: string;
330
+ type?: string | null;
331
331
  uniqueRef: string;
332
332
  userId: string;
333
333
  userEmail: string;
334
334
  tenantId: string;
335
- };
336
- type AutomationDeletedProps = {
335
+ }>;
336
+ type AutomationDeletedProps = Partial<{
337
337
  automationId: string;
338
338
  templateId: string;
339
- type: string;
339
+ type?: string | null;
340
340
  uniqueRef: string;
341
341
  userId: string;
342
342
  userEmail: string;
343
343
  tenantId: string;
344
- };
344
+ }>;
345
345
  type AutomationUpdated = any;
346
- type ConnectionCreatedProps = {
346
+ type ConnectionCreatedProps = Partial<{
347
347
  connectionId: string;
348
348
  tenantId: string;
349
349
  userId: string;
350
350
  userEmail: string;
351
351
  appId: string;
352
- type: string;
353
- };
354
- type ConnectionDeletedProps = {
352
+ type?: string;
353
+ }>;
354
+ type ConnectionDeletedProps = Partial<{
355
355
  connectionId: string;
356
356
  tenantId: string;
357
- type: string;
357
+ type?: string;
358
358
  userId: string;
359
359
  appId: string;
360
360
  userEmail: string;
361
- };
362
- type ConnectionReconnectedProps = {
361
+ }>;
362
+ type ConnectionReconnectedProps = Partial<{
363
363
  connectionId: string;
364
364
  tenantId: string;
365
365
  userId: string;
366
366
  userEmail: string;
367
367
  appId: string;
368
- };
369
- type ConnectionRequestedProps = {
370
- type: string;
368
+ }>;
369
+ type ConnectionRequestedProps = Partial<{
370
+ type: 'PMS' | 'Accounting';
371
371
  website: string;
372
372
  userId: string;
373
373
  userEmail: string;
374
374
  tenantId: string;
375
- };
376
- type GlOwnerStatementDownloadedProps = {
375
+ }>;
376
+ type GlOwnerStatementDownloadedProps = Partial<{
377
377
  ownerStatementId: string;
378
378
  ownerStatementUrls: string[];
379
- userType: string;
380
- };
381
- type GlOwnerStatementPreviewOpenedProps = {
379
+ userType: 'owner' | 'property_manager';
380
+ }>;
381
+ type GlOwnerStatementPreviewOpenedProps = Partial<{
382
382
  ownerStatementStatus: string;
383
383
  ownerStatementId: string;
384
384
  ownerStatementUrls: string[];
385
- userType: string;
386
- };
387
- type HyperlineCustomerCreatedProps = {
385
+ userType: 'owner' | 'property_manager';
386
+ }>;
387
+ type HyperlineCustomerCreatedProps = Partial<{
388
388
  userId: string;
389
389
  tenantId: string;
390
390
  customerId: string;
391
- };
392
- type HyperlineCustomerUpdatedProps = {
391
+ }>;
392
+ type HyperlineCustomerUpdatedProps = Partial<{
393
393
  userId: string;
394
394
  tenantId: string;
395
395
  customerId: string;
396
- };
397
- type HyperlineInvoiceReadyProps = {
398
- status: string;
396
+ }>;
397
+ type HyperlineInvoiceReadyProps = Partial<{
398
+ status: 'ready';
399
399
  paymentMethodType: string;
400
400
  invoiceId: string;
401
401
  amount: number;
@@ -404,9 +404,9 @@ type HyperlineInvoiceReadyProps = {
404
404
  customerId: string;
405
405
  taxAmount: string;
406
406
  readyAt: string;
407
- };
408
- type HyperlineInvoiceSettledProps = {
409
- status: string;
407
+ }>;
408
+ type HyperlineInvoiceSettledProps = Partial<{
409
+ status: 'settled';
410
410
  paymentMethodType: string;
411
411
  invoiceId: string;
412
412
  amount: number;
@@ -415,44 +415,44 @@ type HyperlineInvoiceSettledProps = {
415
415
  customerId: string;
416
416
  taxAmount: string;
417
417
  settledAt: string;
418
- };
419
- type HyperlinePaymentMethodCreatedProps = {
418
+ }>;
419
+ type HyperlinePaymentMethodCreatedProps = Partial<{
420
420
  userId: string;
421
421
  tenantId: string;
422
422
  payloadCreatedAt: string;
423
- payloadType: string;
424
- payloadState: string;
423
+ payloadType: 'card' | 'direct_debit_sepa' | 'direct_debit_ach' | 'direct_debit_bacs';
424
+ payloadState: 'active' | 'pending';
425
425
  payloadId: string;
426
426
  payloadCustomerId: string;
427
- webhookEventType: string;
428
- };
429
- type HyperlinePaymentMethodDeletedProps = {
427
+ webhookEventType: 'payment_method.created';
428
+ }>;
429
+ type HyperlinePaymentMethodDeletedProps = Partial<{
430
430
  userId: string;
431
431
  tenantId: string;
432
432
  payloadCreatedAt: string;
433
- payloadType: string;
434
- payloadState: string;
433
+ payloadType: 'card' | 'direct_debit_sepa' | 'direct_debit_ach' | 'direct_debit_bacs';
434
+ payloadState: 'active' | 'pending';
435
435
  payloadId: string;
436
436
  payloadCustomerId: string;
437
- webhookEventType: string;
438
- };
439
- type HyperlinePaymentMethodErroredProps = {
437
+ webhookEventType: 'payment_method.deleted';
438
+ }>;
439
+ type HyperlinePaymentMethodErroredProps = Partial<{
440
440
  userId: string;
441
441
  tenantId: string;
442
442
  payloadCreatedAt: string;
443
- payloadType: string;
444
- payloadState: string;
443
+ payloadType: 'card' | 'direct_debit_sepa' | 'direct_debit_ach' | 'direct_debit_bacs';
444
+ payloadState: 'active' | 'pending';
445
445
  payloadId: string;
446
446
  payloadCustomerId: string;
447
- webhookEventType: string;
448
- };
449
- type HyperlineSubscriptionActivatedProps = {
447
+ webhookEventType: 'payment_method.errored';
448
+ }>;
449
+ type HyperlineSubscriptionActivatedProps = Partial<{
450
450
  userId: string;
451
451
  tenantId: string;
452
- tenantBillingStatus: string;
453
- webhookEventType: string;
454
- };
455
- type HyperlineSubscriptionCancelledProps = {
452
+ tenantBillingStatus: 'pending' | 'active' | 'canceled';
453
+ webhookEventType: 'subscription.activated';
454
+ }>;
455
+ type HyperlineSubscriptionCancelledProps = Partial<{
456
456
  trialEndAt: string;
457
457
  plan: string;
458
458
  subscriptionId: string;
@@ -462,18 +462,18 @@ type HyperlineSubscriptionCancelledProps = {
462
462
  customerId: string;
463
463
  userId: string;
464
464
  tenantId: string;
465
- webhookEventType: string;
466
- tenantBillingStatus: string;
467
- };
468
- type HyperlineSubscriptionChargedProps = {
465
+ webhookEventType: 'subscription.cancelled';
466
+ tenantBillingStatus: 'pending' | 'active' | 'canceled';
467
+ }>;
468
+ type HyperlineSubscriptionChargedProps = Partial<{
469
469
  plan: string;
470
470
  subscriptionId: string;
471
471
  subscriptionStartDate: string;
472
472
  subscriptionStatus: string;
473
473
  paymentMethodType: string;
474
474
  customerId: string;
475
- };
476
- type HyperlineSubscriptionCreatedProps = {
475
+ }>;
476
+ type HyperlineSubscriptionCreatedProps = Partial<{
477
477
  trialStartDate: string;
478
478
  plan: string;
479
479
  subscriptionId: string;
@@ -481,165 +481,158 @@ type HyperlineSubscriptionCreatedProps = {
481
481
  subscriptionStatus: string;
482
482
  paymentMethodType: string;
483
483
  customerId: string;
484
- };
485
- type HyperlineSubscriptionErroredProps = {
484
+ }>;
485
+ type HyperlineSubscriptionErroredProps = Partial<{
486
486
  userId: string;
487
487
  tenantId: string;
488
- tenantBillingStatus: string;
489
- webhookEventType: string;
490
- };
491
- type HyperlineSubscriptionPausedProps = {
488
+ tenantBillingStatus: 'pending' | 'active' | 'canceled';
489
+ webhookEventType: 'subscription.errored';
490
+ }>;
491
+ type HyperlineSubscriptionPausedProps = Partial<{
492
492
  userId: string;
493
493
  tenantId: string;
494
- tenantBillingStatus: string;
495
- webhookEventType: string;
496
- };
497
- type HyperlineSubscriptionVoidedProps = {
494
+ tenantBillingStatus: 'pending' | 'active' | 'canceled';
495
+ webhookEventType: 'subscription.paused';
496
+ }>;
497
+ type HyperlineSubscriptionVoidedProps = Partial<{
498
498
  userId: string;
499
499
  tenantId: string;
500
- tenantBillingStatus: string;
501
- webhookEventType: string;
502
- };
503
- type HyperlineTrialEndedProps = {
500
+ tenantBillingStatus: 'pending' | 'active' | 'canceled';
501
+ webhookEventType: 'subscription.voided';
502
+ }>;
503
+ type HyperlineTrialEndedProps = Partial<{
504
504
  trialStartDate: string;
505
505
  trialEndDate: string;
506
506
  plan: string;
507
507
  subscriptionId: string;
508
508
  subscriptionStartDate: string;
509
509
  subscriptionStatus: string;
510
- paymentMethodType: string;
511
- };
512
- type HyperlineTrialStartedProps = {
513
- tenantId: string;
514
- userId: string;
515
- tenantBillingStatus: string;
516
- webhookEventType: string;
517
- };
518
- type OwnerCreatedProps = {
519
- userId: string;
510
+ paymentMethodType: 'card';
511
+ }>;
512
+ type HyperlineTrialStartedProps = Partial<{
520
513
  tenantId: string;
521
- ownerId: string;
522
- };
523
- type OwnerDeletedProps = {
524
514
  userId: string;
525
- tenantId: string;
526
- ownerId: string;
527
- };
528
- type OwnerTaxInfoModalOpenedProps = {
515
+ tenantBillingStatus: 'pending' | 'active' | 'canceled';
516
+ webhookEventType: 'payment_method.created';
517
+ }>;
518
+ type OwnerCreatedProps = Partial<{
529
519
  userId: string;
530
520
  tenantId: string;
531
521
  ownerId: string;
532
- taxId: string;
533
- };
534
- type OwnerTaxInfoModalSubmittedProps = {
522
+ }>;
523
+ type OwnerDeletedProps = Partial<{
535
524
  userId: string;
536
525
  tenantId: string;
537
526
  ownerId: string;
538
- taxId: string;
539
- status: string;
540
- };
541
- type OwnerUpdatedProps = {
527
+ }>;
528
+ type OwnerTaxInfoModalOpenedProps = Partial<{
529
+ flag: string;
530
+ }>;
531
+ type OwnerTaxInfoModalSubmittedProps = Partial<{
532
+ flag: string;
533
+ }>;
534
+ type OwnerUpdatedProps = Partial<{
542
535
  userId: string;
543
536
  tenantId: string;
544
537
  ownerId: string;
545
- };
546
- type OwnershipCreatedProps = {
538
+ }>;
539
+ type OwnershipCreatedProps = Partial<{
547
540
  ownershipId: string;
548
541
  ownerId: string;
549
542
  listingId: string;
550
543
  userId: string;
551
544
  userEmail: string;
552
545
  tenantId: string;
553
- };
554
- type OwnershipDeletedProps = {
546
+ }>;
547
+ type OwnershipDeletedProps = Partial<{
555
548
  ownershipId: string;
556
549
  ownerId: string;
557
550
  listingId: string;
558
551
  userId: string;
559
552
  userEmail: string;
560
553
  tenantId: string;
561
- };
562
- type OwnershipUpdatedProps = {
554
+ }>;
555
+ type OwnershipUpdatedProps = Partial<{
563
556
  ownershipId: string;
564
557
  ownerId: string;
565
558
  listingId: string;
566
559
  userId: string;
567
560
  userEmail: string;
568
561
  tenantId: string;
569
- };
562
+ }>;
570
563
  type SetupAccountingConfigCompleted = any;
571
564
  type SetupAccountingVersionCompleted = any;
572
565
  type SetupClassesSet = any;
573
566
  type SetupEntitiesSet = any;
574
- type SetupListingImportedProps = {
567
+ type SetupListingImportedProps = Partial<{
575
568
  appId: string;
576
- };
577
- type SetupOwnerImportedProps = {
569
+ }>;
570
+ type SetupOwnerImportedProps = Partial<{
578
571
  appId: string;
579
- };
580
- type SetupReservationImportedProps = {
572
+ }>;
573
+ type SetupReservationImportedProps = Partial<{
581
574
  appId: string;
582
- };
575
+ }>;
583
576
  type SetupVendorsSet = any;
584
- type TaxStatementDownloadedProps = {
585
- taxStatementStatus: string;
577
+ type TaxStatementDownloadedProps = Partial<{
578
+ taxStatementStatus?: 'draft' | 'ignored' | 'inReview' | 'ready' | 'submitted';
586
579
  taxStatementId: string;
587
580
  taxStatementUrl: string;
588
581
  userType: string;
589
582
  userId: string;
590
583
  userEmail: string;
591
584
  tenantId: string;
592
- };
593
- type TaxStatementPreviewOpenedProps = {
594
- taxStatementStatus: string;
585
+ }>;
586
+ type TaxStatementPreviewOpenedProps = Partial<{
587
+ taxStatementStatus?: 'draft' | 'ignored' | 'inReview' | 'ready' | 'submitted';
595
588
  taxStatementId: string;
596
589
  taxStatementUrl: string;
597
590
  userType: string;
598
591
  userId: string;
599
592
  userEmail: string;
600
593
  tenantId: string;
601
- };
602
- type TeamAddedProps = {
594
+ }>;
595
+ type TeamAddedProps = Partial<{
603
596
  tenantId: string;
604
597
  tenantName: string;
605
598
  partnerId: string;
606
599
  userType: string;
607
600
  userId: string;
608
601
  userEmail: string;
609
- };
610
- type TeamDeletedProps = {
602
+ }>;
603
+ type TeamDeletedProps = Partial<{
611
604
  tenantId: string;
612
605
  userId: string;
613
606
  userEmail: string;
614
- };
615
- type TeamInfoUpdatedProps = {
607
+ }>;
608
+ type TeamInfoUpdatedProps = Partial<{
616
609
  userId: string;
617
610
  tenantId: string;
618
611
  userEmail: string;
619
- };
620
- type TeamMemberRemovedProps = {
612
+ }>;
613
+ type TeamMemberRemovedProps = Partial<{
621
614
  userId: string;
622
615
  removedUserId: string;
623
616
  tenantId: string;
624
617
  userEmail: string;
625
- };
626
- type TestErrorProps = {
618
+ }>;
619
+ type TestErrorProps = Partial<{
627
620
  userId: string;
628
621
  tenantId: string;
629
- };
630
- type TestEventProps = {
631
- success: string;
632
- };
633
- type UserForcedReloadedProps = {
622
+ }>;
623
+ type TestEventProps = Partial<{
624
+ success: boolean;
625
+ }>;
626
+ type UserForcedReloadedProps = Partial<{
634
627
  appName: string;
635
- };
636
- type OwnerStatementOpenedProps = {
628
+ }>;
629
+ type OwnerStatementOpenedProps = Partial<{
637
630
  userId: string;
638
631
  tenantId: string;
639
632
  userEmail: string;
640
633
  listingId: string;
641
634
  startAt: string;
642
- };
635
+ }>;
643
636
  type ListingActivated = any;
644
637
  type ListingDeactivated = any;
645
638
  type ListingsReported = any;