@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,9 +1,266 @@
1
- export type TrackProps = OptionalUser<{
2
- groupId: string;
3
- event: TrackingEvent;
4
- properties: Record<string, string | number | boolean | null | undefined>;
5
- timestamp?: Date;
6
- }>;
1
+ export type TrackProps = OptionalUser<
2
+ {
3
+ groupId: string;
4
+ timestamp?: Date;
5
+ } & (
6
+ | {
7
+ event: 'account_invitation_accepted';
8
+ properties: AccountInvitationAcceptedProps;
9
+ }
10
+ | {
11
+ event: 'account_password_reset_completed';
12
+ properties: AccountPasswordResetCompletedProps;
13
+ }
14
+ | {
15
+ event: 'account_password_reset_failed';
16
+ properties: AccountPasswordResetFailedProps;
17
+ }
18
+ | {
19
+ event: 'account_password_reset_requested';
20
+ properties: AccountPasswordResetRequestedProps;
21
+ }
22
+ | {
23
+ event: 'account_signed_out';
24
+ properties: AccountSignedOutProps;
25
+ }
26
+ | {
27
+ event: 'account_signin_completed';
28
+ properties: AccountSigninCompletedProps;
29
+ }
30
+ | {
31
+ event: 'account_signup_code_completed';
32
+ properties: AccountSignupCodeCompletedProps;
33
+ }
34
+ | {
35
+ event: 'account_signup_code_failed';
36
+ properties: AccountSignupCodeFailedProps;
37
+ }
38
+ | {
39
+ event: 'account_signup_code_requested';
40
+ properties: AccountSignupCodeRequestedProps;
41
+ }
42
+ | {
43
+ event: 'account_signup_completed';
44
+ properties: AccountSignupCompletedProps;
45
+ }
46
+ | {
47
+ event: 'automation_created';
48
+ properties: AutomationCreatedProps;
49
+ }
50
+ | {
51
+ event: 'automation_deleted';
52
+ properties: AutomationDeletedProps;
53
+ }
54
+ | {
55
+ event: 'automation_updated';
56
+ properties: AutomationUpdated;
57
+ }
58
+ | {
59
+ event: 'connection_created';
60
+ properties: ConnectionCreatedProps;
61
+ }
62
+ | {
63
+ event: 'connection_deleted';
64
+ properties: ConnectionDeletedProps;
65
+ }
66
+ | {
67
+ event: 'connection_reconnected';
68
+ properties: ConnectionReconnectedProps;
69
+ }
70
+ | {
71
+ event: 'connection_requested';
72
+ properties: ConnectionRequestedProps;
73
+ }
74
+ | {
75
+ event: 'gl_owner_statement_downloaded';
76
+ properties: GlOwnerStatementDownloadedProps;
77
+ }
78
+ | {
79
+ event: 'gl_owner_statement_preview_opened';
80
+ properties: GlOwnerStatementPreviewOpenedProps;
81
+ }
82
+ | {
83
+ event: 'hyperline_customer_created';
84
+ properties: HyperlineCustomerCreatedProps;
85
+ }
86
+ | {
87
+ event: 'hyperline_customer_updated';
88
+ properties: HyperlineCustomerUpdatedProps;
89
+ }
90
+ | {
91
+ event: 'hyperline_invoice_ready';
92
+ properties: HyperlineInvoiceReadyProps;
93
+ }
94
+ | {
95
+ event: 'hyperline_invoice_settled';
96
+ properties: HyperlineInvoiceSettledProps;
97
+ }
98
+ | {
99
+ event: 'hyperline_payment_method_created';
100
+ properties: HyperlinePaymentMethodCreatedProps;
101
+ }
102
+ | {
103
+ event: 'hyperline_payment_method_deleted';
104
+ properties: HyperlinePaymentMethodDeletedProps;
105
+ }
106
+ | {
107
+ event: 'hyperline_payment_method_errored';
108
+ properties: HyperlinePaymentMethodErroredProps;
109
+ }
110
+ | {
111
+ event: 'hyperline_subscription_activated';
112
+ properties: HyperlineSubscriptionActivatedProps;
113
+ }
114
+ | {
115
+ event: 'hyperline_subscription_cancelled';
116
+ properties: HyperlineSubscriptionCancelledProps;
117
+ }
118
+ | {
119
+ event: 'hyperline_subscription_charged';
120
+ properties: HyperlineSubscriptionChargedProps;
121
+ }
122
+ | {
123
+ event: 'hyperline_subscription_created';
124
+ properties: HyperlineSubscriptionCreatedProps;
125
+ }
126
+ | {
127
+ event: 'hyperline_subscription_errored';
128
+ properties: HyperlineSubscriptionErroredProps;
129
+ }
130
+ | {
131
+ event: 'hyperline_subscription_paused';
132
+ properties: HyperlineSubscriptionPausedProps;
133
+ }
134
+ | {
135
+ event: 'hyperline_subscription_voided';
136
+ properties: HyperlineSubscriptionVoidedProps;
137
+ }
138
+ | {
139
+ event: 'hyperline_trial_ended';
140
+ properties: HyperlineTrialEndedProps;
141
+ }
142
+ | {
143
+ event: 'hyperline_trial_started';
144
+ properties: HyperlineTrialStartedProps;
145
+ }
146
+ | {
147
+ event: 'owner_created';
148
+ properties: OwnerCreatedProps;
149
+ }
150
+ | {
151
+ event: 'owner_deleted';
152
+ properties: OwnerDeletedProps;
153
+ }
154
+ | {
155
+ event: 'owner_tax_info_modal_opened';
156
+ properties: OwnerTaxInfoModalOpenedProps;
157
+ }
158
+ | {
159
+ event: 'owner_tax_info_modal_submitted';
160
+ properties: OwnerTaxInfoModalSubmittedProps;
161
+ }
162
+ | {
163
+ event: 'owner_updated';
164
+ properties: OwnerUpdatedProps;
165
+ }
166
+ | {
167
+ event: 'ownership_created';
168
+ properties: OwnershipCreatedProps;
169
+ }
170
+ | {
171
+ event: 'ownership_deleted';
172
+ properties: OwnershipDeletedProps;
173
+ }
174
+ | {
175
+ event: 'ownership_updated';
176
+ properties: OwnershipUpdatedProps;
177
+ }
178
+ | {
179
+ event: 'setup_accounting_config_completed';
180
+ properties: SetupAccountingConfigCompleted;
181
+ }
182
+ | {
183
+ event: 'setup_accounting_version_completed';
184
+ properties: SetupAccountingVersionCompleted;
185
+ }
186
+ | {
187
+ event: 'setup_classes_set';
188
+ properties: SetupClassesSet;
189
+ }
190
+ | {
191
+ event: 'setup_entities_set';
192
+ properties: SetupEntitiesSet;
193
+ }
194
+ | {
195
+ event: 'setup_listing_imported';
196
+ properties: SetupListingImportedProps;
197
+ }
198
+ | {
199
+ event: 'setup_owner_imported';
200
+ properties: SetupOwnerImportedProps;
201
+ }
202
+ | {
203
+ event: 'setup_reservation_imported';
204
+ properties: SetupReservationImportedProps;
205
+ }
206
+ | {
207
+ event: 'setup_vendors_set';
208
+ properties: SetupVendorsSet;
209
+ }
210
+ | {
211
+ event: 'tax_statement_downloaded';
212
+ properties: TaxStatementDownloadedProps;
213
+ }
214
+ | {
215
+ event: 'tax_statement_preview_opened';
216
+ properties: TaxStatementPreviewOpenedProps;
217
+ }
218
+ | {
219
+ event: 'team_added';
220
+ properties: TeamAddedProps;
221
+ }
222
+ | {
223
+ event: 'team_deleted';
224
+ properties: TeamDeletedProps;
225
+ }
226
+ | {
227
+ event: 'team_info_updated';
228
+ properties: TeamInfoUpdatedProps;
229
+ }
230
+ | {
231
+ event: 'team_member_removed';
232
+ properties: TeamMemberRemovedProps;
233
+ }
234
+ | {
235
+ event: 'test_error';
236
+ properties: TestErrorProps;
237
+ }
238
+ | {
239
+ event: 'test_event';
240
+ properties: TestEventProps;
241
+ }
242
+ | {
243
+ event: 'user_forced_reloaded';
244
+ properties: UserForcedReloadedProps;
245
+ }
246
+ | {
247
+ event: 'owner_statement_opened';
248
+ properties: OwnerStatementOpenedProps;
249
+ }
250
+ | {
251
+ event: 'listing_activated';
252
+ properties: ListingActivated;
253
+ }
254
+ | {
255
+ event: 'listing_deactivated';
256
+ properties: ListingDeactivated;
257
+ }
258
+ | {
259
+ event: 'listings_reported';
260
+ properties: ListingsReported;
261
+ }
262
+ )
263
+ >;
7
264
 
