@vrplatform/log 2.0.0 → 2.0.1

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.
Files changed (61) hide show
  1. package/build/main/log/index.spec.d.ts +0 -0
  2. package/build/main/log/index.spec.js +2 -0
  3. package/build/main/log/index.spec.js.map +1 -0
  4. package/build/main/log/type.d.ts +3 -1
  5. package/build/main/tracking/_intercom.d.ts +109 -0
  6. package/build/main/tracking/_intercom.js +139 -0
  7. package/build/main/tracking/_intercom.js.map +1 -0
  8. package/build/main/tracking/eventTypes.d.ts +16 -0
  9. package/build/main/tracking/eventTypes.js +3 -0
  10. package/build/main/tracking/eventTypes.js.map +1 -0
  11. package/build/main/tracking/index.d.ts +96 -33
  12. package/build/main/tracking/index.js +105 -68
  13. package/build/main/tracking/index.js.map +1 -1
  14. package/build/main/tracking/types.d.ts +508 -15
  15. package/build/main/utils/convertKeysToSnakeCase.d.ts +1 -0
  16. package/build/main/utils/convertKeysToSnakeCase.js +23 -0
  17. package/build/main/utils/convertKeysToSnakeCase.js.map +1 -0
  18. package/build/main/utils/convertValuesToString.d.ts +5 -0
  19. package/build/main/utils/convertValuesToString.js +11 -0
  20. package/build/main/utils/convertValuesToString.js.map +1 -0
  21. package/build/main/utils/index.d.ts +3 -0
  22. package/build/main/utils/index.js +20 -0
  23. package/build/main/utils/index.js.map +1 -0
  24. package/build/main/utils/isTest.d.ts +1 -0
  25. package/build/main/utils/isTest.js +18 -0
  26. package/build/main/utils/isTest.js.map +1 -0
  27. package/build/module/log/index.spec.d.ts +0 -0
  28. package/build/module/log/index.spec.js +2 -0
  29. package/build/module/log/index.spec.js.map +1 -0
  30. package/build/module/log/type.d.ts +3 -1
  31. package/build/module/tracking/_intercom.d.ts +109 -0
  32. package/build/module/tracking/_intercom.js +136 -0
  33. package/build/module/tracking/_intercom.js.map +1 -0
  34. package/build/module/tracking/eventTypes.d.ts +16 -0
  35. package/build/module/tracking/eventTypes.js +2 -0
  36. package/build/module/tracking/eventTypes.js.map +1 -0
  37. package/build/module/tracking/index.d.ts +96 -33
  38. package/build/module/tracking/index.js +96 -57
  39. package/build/module/tracking/index.js.map +1 -1
  40. package/build/module/tracking/types.d.ts +508 -15
  41. package/build/module/utils/convertKeysToSnakeCase.d.ts +1 -0
  42. package/build/module/utils/convertKeysToSnakeCase.js +19 -0
  43. package/build/module/utils/convertKeysToSnakeCase.js.map +1 -0
  44. package/build/module/utils/convertValuesToString.d.ts +5 -0
  45. package/build/module/utils/convertValuesToString.js +8 -0
  46. package/build/module/utils/convertValuesToString.js.map +1 -0
  47. package/build/module/utils/index.d.ts +3 -0
  48. package/build/module/utils/index.js +4 -0
  49. package/build/module/utils/index.js.map +1 -0
  50. package/build/module/utils/isTest.d.ts +1 -0
  51. package/build/module/utils/isTest.js +14 -0
  52. package/build/module/utils/isTest.js.map +1 -0
  53. package/package.json +22 -24
  54. package/src/log/type.ts +5 -1
  55. package/src/tracking/index.ts +230 -97
  56. package/src/tracking/types.ts +622 -97
  57. package/src/utils/convertKeysToSnakeCase.ts +21 -0
  58. package/src/utils/convertValuesToString.ts +10 -0
  59. package/src/utils/index.ts +3 -0
  60. package/src/utils/isTest.ts +16 -0
  61. package/src/tracking/intercom.ts +0 -258
