@vrplatform/log 2.0.82 → 2.0.84

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.
@@ -62,8 +62,7 @@ export type TrackingEventProps = {
62
62
  account_signup_code_failed: AccountSignupCodeFailedProps;
63
63
  account_signup_code_completed: AccountSignupCodeCompletedProps;
64
64
  account_signup_completed: AccountSignupCompletedProps;
65
- onboarding_owner_statement_settings_set: OnboardingOwnerStatementSettingsSetProps;
66
- onboarding_billing_settings_set: OnboardingBillingSettingsSetProps;
65
+ onboarding_account_settings_set: OnboardingAccountSettingsSetProps;
67
66
  onboarding_completed: OnboardingCompletedProps;
68
67
  account_signed_out: AccountSignedOutProps;
69
68
  account_signin_completed: AccountSigninCompletedProps;
@@ -74,9 +73,11 @@ export type TrackingEventProps = {
74
73
  connection_reconnected: ConnectionReconnectedProps;
75
74
  connection_deleted: ConnectionDeletedProps;
76
75
  connection_requested: ConnectionRequestedProps;
76
+ ownership_period_created: OwnershipPeriodCreatedProps;
77
77
  ownership_created: OwnershipCreatedProps;
78
78
  ownership_updated: OwnershipUpdatedProps;
79
79
  ownership_deleted: OwnershipDeletedProps;
80
+ contact_created: ContactCreatedProps;
80
81
  owner_created: OwnerCreatedProps;
81
82
  owner_updated: OwnerUpdatedProps;
82
83
  owner_deleted: OwnerDeletedProps;
@@ -188,18 +189,13 @@ type AccountSignupCompletedProps = MaybePartial<{
188
189
  lastName: string;
189
190
  userId: string;
190
191
  }>;
191
- type OnboardingOwnerStatementSettingsSetProps = MaybePartial<{
192
+ type OnboardingAccountSettingsSetProps = MaybePartial<{
192
193
  tenantId: string;
193
194
  userId: string;
194
195
  start: Date;
195
196
  country: string;
196
197
  currency: string;
197
198
  }>;
198
- type OnboardingBillingSettingsSetProps = MaybePartial<{
199
- tenantId: string;
200
- userId: string;
201
- paymentMethod: 'card' | 'direct_debit';
202
- }>;
203
199
  type OnboardingCompletedProps = MaybePartial<{
204
200
  tenantId: string;
205
201
  userId: string;
@@ -419,6 +415,12 @@ type HyperlineTrialStartedProps = MaybePartial<{
419
415
  subscriptionStatus: SubscriptionStatus;
420
416
  trialUntil: string;
421
417
  }>;
418
+ type ContactCreatedProps = MaybePartial<{
419
+ type: 'owner' | 'vendor';
420
+ contactId: string;
421
+ contactEmail: string;
422
+ companyType: 'c_corporation' | 's_corporation' | 'partnership' | 'trust_estate' | 'limited_liability_company';
423
+ }>;
422
424
  type OwnerCreatedProps = MaybePartial<{
423
425
  userId: string;
424
426
  tenantId: string;
@@ -446,6 +448,14 @@ type OwnerUpdatedProps = MaybePartial<{
446
448
  tenantId: string;
447
449
  ownerId: string;
448
450
  }>;
451
+ type OwnershipPeriodCreatedProps = MaybePartial<{
452
+ ownershipPeriodId: string;
453
+ contactId: string;
454
+ listingId: string;
455
+ startAt: string;
456
+ endAt: string;
457
+ split: number;
458
+ }>;
449
459
  type OwnershipCreatedProps = MaybePartial<{
450
460
  ownershipId: string;
451
461
  ownerId: string;
@@ -62,8 +62,7 @@ export type TrackingEventProps = {
62
62
  account_signup_code_failed: AccountSignupCodeFailedProps;
63
63
  account_signup_code_completed: AccountSignupCodeCompletedProps;
64
64
  account_signup_completed: AccountSignupCompletedProps;
65
- onboarding_owner_statement_settings_set: OnboardingOwnerStatementSettingsSetProps;
66
- onboarding_billing_settings_set: OnboardingBillingSettingsSetProps;
65
+ onboarding_account_settings_set: OnboardingAccountSettingsSetProps;
67
66
  onboarding_completed: OnboardingCompletedProps;
68
67
  account_signed_out: AccountSignedOutProps;
69
68
  account_signin_completed: AccountSigninCompletedProps;
@@ -74,9 +73,11 @@ export type TrackingEventProps = {
74
73
  connection_reconnected: ConnectionReconnectedProps;
75
74
  connection_deleted: ConnectionDeletedProps;
76
75
  connection_requested: ConnectionRequestedProps;
76
+ ownership_period_created: OwnershipPeriodCreatedProps;
77
77
  ownership_created: OwnershipCreatedProps;
78
78
  ownership_updated: OwnershipUpdatedProps;
79
79
  ownership_deleted: OwnershipDeletedProps;
80
+ contact_created: ContactCreatedProps;
80
81
  owner_created: OwnerCreatedProps;
81
82
  owner_updated: OwnerUpdatedProps;
82
83
  owner_deleted: OwnerDeletedProps;
@@ -188,18 +189,13 @@ type AccountSignupCompletedProps = MaybePartial<{
188
189
  lastName: string;
189
190
  userId: string;
190
191
  }>;
191
- type OnboardingOwnerStatementSettingsSetProps = MaybePartial<{
192
+ type OnboardingAccountSettingsSetProps = MaybePartial<{
192
193
  tenantId: string;
193
194
  userId: string;
194
195
  start: Date;
195
196
  country: string;
196
197
  currency: string;
197
198
  }>;
198
- type OnboardingBillingSettingsSetProps = MaybePartial<{
199
- tenantId: string;
200
- userId: string;
201
- paymentMethod: 'card' | 'direct_debit';
202
- }>;
203
199
  type OnboardingCompletedProps = MaybePartial<{
204
200
  tenantId: string;
205
201
  userId: string;
@@ -419,6 +415,12 @@ type HyperlineTrialStartedProps = MaybePartial<{
419
415
  subscriptionStatus: SubscriptionStatus;
420
416
  trialUntil: string;
421
417
  }>;
418
+ type ContactCreatedProps = MaybePartial<{
419
+ type: 'owner' | 'vendor';
420
+ contactId: string;
421
+ contactEmail: string;
422
+ companyType: 'c_corporation' | 's_corporation' | 'partnership' | 'trust_estate' | 'limited_liability_company';
423
+ }>;
422
424
  type OwnerCreatedProps = MaybePartial<{
423
425
  userId: string;
424
426
  tenantId: string;
@@ -446,6 +448,14 @@ type OwnerUpdatedProps = MaybePartial<{
446
448
  tenantId: string;
447
449
  ownerId: string;
448
450
  }>;
451
+ type OwnershipPeriodCreatedProps = MaybePartial<{
452
+ ownershipPeriodId: string;
453
+ contactId: string;
454
+ listingId: string;
455
+ startAt: string;
456
+ endAt: string;
457
+ split: number;
458
+ }>;
449
459
  type OwnershipCreatedProps = MaybePartial<{
450
460
  ownershipId: string;
451
461
  ownerId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vrplatform/log",
3
- "version": "2.0.82",
3
+ "version": "2.0.84",
4
4
  "main": "build/main/index.js",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -124,9 +124,9 @@ export type UseTracking = {
124
124
  HASURA_GRAPHQL_ADMIN_SECRET?: string;
125
125
  HASURA_ADMIN_SECRET?: string;
126
126
  MIXPANEL_TOKEN?: string;
127
- MIXPANEL_USER?: string;
128
- MIXPANEL_PASSWORD?: string;
129
- MIXPANEL_PROJECT_ID?: string;
127
+ MIXPANEL_USER?: string; // only needed for track(..., _import = true)
128
+ MIXPANEL_PASSWORD?: string; // only needed for track(..., _import = true)
129
+ MIXPANEL_PROJECT_ID?: string; // only needed for track(..., _import = true)
130
130
  } & LogBindings;
131
131
  debugging?: boolean;
132
132
  };
@@ -78,21 +78,14 @@ export type GroupProps = OptionalUser<{
78
78
  3. account_signup_code_completed
79
79
  4. account_signup_completed
80
80
  5. connection_created
81
- 6. onboarding_owner_statement_settings_set
82
- 7. onboarding_billing_settings_set
81
+ 6. onboarding_account_settings_set
83
82
  8. onboarding_completed
84
- -> First OwnerStatement Funnel starts here!
85
83
  9. hyperline_trial_started
86
- 10. hyperline_invoice_ready
87
- 11. hyperline_invoice_settled
88
- */
89
-
90
- /* First OwnerStatement Funnel
91
- 1. owner_created
92
- 2. ownership_created
93
- 2a. "Setup 1st Listing on Management Commission"???
94
- 2aa. "Add an expense (optional)"???
95
- 3. owner_statement_status_changed
84
+ 10. owner_created
85
+ 11. ownership_created
86
+ 12. page view - owner statement
87
+ 13. hyperline_invoice_ready
88
+ 14. hyperline_invoice_settled
96
89
  */
97
90
 
98
91
  export type TrackingEventProps = {
@@ -103,8 +96,7 @@ export type TrackingEventProps = {
103
96
  account_signup_code_failed: AccountSignupCodeFailedProps;
104
97
  account_signup_code_completed: AccountSignupCodeCompletedProps;
105
98
  account_signup_completed: AccountSignupCompletedProps;
106
- onboarding_owner_statement_settings_set: OnboardingOwnerStatementSettingsSetProps;
107
- onboarding_billing_settings_set: OnboardingBillingSettingsSetProps;
99
+ onboarding_account_settings_set: OnboardingAccountSettingsSetProps;
108
100
  onboarding_completed: OnboardingCompletedProps;
109
101
 
110
102
  // Other Events
@@ -117,9 +109,11 @@ export type TrackingEventProps = {
117
109
  connection_reconnected: ConnectionReconnectedProps;
118
110
  connection_deleted: ConnectionDeletedProps;
119
111
  connection_requested: ConnectionRequestedProps;
112
+ ownership_period_created: OwnershipPeriodCreatedProps;
120
113
  ownership_created: OwnershipCreatedProps;
121
114
  ownership_updated: OwnershipUpdatedProps;
122
115
  ownership_deleted: OwnershipDeletedProps;
116
+ contact_created: ContactCreatedProps;
123
117
  owner_created: OwnerCreatedProps;
124
118
  owner_updated: OwnerUpdatedProps;
125
119
  owner_deleted: OwnerDeletedProps;
@@ -276,7 +270,7 @@ type AccountSignupCompletedProps = MaybePartial<{
276
270
  userId: string;
277
271
  }>;
278
272
 
279
- type OnboardingOwnerStatementSettingsSetProps = MaybePartial<{
273
+ type OnboardingAccountSettingsSetProps = MaybePartial<{
280
274
  tenantId: string;
281
275
  userId: string;
282
276
  start: Date;
@@ -284,12 +278,6 @@ type OnboardingOwnerStatementSettingsSetProps = MaybePartial<{
284
278
  currency: string;
285
279
  }>;
286
280
 
287
- type OnboardingBillingSettingsSetProps = MaybePartial<{
288
- tenantId: string;
289
- userId: string;
290
- paymentMethod: 'card' | 'direct_debit';
291
- }>;
292
-
293
281
  type OnboardingCompletedProps = MaybePartial<{
294
282
  tenantId: string;
295
283
  userId: string;
@@ -555,6 +543,18 @@ type HyperlineTrialStartedProps = MaybePartial<{
555
543
  trialUntil: string;
556
544
  }>;
557
545
 
546
+ type ContactCreatedProps = MaybePartial<{
547
+ type: 'owner' | 'vendor';
548
+ contactId: string;
549
+ contactEmail: string;
550
+ companyType:
551
+ | 'c_corporation'
552
+ | 's_corporation'
553
+ | 'partnership'
554
+ | 'trust_estate'
555
+ | 'limited_liability_company';
556
+ }>;
557
+
558
558
  type OwnerCreatedProps = MaybePartial<{
559
559
  userId: string;
560
560
  tenantId: string;
@@ -594,6 +594,15 @@ type OwnerUpdatedProps = MaybePartial<{
594
594
  ownerId: string;
595
595
  }>;
596
596
 
597
+ type OwnershipPeriodCreatedProps = MaybePartial<{
598
+ ownershipPeriodId: string;
599
+ contactId: string; // for each membership
600
+ listingId: string;
601
+ startAt: string;
602
+ endAt: string;
603
+ split: number; // for each membership
604
+ }>;
605
+
597
606
  type OwnershipCreatedProps = MaybePartial<{
598
607
  ownershipId: string;
599
608
  ownerId: string;