8
265
  export type IdentifyProps = {
9
266
  userId: string;
@@ -29,8 +286,8 @@ export type IdentifyProps = {
29
286
 
30
287
  export type GroupProps = OptionalUser<{
31
288
  groupId: string;
32
- traits: {
33
- name: string;
289
+ traits?: {
290
+ name?: string;
34
291
  type?: TenantType;
35
292
  avatar?: string;
36
293
  createdAt?: string;
@@ -172,415 +429,177 @@ export type TrackingEvent =
172
429
  | ReportEvent
173
430
  | TestEvent;
174
431
 
175
- export type TrackingProps =
176
- | {
177
- event: 'account_invitation_accepted';
178
- properties: AccountInvitationAcceptedProps;
179
- }
180
- | {
181
- event: 'account_password_reset_completed';
182
- properties: AccountPasswordResetCompletedProps;
183
- }
184
- | {
185
- event: 'account_password_reset_failed';
186
- properties: AccountPasswordResetFailedProps;
187
- }
188
- | {
189
- event: 'account_password_reset_requested';
190
- properties: AccountPasswordResetRequestedProps;
191
- }
192
- | {
193
- event: 'account_signed_out';
194
- properties: AccountSignedOutProps;
195
- }
196
- | {
197
- event: 'account_signin_completed';
198
- properties: AccountSigninCompletedProps;
199
- }
200
- | {
201
- event: 'account_signup_code_completed';
202
- properties: AccountSignupCodeCompletedProps;
203
- }
204
- | {
205
- event: 'account_signup_code_failed';
206
- properties: AccountSignupCodeFailedProps;
207
- }
208
- | {
209
- event: 'account_signup_code_requested';
210
- properties: AccountSignupCodeRequestedProps;
211
- }
212
- | {
213
- event: 'account_signup_completed';
214
- properties: AccountSignupCompletedProps;
215
- }
216
- | {
217
- event: 'automation_created';
218
- properties: AutomationCreatedProps;
219
- }
220
- | {
221
- event: 'automation_deleted';
222
- properties: AutomationDeletedProps;
223
- }
224
- | {
225
- event: 'automation_updated';
226
- properties: AutomationUpdated;
227
- }
228
- | {
229
- event: 'connection_created';
230
- properties: ConnectionCreatedProps;
231
- }
232
- | {
233
- event: 'connection_deleted';
234
- properties: ConnectionDeletedProps;
235
- }
236
- | {
237
- event: 'connection_reconnected';
238
- properties: ConnectionReconnectedProps;
239
- }
240
- | {
241
- event: 'connection_requested';
242
- properties: ConnectionRequestedProps;
243
- }
244
- | {
245
- event: 'gl_owner_statement_downloaded';
246
- properties: GlOwnerStatementDownloadedProps;
247
- }
248
- | {
249
- event: 'gl_owner_statement_preview_opened';
250
- properties: GlOwnerStatementPreviewOpenedProps;
251
- }
252
- | {
253
- event: 'hyperline_customer_created';
254
- properties: HyperlineCustomerCreatedProps;
255
- }
256
- | {
257
- event: 'hyperline_customer_updated';
258
- properties: HyperlineCustomerUpdatedProps;
259
- }
260
- | {
261
- event: 'hyperline_invoice_ready';
262
- properties: HyperlineInvoiceReadyProps;
263
- }
264
- | {
265
- event: 'hyperline_invoice_settled';
266
- properties: HyperlineInvoiceSettledProps;
267
- }
268
- | {
269
- event: 'hyperline_payment_method_created';
270
- properties: HyperlinePaymentMethodCreatedProps;
271
- }
272
- | {
273
- event: 'hyperline_payment_method_deleted';
274
- properties: HyperlinePaymentMethodDeletedProps;
275
- }
276
- | {
277
- event: 'hyperline_payment_method_errored';
278
- properties: HyperlinePaymentMethodErroredProps;
279
- }
280
- | {
281
- event: 'hyperline_subscription_activated';
282
- properties: HyperlineSubscriptionActivatedProps;
283
- }
284
- | {
285
- event: 'hyperline_subscription_cancelled';
286
- properties: HyperlineSubscriptionCancelledProps;
287
- }
288
- | {
289
- event: 'hyperline_subscription_charged';
290
- properties: HyperlineSubscriptionChargedProps;
291
- }
292
- | {
293
- event: 'hyperline_subscription_created';
294
- properties: HyperlineSubscriptionCreatedProps;
295
- }
296
- | {
297
- event: 'hyperline_subscription_errored';
298
- properties: HyperlineSubscriptionErroredProps;
299
- }
300
- | {
301
- event: 'hyperline_subscription_paused';
302
- properties: HyperlineSubscriptionPausedProps;
303
- }
304
- | {
305
- event: 'hyperline_subscription_voided';
306
- properties: HyperlineSubscriptionVoidedProps;
307
- }
308
- | {
309
- event: 'hyperline_trial_ended';
310
- properties: HyperlineTrialEndedProps;
311
- }
312
- | {
313
- event: 'hyperline_trial_started';
314
- properties: HyperlineTrialStartedProps;
315
- }
316
- | {
317
- event: 'owner_created';
318
- properties: OwnerCreatedProps;
319
- }
320
- | {
321
- event: 'owner_deleted';
322
- properties: OwnerDeletedProps;
323
- }
324
- | {
325
- event: 'owner_tax_info_modal_opened';
326
- properties: OwnerTaxInfoModalOpenedProps;
327
- }
328
- | {
329
- event: 'owner_tax_info_modal_submitted';
330
- properties: OwnerTaxInfoModalSubmittedProps;
331
- }
332
- | {
333
- event: 'owner_updated';
334
- properties: OwnerUpdatedProps;
335
- }
336
- | {
337
- event: 'ownership_created';
338
- properties: OwnershipCreatedProps;
339
- }
340
- | {
341
- event: 'ownership_deleted';
342
- properties: OwnershipDeletedProps;
343
- }
344
- | {
345
- event: 'ownership_updated';
346
- properties: OwnershipUpdatedProps;
347
- }
348
- | {
349
- event: 'setup_accounting_config_completed';
350
- properties: SetupAccountingConfigCompleted;
351
- }
352
- | {
353
- event: 'setup_accounting_version_completed';
354
- properties: SetupAccountingVersionCompleted;
355
- }
356
- | {
357
- event: 'setup_classes_set';
358
- properties: SetupClassesSet;
359
- }
360
- | {
361
- event: 'setup_entities_set';
362
- properties: SetupEntitiesSet;
363
- }
364
- | {
365
- event: 'setup_listing_imported';
366
- properties: SetupListingImportedProps;
367
- }
368
- | {
369
- event: 'setup_owner_imported';
370
- properties: SetupOwnerImportedProps;
371
- }
372
- | {
373
- event: 'setup_reservation_imported';
374
- properties: SetupReservationImportedProps;
375
- }
376
- | {
377
- event: 'setup_vendors_set';
378
- properties: SetupVendorsSet;
379
- }
380
- | {
381
- event: 'tax_statement_downloaded';
382
- properties: TaxStatementDownloadedProps;
383
- }
384
- | {
385
- event: 'tax_statement_preview_opened';
386
- properties: TaxStatementPreviewOpenedProps;
387
- }
388
- | {
389
- event: 'team_added';
390
- properties: TeamAddedProps;
391
- }
392
- | {
393
- event: 'team_deleted';
394
- properties: TeamDeletedProps;
395
- }
396
- | {
397
- event: 'team_info_updated';
398
- properties: TeamInfoUpdatedProps;
399
- }
400
- | {
401
- event: 'team_member_removed';
402
- properties: TeamMemberRemovedProps;
403
- }
404
- | {
405
- event: 'test_error';
406
- properties: TestErrorProps;
407
- }
408
- | {
409
- event: 'test_event';
410
- properties: TestEventProps;
411
- }
412
- | {
413
- event: 'user_forced_reloaded';
414
- properties: UserForcedReloadedProps;
415
- }
416
- | {
417
- event: 'owner_statement_opened';
418
- properties: OwnerStatementOpenedProps;
419
- }
420
- | {
421
- event: 'listing_activated';
422
- properties: ListingActivated;
423
- }
424
- | {
425
- event: 'listing_deactivated';
426
- properties: ListingDeactivated;
427
- }
428
- | {
429
- event: 'listings_reported';
430
- properties: ListingsReported;
431
- };
432
-
433
- 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<{
434
447
  userId: string;
435
448
  userEmail: string;
436
449
  userRole: 'owner' | 'user' | 'admin';
437
450
  tenantId: string;
438
451
  isNewUser: boolean;
439
- };
452
+ }>;
440
453
 
441
- type AccountPasswordResetCompletedProps = {
454
+ type AccountPasswordResetCompletedProps = Partial<{
442
455
  userEmail: string;
443
- };
456
+ }>;
444
457
 
445
- type AccountPasswordResetFailedProps = {
458
+ type AccountPasswordResetFailedProps = Partial<{
446
459
  userEmail: string;
447
- status: string;
448
- };
460
+ status:
461
+ | 'needs_second_factor'
462
+ | 'needs_identifier'
463
+ | 'needs_first_factor'
464
+ | 'needs_new_password'
465
+ | null
466
+ | any;
467
+ }>;
449
468
 
450
- type AccountPasswordResetRequestedProps = {
469
+ type AccountPasswordResetRequestedProps = Partial<{
451
470
  userEmail: string;
452
- };
471
+ }>;
453
472
 
454
- type AccountSignedOutProps = {
473
+ type AccountSignedOutProps = Partial<{
455
474
  userId: string;
456
475
  userEmail: string;
457
476
  tenantId: string;
458
477
  firstName: string;
459
478
  lastName: string;
460
- };
479
+ }>;
461
480
 
462
- type AccountSigninCompletedProps = {
481
+ type AccountSigninCompletedProps = Partial<{
463
482
  firstName: string;
464
483
  lastName: string;
465
484
  userEmail: string;
466
- };
485
+ }>;
467
486
 
468
- type AccountSignupCodeCompletedProps = {
487
+ type AccountSignupCodeCompletedProps = Partial<{
469
488
  firstName: string;
470
489
  lastName: string;
471
490
  userEmail: string;
472
491
  companyName: string;
473
- type: string;
474
- };
492
+ type: 'property_manager' | 'partner';
493
+ }>;
475
494
 
476
- type AccountSignupCodeFailedProps = {
495
+ type AccountSignupCodeFailedProps = Partial<{
477
496
  firstName: string;
478
497
  lastName: string;
479
498
  userEmail: string;
480
499
  companyName: string;
481
- type: string;
482
- status: string;
483
- };
500
+ type: 'property_manager' | 'partner';
501
+ status: 'missing_requirements' | 'abandoned' | null | any;
502
+ }>;
484
503
 
485
- type AccountSignupCodeRequestedProps = {
504
+ type AccountSignupCodeRequestedProps = Partial<{
486
505
  firstName: string;
487
506
  lastName: string;
488
507
  userEmail: string;
489
508
  companyName: string;
490
- type: string;
491
- };
509
+ type: 'property_manager' | 'partner';
510
+ }>;
492
511
 
493
- type AccountSignupCompletedProps = {
512
+ type AccountSignupCompletedProps = Partial<{
494
513
  tenantId: string;
495
514
  userEmail: string;
496
515
  firstName: string;
497
516
  lastName: string;
498
517
  userId: string;
499
- };
518
+ }>;
500
519
 
501
- type AutomationCreatedProps = {
520
+ type AutomationCreatedProps = Partial<{
502
521
  automationId: string;
503
522
  templateId: string;
504
- type: string;
523
+ type?: string | null;
505
524
  uniqueRef: string;
506
525
  userId: string;
507
526
  userEmail: string;
508
527
  tenantId: string;
509
- };
528
+ }>;
510
529
 
511
- type AutomationDeletedProps = {
530
+ type AutomationDeletedProps = Partial<{
512
531
  automationId: string;
513
532
  templateId: string;
514
- type: string;
533
+ type?: string | null;
515
534
  uniqueRef: string;
516
535
  userId: string;
517
536
  userEmail: string;
518
537
  tenantId: string;
519
- };
538
+ }>;
520
539
 
521
540
  type AutomationUpdated = any;
522
541
 
523
- type ConnectionCreatedProps = {
542
+ type ConnectionCreatedProps = Partial<{
524
543
  connectionId: string;
525
544
  tenantId: string;
526
545
  userId: string;
527
546
  userEmail: string;
528
547
  appId: string;
529
- type: string;
530
- };
548
+ type?: string;
549
+ }>;
531
550
 
532
- type ConnectionDeletedProps = {
551
+ type ConnectionDeletedProps = Partial<{
533
552
  connectionId: string;
534
553
  tenantId: string;
535
- type: string;
554
+ type?: string;
536
555
  userId: string;
537
556
  appId: string;
538
557
  userEmail: string;
539
- };
558
+ }>;
540
559
 
541
- type ConnectionReconnectedProps = {
560
+ type ConnectionReconnectedProps = Partial<{
542
561
  connectionId: string;
543
562
  tenantId: string;
544
563
  userId: string;
545
564
  userEmail: string;
546
565
  appId: string;
547
- };
566
+ }>;
548
567
 
549
- type ConnectionRequestedProps = {
550
- type: string;
568
+ type ConnectionRequestedProps = Partial<{
569
+ type: 'PMS' | 'Accounting';
551
570
  website: string;
552
571
  userId: string;
553
572
  userEmail: string;
554
573
  tenantId: string;
555
- };
574
+ }>;
556
575
 
557
- type GlOwnerStatementDownloadedProps = {
576
+ type GlOwnerStatementDownloadedProps = Partial<{
558
577
  ownerStatementId: string;
559
578
  ownerStatementUrls: string[];
560
- userType: string;
561
- };
579
+ userType: 'owner' | 'property_manager';
580
+ }>;
562
581
 
563
- type GlOwnerStatementPreviewOpenedProps = {
582
+ type GlOwnerStatementPreviewOpenedProps = Partial<{
564
583
  ownerStatementStatus: string;
565
584
  ownerStatementId: string;
566
585
  ownerStatementUrls: string[];
567
- userType: string;
568
- };
586
+ userType: 'owner' | 'property_manager';
587
+ }>;
569
588
 
570
- type HyperlineCustomerCreatedProps = {
589
+ type HyperlineCustomerCreatedProps = Partial<{
571
590
  userId: string;
572
591
  tenantId: string;
573
592
  customerId: string;
574
- };
593
+ }>;
575
594
 
576
- type HyperlineCustomerUpdatedProps = {
595
+ type HyperlineCustomerUpdatedProps = Partial<{
577
596
  userId: string;
578
597
  tenantId: string;
579
598
  customerId: string;
580
- };
599
+ }>;
581
600
 
582
- type HyperlineInvoiceReadyProps = {
583
- status: string;
601
+ type HyperlineInvoiceReadyProps = Partial<{
602
+ status: 'ready';
584
603
  paymentMethodType: string;
585
604
  invoiceId: string;
586
605
  amount: number;
@@ -589,10 +608,10 @@ type HyperlineInvoiceReadyProps = {
589
608
  customerId: string;
590
609
  taxAmount: string;
591
610
  readyAt: string;
592
- };
611
+ }>;
593
612
 
594
- type HyperlineInvoiceSettledProps = {
595
- status: string;
613
+ type HyperlineInvoiceSettledProps = Partial<{
614
+ status: 'settled';
596
615
  paymentMethodType: string;
597
616
  invoiceId: string;
598
617
  amount: number;
@@ -601,49 +620,61 @@ type HyperlineInvoiceSettledProps = {
601
620
  customerId: string;
602
621
  taxAmount: string;
603
622
  settledAt: string;
604
- };
623
+ }>;
605
624
 
606
- type HyperlinePaymentMethodCreatedProps = {
625
+ type HyperlinePaymentMethodCreatedProps = Partial<{
607
626
  userId: string;
608
627
  tenantId: string;
609
628
  payloadCreatedAt: string;
610
- payloadType: string;
611
- payloadState: string;
629
+ payloadType:
630
+ | 'card'
631
+ | 'direct_debit_sepa'
632
+ | 'direct_debit_ach'
633
+ | 'direct_debit_bacs';
634
+ payloadState: 'active' | 'pending';
612
635
  payloadId: string;
613
636
  payloadCustomerId: string;
614
- webhookEventType: string;
615
- };
637
+ webhookEventType: 'payment_method.created';
638
+ }>;
616
639
 
617
- type HyperlinePaymentMethodDeletedProps = {
640
+ type HyperlinePaymentMethodDeletedProps = Partial<{
618
641
  userId: string;
619
642
  tenantId: string;
620
643
  payloadCreatedAt: string;
621
- payloadType: string;
622
- payloadState: string;
644
+ payloadType:
645
+ | 'card'
646
+ | 'direct_debit_sepa'
647
+ | 'direct_debit_ach'
648
+ | 'direct_debit_bacs';
649
+ payloadState: 'active' | 'pending';
623
650
  payloadId: string;
624
651
  payloadCustomerId: string;
625
- webhookEventType: string;
626
- };
652
+ webhookEventType: 'payment_method.deleted';
653
+ }>;
627
654
 
628
- type HyperlinePaymentMethodErroredProps = {
655
+ type HyperlinePaymentMethodErroredProps = Partial<{
629
656
  userId: string;
630
657
  tenantId: string;
631
658
  payloadCreatedAt: string;
632
- payloadType: string;
633
- payloadState: string;
659
+ payloadType:
660
+ | 'card'
661
+ | 'direct_debit_sepa'
662
+ | 'direct_debit_ach'
663
+ | 'direct_debit_bacs';
664
+ payloadState: 'active' | 'pending';
634
665
  payloadId: string;
635
666
  payloadCustomerId: string;
636
- webhookEventType: string;
637
- };
667
+ webhookEventType: 'payment_method.errored';
668
+ }>;
638
669
 
639
- type HyperlineSubscriptionActivatedProps = {
670
+ type HyperlineSubscriptionActivatedProps = Partial<{
640
671
  userId: string;
641
672
  tenantId: string;
642
- tenantBillingStatus: string;
643
- webhookEventType: string;
644
- };
673
+ tenantBillingStatus: 'pending' | 'active' | 'canceled';
674
+ webhookEventType: 'subscription.activated';
675
+ }>;
645
676
 
646
- type HyperlineSubscriptionCancelledProps = {
677
+ type HyperlineSubscriptionCancelledProps = Partial<{
647
678
  trialEndAt: string;
648
679
  plan: string;
649
680
  subscriptionId: string;
@@ -653,20 +684,20 @@ type HyperlineSubscriptionCancelledProps = {
653
684
  customerId: string;
654
685
  userId: string;
655
686
  tenantId: string;
656
- webhookEventType: string;
657
- tenantBillingStatus: string;
658
- };
687
+ webhookEventType: 'subscription.cancelled';
688
+ tenantBillingStatus: 'pending' | 'active' | 'canceled';
689
+ }>;
659
690
 
660
- type HyperlineSubscriptionChargedProps = {
691
+ type HyperlineSubscriptionChargedProps = Partial<{
661
692
  plan: string;
662
693
  subscriptionId: string;
663
694
  subscriptionStartDate: string;
664
695
  subscriptionStatus: string;
665
696
  paymentMethodType: string;
666
697
  customerId: string;
667
- };
698
+ }>;
668
699
 
669
- type HyperlineSubscriptionCreatedProps = {
700
+ type HyperlineSubscriptionCreatedProps = Partial<{
670
701
  trialStartDate: string;
671
702
  plan: string;
672
703
  subscriptionId: string;
@@ -674,105 +705,98 @@ type HyperlineSubscriptionCreatedProps = {
674
705
  subscriptionStatus: string;
675
706
  paymentMethodType: string;
676
707
  customerId: string;
677
- };
708
+ }>;
678
709
 
679
- type HyperlineSubscriptionErroredProps = {
710
+ type HyperlineSubscriptionErroredProps = Partial<{
680
711
  userId: string;
681
712
  tenantId: string;
682
- tenantBillingStatus: string;
683
- webhookEventType: string;
684
- };
713
+ tenantBillingStatus: 'pending' | 'active' | 'canceled';
714
+ webhookEventType: 'subscription.errored';
715
+ }>;
685
716
 
686
- type HyperlineSubscriptionPausedProps = {
717
+ type HyperlineSubscriptionPausedProps = Partial<{
687
718
  userId: string;
688
719
  tenantId: string;
689
- tenantBillingStatus: string;
690
- webhookEventType: string;
691
- };
720
+ tenantBillingStatus: 'pending' | 'active' | 'canceled';
721
+ webhookEventType: 'subscription.paused';
722
+ }>;
692
723
 
693
- type HyperlineSubscriptionVoidedProps = {
724
+ type HyperlineSubscriptionVoidedProps = Partial<{
694
725
  userId: string;
695
726
  tenantId: string;
696
- tenantBillingStatus: string;
697
- webhookEventType: string;
698
- };
727
+ tenantBillingStatus: 'pending' | 'active' | 'canceled';
728
+ webhookEventType: 'subscription.voided';
729
+ }>;
699
730
 
700
- type HyperlineTrialEndedProps = {
731
+ type HyperlineTrialEndedProps = Partial<{
701
732
  trialStartDate: string;
702
733
  trialEndDate: string;
703
734
  plan: string;
704
735
  subscriptionId: string;
705
736
  subscriptionStartDate: string;
706
737
  subscriptionStatus: string;
707
- paymentMethodType: string;
708
- };
738
+ paymentMethodType: 'card';
739
+ }>;
709
740
 
710
- type HyperlineTrialStartedProps = {
741
+ type HyperlineTrialStartedProps = Partial<{
711
742
  tenantId: string;
712
743
  userId: string;
713
- tenantBillingStatus: string;
714
- webhookEventType: string;
715
- };
744
+ tenantBillingStatus: 'pending' | 'active' | 'canceled';
745
+ webhookEventType: 'payment_method.created';
746
+ }>;
716
747
 
717
- type OwnerCreatedProps = {
748
+ type OwnerCreatedProps = Partial<{
718
749
  userId: string;
719
750
  tenantId: string;
720
751
  ownerId: string;
721
- };
752
+ }>;
722
753
 
723
- type OwnerDeletedProps = {
754
+ type OwnerDeletedProps = Partial<{
724
755
  userId: string;
725
756
  tenantId: string;
726
757
  ownerId: string;
727
- };
758
+ }>;
728
759
 
729
- type OwnerTaxInfoModalOpenedProps = {
730
- userId: string;
731
- tenantId: string;
732
- ownerId: string;
733
- taxId: string;
734
- };
760
+ type OwnerTaxInfoModalOpenedProps = Partial<{
761
+ flag: string;
762
+ }>;
735
763
 
736
- type OwnerTaxInfoModalSubmittedProps = {
737
- userId: string;
738
- tenantId: string;
739
- ownerId: string;
740
- taxId: string;
741
- status: string;
742
- };
764
+ type OwnerTaxInfoModalSubmittedProps = Partial<{
765
+ flag: string;
766
+ }>;
743
767
 
744
- type OwnerUpdatedProps = {
768
+ type OwnerUpdatedProps = Partial<{
745
769
  userId: string;
746
770
  tenantId: string;
747
771
  ownerId: string;
748
- };
772
+ }>;
749
773
 
750
- type OwnershipCreatedProps = {
774
+ type OwnershipCreatedProps = Partial<{
751
775
  ownershipId: string;
752
776
  ownerId: string;
753
777
  listingId: string;
754
778
  userId: string;
755
779
  userEmail: string;
756
780
  tenantId: string;
757
- };
781
+ }>;
758
782
 
759
- type OwnershipDeletedProps = {
783
+ type OwnershipDeletedProps = Partial<{
760
784
  ownershipId: string;
761
785
  ownerId: string;
762
786
  listingId: string;
763
787
  userId: string;
764
788
  userEmail: string;
765
789
  tenantId: string;
766
- };
790
+ }>;
767
791
 
768
- type OwnershipUpdatedProps = {
792
+ type OwnershipUpdatedProps = Partial<{
769
793
  ownershipId: string;
770
794
  ownerId: string;
771
795
  listingId: string;
772
796
  userId: string;
773
797
  userEmail: string;
774
798
  tenantId: string;
775
- };
799
+ }>;
776
800
 
777
801
  type SetupAccountingConfigCompleted = any;
778
802
 
@@ -782,88 +806,88 @@ type SetupClassesSet = any;
782
806
 
783
807
  type SetupEntitiesSet = any;
784
808
 
785
- type SetupListingImportedProps = {
809
+ type SetupListingImportedProps = Partial<{
786
810
  appId: string;
787
- };
811
+ }>;
788
812
 
789
- type SetupOwnerImportedProps = {
813
+ type SetupOwnerImportedProps = Partial<{
790
814
  appId: string;
791
- };
815
+ }>;
792
816
 
793
- type SetupReservationImportedProps = {
817
+ type SetupReservationImportedProps = Partial<{
794
818
  appId: string;
795
- };
819
+ }>;
796
820
 
797
821
  type SetupVendorsSet = any;
798
822
 
799
- type TaxStatementDownloadedProps = {
800
- taxStatementStatus: string;
823
+ type TaxStatementDownloadedProps = Partial<{
824
+ taxStatementStatus?: 'draft' | 'ignored' | 'inReview' | 'ready' | 'submitted';
801
825
  taxStatementId: string;
802
826
  taxStatementUrl: string;
803
827
  userType: string;
804
828
  userId: string;
805
829
  userEmail: string;
806
830
  tenantId: string;
807
- };
831
+ }>;
808
832
 
809
- type TaxStatementPreviewOpenedProps = {
810
- taxStatementStatus: string;
833
+ type TaxStatementPreviewOpenedProps = Partial<{
834
+ taxStatementStatus?: 'draft' | 'ignored' | 'inReview' | 'ready' | 'submitted';
811
835
  taxStatementId: string;
812
836
  taxStatementUrl: string;
813
837
  userType: string;
814
838
  userId: string;
815
839
  userEmail: string;
816
840
  tenantId: string;
817
- };
841
+ }>;
818
842
 
819
- type TeamAddedProps = {
843
+ type TeamAddedProps = Partial<{
820
844
  tenantId: string;
821
845
  tenantName: string;
822
846
  partnerId: string;
823
847
  userType: string;
824
848
  userId: string;
825
849
  userEmail: string;
826
- };
850
+ }>;
827
851
 
828
- type TeamDeletedProps = {
852
+ type TeamDeletedProps = Partial<{
829
853
  tenantId: string;
830
854
  userId: string;
831
855
  userEmail: string;
832
- };
856
+ }>;
833
857
 
834
- type TeamInfoUpdatedProps = {
858
+ type TeamInfoUpdatedProps = Partial<{
835
859
  userId: string;
836
860
  tenantId: string;
837
861
  userEmail: string;
838
- };
862
+ }>;
839
863
 
840
- type TeamMemberRemovedProps = {
864
+ type TeamMemberRemovedProps = Partial<{
841
865
  userId: string;
842
866
  removedUserId: string;
843
867
  tenantId: string;
844
868
  userEmail: string;
845
- };
869
+ }>;
846
870
 
847
- type TestErrorProps = {
871
+ type TestErrorProps = Partial<{
848
872
  userId: string;
849
873
  tenantId: string;
850
- };
874
+ }>;
851
875
 
852
- type TestEventProps = {
853
- success: string;
854
- };
876
+ type TestEventProps = Partial<{
877
+ success: boolean;
878
+ }>;
855
879
 
856
- type UserForcedReloadedProps = {
880
+ type UserForcedReloadedProps = Partial<{
857
881
  appName: string;
858
- };
882
+ }>;
859
883
 
860
- type OwnerStatementOpenedProps = {
884
+ type OwnerStatementOpenedProps = Partial<{
861
885
  userId: string;
862
886
  tenantId: string;
863
887
  userEmail: string;
864
888
  listingId: string;
865
889
  startAt: string;
866
- };
890
+ }>;
867
891
 
868
892
  type ListingActivated = any;
869
893