@@ -1,97 +1,622 @@
1
- type AuthEvent =
2
- | 'account_signin_completed'
3
- | 'account_signup_code_requested'
4
- | 'account_signup_code_completed'
5
- | 'account_signup_code_failed'
6
- | 'account_signup_completed'
7
- | 'account_password_reset_requested'
8
- | 'account_password_reset_failed'
9
- | 'account_password_reset_completed'
10
- | 'account_invitation_accepted'
11
- | 'account_signed_out';
12
-
13
- type TeamEvent =
14
- | 'team_added'
15
- | 'team_info_updated'
16
- | 'team_deleted'
17
- | 'team_member_removed';
18
-
19
- type ConnectionEvent =
20
- | 'connection_created'
21
- | 'connection_reconnected'
22
- | 'connection_deleted'
23
- | 'connection_requested';
24
-
25
- type OwnershipEvent =
26
- | 'ownership_created'
27
- | 'ownership_updated'
28
- | 'ownership_deleted';
29
-
30
- type OwnerEvent =
31
- | 'owner_created'
32
- | 'owner_updated'
33
- | 'owner_deleted'
34
- | 'owner_tax_info_modal_opened'
35
- | 'owner_tax_info_modal_submitted';
36
-
37
- type SetupEvent =
38
- | 'setup_classes_set'
39
- | 'setup_accounting_version_completed'
40
- | 'setup_accounting_config_completed'
41
- | 'setup_owner_imported'
42
- | 'setup_listing_imported';
43
-
44
- type AutomationEvent =
45
- | 'automation_created'
46
- | 'automation_updated'
47
- | 'automation_deleted';
48
-
49
- type TaxStatementEvent =
50
- | 'tax_statement_preview_opened'
51
- | 'tax_statement_downloaded';
52
-
53
- type GLOwnerStatementEvent =
54
- | 'gl_owner_statement_preview_opened'
55
- | 'gl_owner_statement_downloaded';
56
-
57
- type HyperlineEvent =
58
- | 'hyperline_invoice_ready'
59
- | 'hyperline_invoice_settled'
60
- | 'hyperline_trial_started'
61
- | 'hyperline_trial_ended'
62
- | 'hyperline_subscription_activated'
63
- | 'hyperline_subscription_cancelled'
64
- | 'hyperline_subscription_created'
65
- | 'hyperline_subscription_errored'
66
- | 'hyperline_subscription_paused'
67
- | 'hyperline_subscription_voided'
68
- | 'hyperline_subscription_charged'
69
- | 'hyperline_customer_created'
70
- | 'hyperline_customer_updated'
71
- | 'hyperline_payment_method_created'
72
- | 'hyperline_payment_method_errored'
73
- | 'hyperline_payment_method_deleted';
74
-
75
- type ListingEvent = 'listing_activated' | 'listing_deactivated';
76
-
77
- type ReportEvent = 'listings_reported';
78
-
79
- type UserEvent = 'update_refresh_accepted' | 'owner_statement_opened';
80
-
81
- type TestEvent = 'test_event' | 'test_error';
82
-
83
- export type TrackingEvent =
84
- | AuthEvent
85
- | TeamEvent
86
- | ConnectionEvent
87
- | OwnershipEvent
88
- | OwnerEvent
89
- | SetupEvent
90
- | AutomationEvent
91
- | TaxStatementEvent
92
- | GLOwnerStatementEvent
93
- | HyperlineEvent
94
- | UserEvent
95
- | ListingEvent
96
- | ReportEvent
97
- | TestEvent;
1
+ export type TrackProps<T extends TrackingEvent> = OptionalUser<{
2
+ groupId: string;
3
+ timestamp?: Date;
4
+ event: T;
5
+ properties: TrackingEventProps[T];
6
+ }>;
7
+
8
+ export type IdentifyProps = {
9
+ userId: string;
10
+ traits?: {
11
+ id?: string;
12
+ email?: string;
13
+ avatar?: string;
14
+ name?: string;
15
+ firstName?: string;
16
+ lastName?: string;
17
+ createdAt?: string;
18
+ country?: string;
19
+ isSuperAdmin?: boolean;
20
+ isVrpAdmin?: boolean;
21
+ isPartnerAdmin?: boolean;
22
+ isTeamAdmin?: boolean;
23
+ role?: UserRole;
24
+ [key: string]: string | number | boolean | null | undefined;
25
+ };
26
+ disableGeoip?: boolean;
27
+ timestamp?: Date;
28
+ };
29
+
30
+ export type GroupProps = OptionalUser<{
31
+ groupId: string;
32
+ traits?: {
33
+ name?: string;
34
+ type?: TenantType;
35
+ avatar?: string;
36
+ createdAt?: string;
37
+ partner?: string;
38
+ partnerId?: string;
39
+ billingCustomerId?: string;
40
+ billingSubscriptionStatus?: string; // todo: update type as enum
41
+ status?: TenantStatus;
42
+ isOnboarding?: boolean;
43
+ accountingPartner?: string;
44
+ billingPartner?: string;
45
+ pms?: string;
46
+ apps?: string;
47
+ accountingSoftware?: string;
48
+ activeListings?: number;
49
+ mrr?: number;
50
+ plan?: string;
51
+ paymentMethodType?: string;
52
+ [key: string]: string | number | boolean | null | undefined;
53
+ };
54
+ timestamp?: Date;
55
+ }>;
56
+
57
+ type TrackingEventProps = {
58
+ account_invitation_accepted: AccountInvitationAcceptedProps;
59
+ account_signed_out: AccountSignedOutProps;
60
+ account_signin_completed: AccountSigninCompletedProps;
61
+ account_signup_code_requested: AccountSignupCodeRequestedProps;
62
+ account_signup_code_completed: AccountSignupCodeCompletedProps;
63
+ account_signup_code_failed: AccountSignupCodeFailedProps;
64
+ account_signup_completed: AccountSignupCompletedProps;
65
+ account_password_reset_requested: AccountPasswordResetRequestedProps;
66
+ account_password_reset_failed: AccountPasswordResetFailedProps;
67
+ account_password_reset_completed: AccountPasswordResetCompletedProps;
68
+ connection_created: ConnectionCreatedProps;
69
+ connection_reconnected: ConnectionReconnectedProps;
70
+ connection_deleted: ConnectionDeletedProps;
71
+ connection_requested: ConnectionRequestedProps;
72
+ ownership_created: OwnershipCreatedProps;
73
+ ownership_updated: OwnershipUpdatedProps;
74
+ ownership_deleted: OwnershipDeletedProps;
75
+ owner_created: OwnerCreatedProps;
76
+ owner_updated: OwnerUpdatedProps;
77
+ owner_deleted: OwnerDeletedProps;
78
+ owner_tax_info_modal_opened: OwnerTaxInfoModalOpenedProps;
79
+ owner_tax_info_modal_submitted: OwnerTaxInfoModalSubmittedProps;
80
+ setup_classes_set: SetupClassesSetProps;
81
+ setup_entities_set: SetupEntitiesSetProps;
82
+ setup_reservation_imported: SetupReservationImportedProps;
83
+ setup_vendors_set: SetupVendorsSetProps;
84
+ setup_accounting_version_completed: SetupAccountingVersionCompletedProps;
85
+ setup_accounting_config_completed: SetupAccountingConfigCompletedProps;
86
+ setup_owner_imported: SetupOwnerImportedProps;
87
+ setup_listing_imported: SetupListingImportedProps;
88
+ automation_created: AutomationCreatedProps;
89
+ automation_updated: AutomationUpdatedProps;
90
+ automation_deleted: AutomationDeletedProps;
91
+ tax_statement_preview_opened: TaxStatementPreviewOpenedProps;
92
+ tax_statement_downloaded: TaxStatementDownloadedProps;
93
+ team_added: TeamAddedProps;
94
+ team_deleted: TeamDeletedProps;
95
+ team_info_updated: TeamInfoUpdatedProps;
96
+ team_member_removed: TeamMemberRemovedProps;
97
+ gl_owner_statement_preview_opened: GlOwnerStatementPreviewOpenedProps;
98
+ gl_owner_statement_downloaded: GlOwnerStatementDownloadedProps;
99
+ hyperline_invoice_ready: HyperlineInvoiceReadyProps;
100
+ hyperline_invoice_settled: HyperlineInvoiceSettledProps;
101
+ hyperline_trial_started: HyperlineTrialStartedProps;
102
+ hyperline_trial_ended: HyperlineTrialEndedProps;
103
+ hyperline_subscription_activated: HyperlineSubscriptionActivatedProps;
104
+ hyperline_subscription_cancelled: HyperlineSubscriptionCancelledProps;
105
+ hyperline_subscription_created: HyperlineSubscriptionCreatedProps;
106
+ hyperline_subscription_errored: HyperlineSubscriptionErroredProps;
107
+ hyperline_subscription_paused: HyperlineSubscriptionPausedProps;
108
+ hyperline_subscription_voided: HyperlineSubscriptionVoidedProps;
109
+ hyperline_subscription_charged: HyperlineSubscriptionChargedProps;
110
+ hyperline_customer_created: HyperlineCustomerCreatedProps;
111
+ hyperline_customer_updated: HyperlineCustomerUpdatedProps;
112
+ hyperline_payment_method_created: HyperlinePaymentMethodCreatedProps;
113
+ hyperline_payment_method_errored: HyperlinePaymentMethodErroredProps;
114
+ hyperline_payment_method_deleted: HyperlinePaymentMethodDeletedProps;
115
+ listing_activated: ListingActivatedProps;
116
+ listing_deactivated: ListingDeactivatedProps;
117
+ listings_reported: ListingsReportedProps;
118
+ update_refresh_accepted: UpdateRefreshAcceptedProps;
119
+ owner_statement_opened: OwnerStatementOpenedProps;
120
+ test_event: TestEventProps;
121
+ test_error: TestErrorProps;
122
+ };
123
+ export type TrackingEvent = keyof TrackingEventProps;
124
+
125
+ type OptionalUser<T> = T &
126
+ (
127
+ | { userId: string; anonymousId?: string }
128
+ | {
129
+ userId?: string;
130
+ anonymousId: string;
131
+ }
132
+ );
133
+
134
+ export type UserRole =
135
+ | 'super-admin'
136
+ | 'vrp-admin'
137
+ | 'partner-admin'
138
+ | 'team-admin'
139
+ | 'admin'
140
+ | 'owner'
141
+ | 'user';
142
+ export type TenantType = 'admin' | 'partner' | 'propertyManager';
143
+ export type TenantStatus = 'active' | 'inactive';
144
+ export type WebhookEventType =
145
+ | 'customer.created'
146
+ | 'customer.updated'
147
+ | 'subscription.activated'
148
+ | 'subscription.cancelled'
149
+ | 'subscription.created'
150
+ | 'subscription.errored'
151
+ | 'subscription.paused'
152
+ | 'subscription.voided'
153
+ | 'subscription.charged'
154
+ | 'payment_method.created'
155
+ | 'payment_method.errored'
156
+ | 'payment_method.deleted';
157
+
158
+ type AccountInvitationAcceptedProps = Partial<{
159
+ userId: string;
160
+ userEmail: string;
161
+ userRole: 'owner' | 'user' | 'admin';
162
+ tenantId: string;
163
+ isNewUser: boolean;
164
+ }>;
165
+
166
+ type AccountPasswordResetCompletedProps = Partial<{
167
+ userEmail: string;
168
+ }>;
169
+
170
+ type AccountPasswordResetFailedProps = Partial<{
171
+ userEmail: string;
172
+ status:
173
+ | 'needs_second_factor'
174
+ | 'needs_identifier'
175
+ | 'needs_first_factor'
176
+ | 'needs_new_password'
177
+ | null
178
+ | any;
179
+ }>;
180
+
181
+ type AccountPasswordResetRequestedProps = Partial<{
182
+ userEmail: string;
183
+ }>;
184
+
185
+ type AccountSignedOutProps = Partial<{
186
+ userId: string;
187
+ userEmail: string;
188
+ tenantId: string;
189
+ firstName: string;
190
+ lastName: string;
191
+ }>;
192
+
193
+ type AccountSigninCompletedProps = Partial<{
194
+ firstName: string;
195
+ lastName: string;
196
+ userEmail: string;
197
+ }>;
198
+
199
+ type AccountSignupCodeCompletedProps = Partial<{
200
+ firstName: string;
201
+ lastName: string;
202
+ userEmail: string;
203
+ companyName: string;
204
+ type: 'property_manager' | 'partner';
205
+ }>;
206
+
207
+ type AccountSignupCodeFailedProps = Partial<{
208
+ firstName: string;
209
+ lastName: string;
210
+ userEmail: string;
211
+ companyName: string;
212
+ type: 'property_manager' | 'partner';
213
+ status: 'missing_requirements' | 'abandoned' | null | any;
214
+ }>;
215
+
216
+ type AccountSignupCodeRequestedProps = Partial<{
217
+ firstName: string;
218
+ lastName: string;
219
+ userEmail: string;
220
+ companyName: string;
221
+ type: 'property_manager' | 'partner';
222
+ }>;
223
+
224
+ type AccountSignupCompletedProps = Partial<{
225
+ tenantId: string;
226
+ userEmail: string;
227
+ firstName: string;
228
+ lastName: string;
229
+ userId: string;
230
+ }>;
231
+
232
+ type AutomationCreatedProps = Partial<{
233
+ automationId: string;
234
+ templateId: string;
235
+ type?: string | null;
236
+ uniqueRef: string;
237
+ userId: string;
238
+ userEmail: string;
239
+ tenantId: string;
240
+ }>;
241
+
242
+ type AutomationDeletedProps = Partial<{
243
+ automationId: string;
244
+ templateId: string;
245
+ type?: string | null;
246
+ uniqueRef: string;
247
+ userId: string;
248
+ userEmail: string;
249
+ tenantId: string;
250
+ }>;
251
+
252
+ type AutomationUpdatedProps = any;
253
+
254
+ type ConnectionCreatedProps = Partial<{
255
+ connectionId: string;
256
+ tenantId: string;
257
+ userId: string;
258
+ userEmail: string;
259
+ appId: string;
260
+ type?: string;
261
+ }>;
262
+
263
+ type ConnectionDeletedProps = Partial<{
264
+ connectionId: string;
265
+ tenantId: string;
266
+ type?: string;
267
+ userId: string;
268
+ appId: string;
269
+ userEmail: string;
270
+ }>;
271
+
272
+ type ConnectionReconnectedProps = Partial<{
273
+ connectionId: string;
274
+ tenantId: string;
275
+ userId: string;
276
+ userEmail: string;
277
+ appId: string;
278
+ }>;
279
+
280
+ type ConnectionRequestedProps = Partial<{
281
+ type: 'PMS' | 'Accounting';
282
+ website: string;
283
+ userId: string;
284
+ userEmail: string;
285
+ tenantId: string;
286
+ }>;
287
+
288
+ type GlOwnerStatementDownloadedProps = Partial<{
289
+ ownerStatementId: string;
290
+ ownerStatementUrls: string[];
291
+ userType: 'owner' | 'property_manager';
292
+ }>;
293
+
294
+ type GlOwnerStatementPreviewOpenedProps = Partial<{
295
+ ownerStatementStatus: string;
296
+ ownerStatementId: string;
297
+ ownerStatementUrls: string[];
298
+ userType: 'owner' | 'property_manager';
299
+ }>;
300
+
301
+ type HyperlineCustomerCreatedProps = Partial<{
302
+ userId: string;
303
+ tenantId: string;
304
+ customerId: string;
305
+ billingEmail: string;
306
+ billingAddress: string;
307
+ externalId: string;
308
+ name: string;
309
+ vatNumber: string;
310
+ }>;
311
+
312
+ type HyperlineCustomerUpdatedProps = HyperlineCustomerCreatedProps;
313
+
314
+ type HyperlineInvoiceReadyProps = Partial<{
315
+ status: 'ready';
316
+ paymentMethodType: string;
317
+ invoiceId: string;
318
+ amount: number;
319
+ amountOrigin: number;
320
+ currency: string;
321
+ customerId: string;
322
+ taxAmount: number;
323
+ readyAt: string;
324
+ }>;
325
+
326
+ type HyperlineInvoiceSettledProps = Partial<{
327
+ status: 'settled';
328
+ paymentMethodType: string;
329
+ invoiceId: string;
330
+ amount: number;
331
+ amountOrigin: number;
332
+ currency: string;
333
+ customerId: string;
334
+ taxAmount: number;
335
+ settledAt: string;
336
+ }>;
337
+
338
+ type HyperlinePaymentMethodCreatedProps = Partial<{
339
+ userId: string;
340
+ tenantId: string;
341
+ payloadCreatedAt: string;
342
+ payloadType:
343
+ | 'card'
344
+ | 'direct_debit_sepa'
345
+ | 'direct_debit_ach'
346
+ | 'direct_debit_bacs';
347
+ payloadState: 'active' | 'pending';
348
+ payloadId: string;
349
+ payloadCustomerId: string;
350
+ webhookEventType: 'payment_method.created';
351
+ }>;
352
+
353
+ type HyperlinePaymentMethodDeletedProps = Partial<{
354
+ userId: string;
355
+ tenantId: string;
356
+ payloadCreatedAt: string;
357
+ payloadType:
358
+ | 'card'
359
+ | 'direct_debit_sepa'
360
+ | 'direct_debit_ach'
361
+ | 'direct_debit_bacs';
362
+ payloadState: 'active' | 'pending';
363
+ payloadId: string;
364
+ payloadCustomerId: string;
365
+ webhookEventType: 'payment_method.deleted';
366
+ }>;
367
+
368
+ type HyperlinePaymentMethodErroredProps = Partial<{
369
+ userId: string;
370
+ tenantId: string;
371
+ payloadCreatedAt: string;
372
+ payloadType:
373
+ | 'card'
374
+ | 'direct_debit_sepa'
375
+ | 'direct_debit_ach'
376
+ | 'direct_debit_bacs';
377
+ payloadState: 'active' | 'pending';
378
+ payloadId: string;
379
+ payloadCustomerId: string;
380
+ webhookEventType: 'payment_method.errored';
381
+ }>;
382
+
383
+ type HyperlineSubscriptionActivatedProps = Partial<{
384
+ userId: string;
385
+ tenantId: string;
386
+ tenantBillingStatus: 'pending' | 'active' | 'canceled';
387
+ webhookEventType: 'subscription.activated';
388
+ }>;
389
+
390
+ type HyperlineSubscriptionCancelledProps = Partial<{
391
+ trialEndAt: string;
392
+ plan: string;
393
+ subscriptionId: string;
394
+ subscriptionStartDate: string;
395
+ subscriptionStatus: string;
396
+ paymentMethodType: string;
397
+ customerId: string;
398
+ userId: string;
399
+ tenantId: string;
400
+ webhookEventType: 'subscription.cancelled';
401
+ tenantBillingStatus: 'pending' | 'active' | 'canceled';
402
+ }>;
403
+
404
+ type HyperlineSubscriptionChargedProps = Partial<{
405
+ plan: string;
406
+ subscriptionId: string;
407
+ subscriptionStartDate: string;
408
+ subscriptionStatus: string;
409
+ paymentMethodType: string;
410
+ customerId: string;
411
+ }>;
412
+
413
+ type HyperlineSubscriptionCreatedProps = Partial<{
414
+ trialStartDate: string;
415
+ plan: string;
416
+ subscriptionId: string;
417
+ subscriptionStartDate: string;
418
+ subscriptionStatus: string;
419
+ paymentMethodType: string;
420
+ customerId: string;
421
+ }>;
422
+
423
+ type HyperlineSubscriptionErroredProps = Partial<{
424
+ userId: string;
425
+ tenantId: string;
426
+ tenantBillingStatus: 'pending' | 'active' | 'canceled';
427
+ webhookEventType: 'subscription.errored';
428
+ }>;
429
+
430
+ type HyperlineSubscriptionPausedProps = Partial<{
431
+ userId: string;
432
+ tenantId: string;
433
+ tenantBillingStatus: 'pending' | 'active' | 'canceled';
434
+ webhookEventType: 'subscription.paused';
435
+ }>;
436
+
437
+ type HyperlineSubscriptionVoidedProps = Partial<{
438
+ userId: string;
439
+ tenantId: string;
440
+ tenantBillingStatus: 'pending' | 'active' | 'canceled';
441
+ webhookEventType: 'subscription.voided';
442
+ }>;
443
+
444
+ type HyperlineTrialEndedProps = Partial<{
445
+ trialStartDate: string;
446
+ trialEndDate: string;
447
+ plan: string;
448
+ subscriptionId: string;
449
+ subscriptionStartDate: string;
450
+ subscriptionStatus: string;
451
+ paymentMethodType: 'card';
452
+ }>;
453
+
454
+ type HyperlineTrialStartedProps = Partial<{
455
+ tenantId: string;
456
+ userId: string;
457
+ tenantBillingStatus: 'pending' | 'active' | 'canceled';
458
+ webhookEventType: 'payment_method.created';
459
+ }>;
460
+
461
+ type OwnerCreatedProps = Partial<{
462
+ userId: string;
463
+ tenantId: string;
464
+ ownerId: string;
465
+ type:
466
+ | 'individual'
467
+ | 'company'
468
+ | 'c_corporation'
469
+ | 's_corporation'
470
+ | 'partnership'
471
+ | 'trust_estate'
472
+ | 'limited_liability_company';
473
+ withUserInvite: boolean;
474
+ userEmail: string;
475
+ }>;
476
+
477
+ type OwnerDeletedProps = Partial<{
478
+ userId: string;
479
+ tenantId: string;
480
+ ownerId: string;
481
+ userEmail: string;
482
+ listingId: string;
483
+ ownershipId: string;
484
+ }>;
485
+
486
+ type OwnerTaxInfoModalOpenedProps = Partial<{
487
+ flag: string;
488
+ }>;
489
+
490
+ type OwnerTaxInfoModalSubmittedProps = Partial<{
491
+ flag: string;
492
+ }>;
493
+
494
+ type OwnerUpdatedProps = Partial<{
495
+ userId: string;
496
+ tenantId: string;
497
+ ownerId: string;
498
+ }>;
499
+
500
+ type OwnershipCreatedProps = Partial<{
501
+ ownershipId: string;
502
+ ownerId: string;
503
+ listingId: string;
504
+ userId: string;
505
+ userEmail: string;
506
+ tenantId: string;
507
+ }>;
508
+
509
+ type OwnershipDeletedProps = Partial<{
510
+ ownershipId: string;
511
+ ownerId: string;
512
+ listingId: string;
513
+ userId: string;
514
+ userEmail: string;
515
+ tenantId: string;
516
+ }>;
517
+
518
+ type OwnershipUpdatedProps = Partial<{
519
+ ownershipId: string;
520
+ ownerId: string;
521
+ listingId: string;
522
+ userId: string;
523
+ userEmail: string;
524
+ tenantId: string;
525
+ }>;
526
+
527
+ type SetupAccountingConfigCompletedProps = any;
528
+
529
+ type SetupAccountingVersionCompletedProps = any;
530
+
531
+ type SetupClassesSetProps = any;
532
+
533
+ type SetupEntitiesSetProps = any;
534
+
535
+ type SetupListingImportedProps = Partial<{
536
+ appId: string;
537
+ }>;
538
+
539
+ type SetupOwnerImportedProps = Partial<{
540
+ appId: string;
541
+ }>;
542
+
543
+ type SetupReservationImportedProps = Partial<{
544
+ appId: string;
545
+ }>;
546
+
547
+ type SetupVendorsSetProps = any;
548
+
549
+ type TaxStatementDownloadedProps = Partial<{
550
+ taxStatementStatus?: 'draft' | 'ignored' | 'inReview' | 'ready' | 'submitted';
551
+ taxStatementId: string;
552
+ taxStatementUrl: string;
553
+ userType: string;
554
+ userId: string;
555
+ userEmail: string;
556
+ tenantId: string;
557
+ }>;
558
+
559
+ type TaxStatementPreviewOpenedProps = Partial<{
560
+ taxStatementStatus?: 'draft' | 'ignored' | 'inReview' | 'ready' | 'submitted';
561
+ taxStatementId: string;
562
+ taxStatementUrl: string;
563
+ userType: string;
564
+ userId: string;
565
+ userEmail: string;
566
+ tenantId: string;
567
+ }>;
568
+
569
+ type TeamAddedProps = Partial<{
570
+ tenantId: string;
571
+ tenantName: string;
572
+ partnerId: string;
573
+ userType: string;
574
+ userId: string;
575
+ userEmail: string;
576
+ }>;
577
+
578
+ type TeamDeletedProps = Partial<{
579
+ tenantId: string;
580
+ userId: string;
581
+ userEmail: string;
582
+ }>;
583
+
584
+ type TeamInfoUpdatedProps = Partial<{
585
+ userId: string;
586
+ tenantId: string;
587
+ userEmail: string;
588
+ }>;
589
+
590
+ type TeamMemberRemovedProps = Partial<{
591
+ userId: string;
592
+ removedUserId: string;
593
+ tenantId: string;
594
+ userEmail: string;
595
+ }>;
596
+
597
+ type TestErrorProps = Partial<{
598
+ userId: string;
599
+ tenantId: string;
600
+ }>;
601
+
602
+ type TestEventProps = Partial<{
603
+ success: boolean;
604
+ }>;
605
+
606
+ type UpdateRefreshAcceptedProps = Partial<{
607
+ appName: string;
608
+ }>;
609
+
610
+ type OwnerStatementOpenedProps = Partial<{
611
+ userId: string;
612
+ tenantId: string;
613
+ userEmail: string;
614
+ listingId: string;
615
+ startAt: string;
616
+ }>;
617
+
618
+ type ListingActivatedProps = any;
619
+
620
+ type ListingDeactivatedProps = any;
621
+
622
+ type ListingsReportedProps = any;