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