@vrplatform/log 2.0.0-alpha.45 → 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.
@@ -1,82 +1,7 @@
1
1
  export type TrackProps = OptionalUser<{
2
2
  groupId: string;
3
- event: TrackingEvent;
4
- properties: Record<string, string | number | boolean | null | undefined>;
5
3
  timestamp?: Date;
6
- }>;
7
- export type IdentifyProps = {
8
- userId: string;
9
- traits?: {
10
- id?: string;
11
- email?: string;
12
- avatar?: string;
13
- name?: string;
14
- firstName?: string;
15
- lastName?: string;
16
- createdAt?: string;
17
- country?: string;
18
- isSuperAdmin?: boolean;
19
- isVrpAdmin?: boolean;
20
- isPartnerAdmin?: boolean;
21
- isTeamAdmin?: boolean;
22
- role?: UserRole;
23
- [key: string]: string | number | boolean | null | undefined;
24
- };
25
- disableGeoip?: boolean;
26
- timestamp?: Date;
27
- };
28
- export type GroupProps = OptionalUser<{
29
- groupId: string;
30
- traits: {
31
- name: string;
32
- type?: TenantType;
33
- avatar?: string;
34
- createdAt?: string;
35
- partner?: string;
36
- partnerId?: string;
37
- billingCustomerId?: string;
38
- billingSubscriptionStatus?: string;
39
- status?: TenantStatus;
40
- isOnboarding?: boolean;
41
- accountingPartner?: string;
42
- billingPartner?: string;
43
- pms?: string;
44
- apps?: string;
45
- accountingSoftware?: string;
46
- activeListings?: number;
47
- mrr?: number;
48
- plan?: string;
49
- paymentMethodType?: string;
50
- [key: string]: string | number | boolean | null | undefined;
51
- };
52
- timestamp?: Date;
53
- }>;
54
- export type UserRole = 'super-admin' | 'vrp-admin' | 'partner-admin' | 'team-admin' | 'admin' | 'owner' | 'user';
55
- export type TenantType = 'admin' | 'partner' | 'propertyManager';
56
- export type TenantStatus = 'active' | 'inactive';
57
- type OptionalUser<T> = T & ({
58
- userId: string;
59
- anonymousId?: string;
60
- } | {
61
- userId?: string;
62
- anonymousId: string;
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 = {
4
+ } & ({
80
5
  event: 'account_invitation_accepted';
81
6
  properties: AccountInvitationAcceptedProps;
82
7
  } | {
@@ -268,137 +193,209 @@ export type TrackingProps = {
268
193
  } | {
269
194
  event: 'listings_reported';
270
195
  properties: ListingsReported;
196
+ })>;
197
+ export type IdentifyProps = {
198
+ userId: string;
199
+ traits?: {
200
+ id?: string;
201
+ email?: string;
202
+ avatar?: string;
203
+ name?: string;
204
+ firstName?: string;
205
+ lastName?: string;
206
+ createdAt?: string;
207
+ country?: string;
208
+ isSuperAdmin?: boolean;
209
+ isVrpAdmin?: boolean;
210
+ isPartnerAdmin?: boolean;
211
+ isTeamAdmin?: boolean;
212
+ role?: UserRole;
213
+ [key: string]: string | number | boolean | null | undefined;
214
+ };
215
+ disableGeoip?: boolean;
216
+ timestamp?: Date;
271
217
  };
272
- type AccountInvitationAcceptedProps = {
218
+ export type GroupProps = OptionalUser<{
219
+ groupId: string;
220
+ traits?: {
221
+ name?: string;
222
+ type?: TenantType;
223
+ avatar?: string;
224
+ createdAt?: string;
225
+ partner?: string;
226
+ partnerId?: string;
227
+ billingCustomerId?: string;
228
+ billingSubscriptionStatus?: string;
229
+ status?: TenantStatus;
230
+ isOnboarding?: boolean;
231
+ accountingPartner?: string;
232
+ billingPartner?: string;
233
+ pms?: string;
234
+ apps?: string;
235
+ accountingSoftware?: string;
236
+ activeListings?: number;
237
+ mrr?: number;
238
+ plan?: string;
239
+ paymentMethodType?: string;
240
+ [key: string]: string | number | boolean | null | undefined;
241
+ };
242
+ timestamp?: Date;
243
+ }>;
244
+ export type UserRole = 'super-admin' | 'vrp-admin' | 'partner-admin' | 'team-admin' | 'admin' | 'owner' | 'user';
245
+ export type TenantType = 'admin' | 'partner' | 'propertyManager';
246
+ export type TenantStatus = 'active' | 'inactive';
247
+ type OptionalUser<T> = T & ({
248
+ userId: string;
249
+ anonymousId?: string;
250
+ } | {
251
+ userId?: string;
252
+ anonymousId: string;
253
+ });
254
+ 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';
255
+ type TeamEvent = 'team_added' | 'team_info_updated' | 'team_deleted' | 'team_member_removed';
256
+ type ConnectionEvent = 'connection_created' | 'connection_reconnected' | 'connection_deleted' | 'connection_requested';
257
+ type OwnershipEvent = 'ownership_created' | 'ownership_updated' | 'ownership_deleted';
258
+ type OwnerEvent = 'owner_created' | 'owner_updated' | 'owner_deleted' | 'owner_tax_info_modal_opened' | 'owner_tax_info_modal_submitted';
259
+ type SetupEvent = 'setup_classes_set' | 'setup_accounting_version_completed' | 'setup_accounting_config_completed' | 'setup_owner_imported' | 'setup_listing_imported';
260
+ type AutomationEvent = 'automation_created' | 'automation_updated' | 'automation_deleted';
261
+ type TaxStatementEvent = 'tax_statement_preview_opened' | 'tax_statement_downloaded';
262
+ type GLOwnerStatementEvent = 'gl_owner_statement_preview_opened' | 'gl_owner_statement_downloaded';
263
+ 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';
264
+ type ListingEvent = 'listing_activated' | 'listing_deactivated';
265
+ type ReportEvent = 'listings_reported';
266
+ type UserEvent = 'update_refresh_accepted' | 'owner_statement_opened';
267
+ type TestEvent = 'test_event' | 'test_error';
268
+ export type TrackingEvent = AuthEvent | TeamEvent | ConnectionEvent | OwnershipEvent | OwnerEvent | SetupEvent | AutomationEvent | TaxStatementEvent | GLOwnerStatementEvent | HyperlineEvent | UserEvent | ListingEvent | ReportEvent | TestEvent;
269
+ type AccountInvitationAcceptedProps = Partial<{
273
270
  userId: string;
274
271
  userEmail: string;
275
272
  userRole: 'owner' | 'user' | 'admin';
276
273
  tenantId: string;
277
274
  isNewUser: boolean;
278
- };
279
- type AccountPasswordResetCompletedProps = {
275
+ }>;
276
+ type AccountPasswordResetCompletedProps = Partial<{
280
277
  userEmail: string;
281
- };
282
- type AccountPasswordResetFailedProps = {
278
+ }>;
279
+ type AccountPasswordResetFailedProps = Partial<{
283
280
  userEmail: string;
284
- status: string;
285
- };
286
- type AccountPasswordResetRequestedProps = {
281
+ status: 'needs_second_factor' | 'needs_identifier' | 'needs_first_factor' | 'needs_new_password' | null | any;
282
+ }>;
283
+ type AccountPasswordResetRequestedProps = Partial<{
287
284
  userEmail: string;
288
- };
289
- type AccountSignedOutProps = {
285
+ }>;
286
+ type AccountSignedOutProps = Partial<{
290
287
  userId: string;
291
288
  userEmail: string;
292
289
  tenantId: string;
293
290
  firstName: string;
294
291
  lastName: string;
295
- };
296
- type AccountSigninCompletedProps = {
292
+ }>;
293
+ type AccountSigninCompletedProps = Partial<{
297
294
  firstName: string;
298
295
  lastName: string;
299
296
  userEmail: string;
300
- };
301
- type AccountSignupCodeCompletedProps = {
297
+ }>;
298
+ type AccountSignupCodeCompletedProps = Partial<{
302
299
  firstName: string;
303
300
  lastName: string;
304
301
  userEmail: string;
305
302
  companyName: string;
306
- type: string;
307
- };
308
- type AccountSignupCodeFailedProps = {
303
+ type: 'property_manager' | 'partner';
304
+ }>;
305
+ type AccountSignupCodeFailedProps = Partial<{
309
306
  firstName: string;
310
307
  lastName: string;
311
308
  userEmail: string;
312
309
  companyName: string;
313
- type: string;
314
- status: string;
315
- };
316
- type AccountSignupCodeRequestedProps = {
310
+ type: 'property_manager' | 'partner';
311
+ status: 'missing_requirements' | 'abandoned' | null | any;
312
+ }>;
313
+ type AccountSignupCodeRequestedProps = Partial<{
317
314
  firstName: string;
318
315
  lastName: string;
319
316
  userEmail: string;
320
317
  companyName: string;
321
- type: string;
322
- };
323
- type AccountSignupCompletedProps = {
318
+ type: 'property_manager' | 'partner';
319
+ }>;
320
+ type AccountSignupCompletedProps = Partial<{
324
321
  tenantId: string;
325
322
  userEmail: string;
326
323
  firstName: string;
327
324
  lastName: string;
328
325
  userId: string;
329
- };
330
- type AutomationCreatedProps = {
326
+ }>;
327
+ type AutomationCreatedProps = Partial<{
331
328
  automationId: string;
332
329
  templateId: string;
333
- type: string;
330
+ type?: string | null;
334
331
  uniqueRef: string;
335
332
  userId: string;
336
333
  userEmail: string;
337
334
  tenantId: string;
338
- };
339
- type AutomationDeletedProps = {
335
+ }>;
336
+ type AutomationDeletedProps = Partial<{
340
337
  automationId: string;
341
338
  templateId: string;
342
- type: string;
339
+ type?: string | null;
343
340
  uniqueRef: string;
344
341
  userId: string;
345
342
  userEmail: string;
346
343
  tenantId: string;
347
- };
344
+ }>;
348
345
  type AutomationUpdated = any;
349
- type ConnectionCreatedProps = {
346
+ type ConnectionCreatedProps = Partial<{
350
347
  connectionId: string;
351
348
  tenantId: string;
352
349
  userId: string;
353
350
  userEmail: string;
354
351
  appId: string;
355
- type: string;
356
- };
357
- type ConnectionDeletedProps = {
352
+ type?: string;
353
+ }>;
354
+ type ConnectionDeletedProps = Partial<{
358
355
  connectionId: string;
359
356
  tenantId: string;
360
- type: string;
357
+ type?: string;
361
358
  userId: string;
362
359
  appId: string;
363
360
  userEmail: string;
364
- };
365
- type ConnectionReconnectedProps = {
361
+ }>;
362
+ type ConnectionReconnectedProps = Partial<{
366
363
  connectionId: string;
367
364
  tenantId: string;
368
365
  userId: string;
369
366
  userEmail: string;
370
367
  appId: string;
371
- };
372
- type ConnectionRequestedProps = {
373
- type: string;
368
+ }>;
369
+ type ConnectionRequestedProps = Partial<{
370
+ type: 'PMS' | 'Accounting';
374
371
  website: string;
375
372
  userId: string;
376
373
  userEmail: string;
377
374
  tenantId: string;
378
- };
379
- type GlOwnerStatementDownloadedProps = {
375
+ }>;
376
+ type GlOwnerStatementDownloadedProps = Partial<{
380
377
  ownerStatementId: string;
381
378
  ownerStatementUrls: string[];
382
- userType: string;
383
- };
384
- type GlOwnerStatementPreviewOpenedProps = {
379
+ userType: 'owner' | 'property_manager';
380
+ }>;
381
+ type GlOwnerStatementPreviewOpenedProps = Partial<{
385
382
  ownerStatementStatus: string;
386
383
  ownerStatementId: string;
387
384
  ownerStatementUrls: string[];
388
- userType: string;
389
- };
390
- type HyperlineCustomerCreatedProps = {
385
+ userType: 'owner' | 'property_manager';
386
+ }>;
387
+ type HyperlineCustomerCreatedProps = Partial<{
391
388
  userId: string;
392
389
  tenantId: string;
393
390
  customerId: string;
394
- };
395
- type HyperlineCustomerUpdatedProps = {
391
+ }>;
392
+ type HyperlineCustomerUpdatedProps = Partial<{
396
393
  userId: string;
397
394
  tenantId: string;
398
395
  customerId: string;
399
- };
400
- type HyperlineInvoiceReadyProps = {
401
- status: string;
396
+ }>;
397
+ type HyperlineInvoiceReadyProps = Partial<{
398
+ status: 'ready';
402
399
  paymentMethodType: string;
403
400
  invoiceId: string;
404
401
  amount: number;
@@ -407,9 +404,9 @@ type HyperlineInvoiceReadyProps = {
407
404
  customerId: string;
408
405
  taxAmount: string;
409
406
  readyAt: string;
410
- };
411
- type HyperlineInvoiceSettledProps = {
412
- status: string;
407
+ }>;
408
+ type HyperlineInvoiceSettledProps = Partial<{
409
+ status: 'settled';
413
410
  paymentMethodType: string;
414
411
  invoiceId: string;
415
412
  amount: number;
@@ -418,44 +415,44 @@ type HyperlineInvoiceSettledProps = {
418
415
  customerId: string;
419
416
  taxAmount: string;
420
417
  settledAt: string;
421
- };
422
- type HyperlinePaymentMethodCreatedProps = {
418
+ }>;
419
+ type HyperlinePaymentMethodCreatedProps = Partial<{
423
420
  userId: string;
424
421
  tenantId: string;
425
422
  payloadCreatedAt: string;
426
- payloadType: string;
427
- payloadState: string;
423
+ payloadType: 'card' | 'direct_debit_sepa' | 'direct_debit_ach' | 'direct_debit_bacs';
424
+ payloadState: 'active' | 'pending';
428
425
  payloadId: string;
429
426
  payloadCustomerId: string;
430
- webhookEventType: string;
431
- };
432
- type HyperlinePaymentMethodDeletedProps = {
427
+ webhookEventType: 'payment_method.created';
428
+ }>;
429
+ type HyperlinePaymentMethodDeletedProps = Partial<{
433
430
  userId: string;
434
431
  tenantId: string;
435
432
  payloadCreatedAt: string;
436
- payloadType: string;
437
- payloadState: string;
433
+ payloadType: 'card' | 'direct_debit_sepa' | 'direct_debit_ach' | 'direct_debit_bacs';
434
+ payloadState: 'active' | 'pending';
438
435
  payloadId: string;
439
436
  payloadCustomerId: string;
440
- webhookEventType: string;
441
- };
442
- type HyperlinePaymentMethodErroredProps = {
437
+ webhookEventType: 'payment_method.deleted';
438
+ }>;
439
+ type HyperlinePaymentMethodErroredProps = Partial<{
443
440
  userId: string;
444
441
  tenantId: string;
445
442
  payloadCreatedAt: string;
446
- payloadType: string;
447
- payloadState: string;
443
+ payloadType: 'card' | 'direct_debit_sepa' | 'direct_debit_ach' | 'direct_debit_bacs';
444
+ payloadState: 'active' | 'pending';
448
445
  payloadId: string;
449
446
  payloadCustomerId: string;
450
- webhookEventType: string;
451
- };
452
- type HyperlineSubscriptionActivatedProps = {
447
+ webhookEventType: 'payment_method.errored';
448
+ }>;
449
+ type HyperlineSubscriptionActivatedProps = Partial<{
453
450
  userId: string;
454
451
  tenantId: string;
455
- tenantBillingStatus: string;
456
- webhookEventType: string;
457
- };
458
- type HyperlineSubscriptionCancelledProps = {
452
+ tenantBillingStatus: 'pending' | 'active' | 'canceled';
453
+ webhookEventType: 'subscription.activated';
454
+ }>;
455
+ type HyperlineSubscriptionCancelledProps = Partial<{
459
456
  trialEndAt: string;
460
457
  plan: string;
461
458
  subscriptionId: string;
@@ -465,18 +462,18 @@ type HyperlineSubscriptionCancelledProps = {
465
462
  customerId: string;
466
463
  userId: string;
467
464
  tenantId: string;
468
- webhookEventType: string;
469
- tenantBillingStatus: string;
470
- };
471
- type HyperlineSubscriptionChargedProps = {
465
+ webhookEventType: 'subscription.cancelled';
466
+ tenantBillingStatus: 'pending' | 'active' | 'canceled';
467
+ }>;
468
+ type HyperlineSubscriptionChargedProps = Partial<{
472
469
  plan: string;
473
470
  subscriptionId: string;
474
471
  subscriptionStartDate: string;
475
472
  subscriptionStatus: string;
476
473
  paymentMethodType: string;
477
474
  customerId: string;
478
- };
479
- type HyperlineSubscriptionCreatedProps = {
475
+ }>;
476
+ type HyperlineSubscriptionCreatedProps = Partial<{
480
477
  trialStartDate: string;
481
478
  plan: string;
482
479
  subscriptionId: string;
@@ -484,165 +481,158 @@ type HyperlineSubscriptionCreatedProps = {
484
481
  subscriptionStatus: string;
485
482
  paymentMethodType: string;
486
483
  customerId: string;
487
- };
488
- type HyperlineSubscriptionErroredProps = {
484
+ }>;
485
+ type HyperlineSubscriptionErroredProps = Partial<{
489
486
  userId: string;
490
487
  tenantId: string;
491
- tenantBillingStatus: string;
492
- webhookEventType: string;
493
- };
494
- type HyperlineSubscriptionPausedProps = {
488
+ tenantBillingStatus: 'pending' | 'active' | 'canceled';
489
+ webhookEventType: 'subscription.errored';
490
+ }>;
491
+ type HyperlineSubscriptionPausedProps = Partial<{
495
492
  userId: string;
496
493
  tenantId: string;
497
- tenantBillingStatus: string;
498
- webhookEventType: string;
499
- };
500
- type HyperlineSubscriptionVoidedProps = {
494
+ tenantBillingStatus: 'pending' | 'active' | 'canceled';
495
+ webhookEventType: 'subscription.paused';
496
+ }>;
497
+ type HyperlineSubscriptionVoidedProps = Partial<{
501
498
  userId: string;
502
499
  tenantId: string;
503
- tenantBillingStatus: string;
504
- webhookEventType: string;
505
- };
506
- type HyperlineTrialEndedProps = {
500
+ tenantBillingStatus: 'pending' | 'active' | 'canceled';
501
+ webhookEventType: 'subscription.voided';
502
+ }>;
503
+ type HyperlineTrialEndedProps = Partial<{
507
504
  trialStartDate: string;
508
505
  trialEndDate: string;
509
506
  plan: string;
510
507
  subscriptionId: string;
511
508
  subscriptionStartDate: string;
512
509
  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;
510
+ paymentMethodType: 'card';
511
+ }>;
512
+ type HyperlineTrialStartedProps = Partial<{
523
513
  tenantId: string;
524
- ownerId: string;
525
- };
526
- type OwnerDeletedProps = {
527
514
  userId: string;
528
- tenantId: string;
529
- ownerId: string;
530
- };
531
- type OwnerTaxInfoModalOpenedProps = {
515
+ tenantBillingStatus: 'pending' | 'active' | 'canceled';
516
+ webhookEventType: 'payment_method.created';
517
+ }>;
518
+ type OwnerCreatedProps = Partial<{
532
519
  userId: string;
533
520
  tenantId: string;
534
521
  ownerId: string;
535
- taxId: string;
536
- };
537
- type OwnerTaxInfoModalSubmittedProps = {
522
+ }>;
523
+ type OwnerDeletedProps = Partial<{
538
524
  userId: string;
539
525
  tenantId: string;
540
526
  ownerId: string;
541
- taxId: string;
542
- status: string;
543
- };
544
- type OwnerUpdatedProps = {
527
+ }>;
528
+ type OwnerTaxInfoModalOpenedProps = Partial<{
529
+ flag: string;
530
+ }>;
531
+ type OwnerTaxInfoModalSubmittedProps = Partial<{
532
+ flag: string;
533
+ }>;
534
+ type OwnerUpdatedProps = Partial<{
545
535
  userId: string;
546
536
  tenantId: string;
547
537
  ownerId: string;
548
- };
549
- type OwnershipCreatedProps = {
538
+ }>;
539
+ type OwnershipCreatedProps = Partial<{
550
540
  ownershipId: string;
551
541
  ownerId: string;
552
542
  listingId: string;
553
543
  userId: string;
554
544
  userEmail: string;
555
545
  tenantId: string;
556
- };
557
- type OwnershipDeletedProps = {
546
+ }>;
547
+ type OwnershipDeletedProps = Partial<{
558
548
  ownershipId: string;
559
549
  ownerId: string;
560
550
  listingId: string;
561
551
  userId: string;
562
552
  userEmail: string;
563
553
  tenantId: string;
564
- };
565
- type OwnershipUpdatedProps = {
554
+ }>;
555
+ type OwnershipUpdatedProps = Partial<{
566
556
  ownershipId: string;
567
557
  ownerId: string;
568
558
  listingId: string;
569
559
  userId: string;
570
560
  userEmail: string;
571
561
  tenantId: string;
572
- };
562
+ }>;
573
563
  type SetupAccountingConfigCompleted = any;
574
564
  type SetupAccountingVersionCompleted = any;
575
565
  type SetupClassesSet = any;
576
566
  type SetupEntitiesSet = any;
577
- type SetupListingImportedProps = {
567
+ type SetupListingImportedProps = Partial<{
578
568
  appId: string;
579
- };
580
- type SetupOwnerImportedProps = {
569
+ }>;
570
+ type SetupOwnerImportedProps = Partial<{
581
571
  appId: string;
582
- };
583
- type SetupReservationImportedProps = {
572
+ }>;
573
+ type SetupReservationImportedProps = Partial<{
584
574
  appId: string;
585
- };
575
+ }>;
586
576
  type SetupVendorsSet = any;
587
- type TaxStatementDownloadedProps = {
588
- taxStatementStatus: string;
577
+ type TaxStatementDownloadedProps = Partial<{
578
+ taxStatementStatus?: 'draft' | 'ignored' | 'inReview' | 'ready' | 'submitted';
589
579
  taxStatementId: string;
590
580
  taxStatementUrl: string;
591
581
  userType: string;
592
582
  userId: string;
593
583
  userEmail: string;
594
584
  tenantId: string;
595
- };
596
- type TaxStatementPreviewOpenedProps = {
597
- taxStatementStatus: string;
585
+ }>;
586
+ type TaxStatementPreviewOpenedProps = Partial<{
587
+ taxStatementStatus?: 'draft' | 'ignored' | 'inReview' | 'ready' | 'submitted';
598
588
  taxStatementId: string;
599
589
  taxStatementUrl: string;
600
590
  userType: string;
601
591
  userId: string;
602
592
  userEmail: string;
603
593
  tenantId: string;
604
- };
605
- type TeamAddedProps = {
594
+ }>;
595
+ type TeamAddedProps = Partial<{
606
596
  tenantId: string;
607
597
  tenantName: string;
608
598
  partnerId: string;
609
599
  userType: string;
610
600
  userId: string;
611
601
  userEmail: string;
612
- };
613
- type TeamDeletedProps = {
602
+ }>;
603
+ type TeamDeletedProps = Partial<{
614
604
  tenantId: string;
615
605
  userId: string;
616
606
  userEmail: string;
617
- };
618
- type TeamInfoUpdatedProps = {
607
+ }>;
608
+ type TeamInfoUpdatedProps = Partial<{
619
609
  userId: string;
620
610
  tenantId: string;
621
611
  userEmail: string;
622
- };
623
- type TeamMemberRemovedProps = {
612
+ }>;
613
+ type TeamMemberRemovedProps = Partial<{
624
614
  userId: string;
625
615
  removedUserId: string;
626
616
  tenantId: string;
627
617
  userEmail: string;
628
- };
629
- type TestErrorProps = {
618
+ }>;
619
+ type TestErrorProps = Partial<{
630
620
  userId: string;
631
621
  tenantId: string;
632
- };
633
- type TestEventProps = {
634
- success: string;
635
- };
636
- type UserForcedReloadedProps = {
622
+ }>;
623
+ type TestEventProps = Partial<{
624
+ success: boolean;
625
+ }>;
626
+ type UserForcedReloadedProps = Partial<{
637
627
  appName: string;
638
- };
639
- type OwnerStatementOpenedProps = {
628
+ }>;
629
+ type OwnerStatementOpenedProps = Partial<{
640
630
  userId: string;
641
631
  tenantId: string;
642
632
  userEmail: string;
643
633
  listingId: string;
644
634
  startAt: string;
645
- };
635
+ }>;
646
636
  type ListingActivated = any;
647
637
  type ListingDeactivated = any;
648
638
  type ListingsReported = any;
File without changes