@vrplatform/log 2.0.0-alpha.42 → 2.0.0-alpha.43
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.
- package/build/main/tracking/eventTypes.d.ts +16 -0
- package/build/main/tracking/eventTypes.js +3 -0
- package/build/main/tracking/eventTypes.js.map +1 -0
- package/build/main/tracking/types.d.ts +3 -17
- package/build/module/tracking/eventTypes.d.ts +16 -0
- package/build/module/tracking/eventTypes.js +2 -0
- package/build/module/tracking/eventTypes.js.map +1 -0
- package/build/module/tracking/types.d.ts +3 -17
- package/package.json +1 -1
- package/src/tracking/eventTypes.ts +97 -0
- package/src/tracking/types.ts +3 -100
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
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';
|
|
2
|
+
type TeamEvent = 'team_added' | 'team_info_updated' | 'team_deleted' | 'team_member_removed';
|
|
3
|
+
type ConnectionEvent = 'connection_created' | 'connection_reconnected' | 'connection_deleted' | 'connection_requested';
|
|
4
|
+
type OwnershipEvent = 'ownership_created' | 'ownership_updated' | 'ownership_deleted';
|
|
5
|
+
type OwnerEvent = 'owner_created' | 'owner_updated' | 'owner_deleted' | 'owner_tax_info_modal_opened' | 'owner_tax_info_modal_submitted';
|
|
6
|
+
type SetupEvent = 'setup_classes_set' | 'setup_accounting_version_completed' | 'setup_accounting_config_completed' | 'setup_owner_imported' | 'setup_listing_imported';
|
|
7
|
+
type AutomationEvent = 'automation_created' | 'automation_updated' | 'automation_deleted';
|
|
8
|
+
type TaxStatementEvent = 'tax_statement_preview_opened' | 'tax_statement_downloaded';
|
|
9
|
+
type GLOwnerStatementEvent = 'gl_owner_statement_preview_opened' | 'gl_owner_statement_downloaded';
|
|
10
|
+
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';
|
|
11
|
+
type ListingEvent = 'listing_activated' | 'listing_deactivated';
|
|
12
|
+
type ReportEvent = 'listings_reported';
|
|
13
|
+
type UserEvent = 'update_refresh_accepted' | 'owner_statement_opened';
|
|
14
|
+
type TestEvent = 'test_event' | 'test_error';
|
|
15
|
+
export type TrackingEvent = AuthEvent | TeamEvent | ConnectionEvent | OwnershipEvent | OwnerEvent | SetupEvent | AutomationEvent | TaxStatementEvent | GLOwnerStatementEvent | HyperlineEvent | UserEvent | ListingEvent | ReportEvent | TestEvent;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventTypes.js","sourceRoot":"src/","sources":["tracking/eventTypes.ts"],"names":[],"mappings":""}
|
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
import type { LogBindings } from '../log';
|
|
2
|
-
type
|
|
3
|
-
type TeamEvent = 'team_added' | 'team_info_updated' | 'team_deleted' | 'team_member_removed';
|
|
4
|
-
type ConnectionEvent = 'connection_created' | 'connection_reconnected' | 'connection_deleted' | 'connection_requested';
|
|
5
|
-
type OwnershipEvent = 'ownership_created' | 'ownership_updated' | 'ownership_deleted';
|
|
6
|
-
type OwnerEvent = 'owner_created' | 'owner_updated' | 'owner_deleted' | 'owner_tax_info_modal_opened' | 'owner_tax_info_modal_submitted';
|
|
7
|
-
type SetupEvent = 'setup_classes_set' | 'setup_accounting_version_completed' | 'setup_accounting_config_completed' | 'setup_owner_imported' | 'setup_listing_imported';
|
|
8
|
-
type AutomationEvent = 'automation_created' | 'automation_updated' | 'automation_deleted';
|
|
9
|
-
type TaxStatementEvent = 'tax_statement_preview_opened' | 'tax_statement_downloaded';
|
|
10
|
-
type GLOwnerStatementEvent = 'gl_owner_statement_preview_opened' | 'gl_owner_statement_downloaded';
|
|
11
|
-
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';
|
|
12
|
-
type ListingEvent = 'listing_activated' | 'listing_deactivated';
|
|
13
|
-
type ReportEvent = 'listings_reported';
|
|
14
|
-
type UserEvent = 'update_refresh_accepted' | 'owner_statement_opened';
|
|
15
|
-
type TestEvent = 'test_event' | 'test_error';
|
|
16
|
-
export type TrackingEvent = AuthEvent | TeamEvent | ConnectionEvent | OwnershipEvent | OwnerEvent | SetupEvent | AutomationEvent | TaxStatementEvent | GLOwnerStatementEvent | HyperlineEvent | UserEvent | ListingEvent | ReportEvent | TestEvent;
|
|
2
|
+
import type { TrackingEvent } from './eventTypes';
|
|
17
3
|
export type TrackingProps = {
|
|
18
4
|
name: string;
|
|
19
5
|
dataset: string;
|
|
@@ -53,8 +39,8 @@ export type IdentifyProps = {
|
|
|
53
39
|
};
|
|
54
40
|
export type GroupProps = OptionalUser<{
|
|
55
41
|
groupId: string;
|
|
56
|
-
traits
|
|
57
|
-
name
|
|
42
|
+
traits: {
|
|
43
|
+
name: string;
|
|
58
44
|
type?: TenantType;
|
|
59
45
|
avatar?: string;
|
|
60
46
|
createdAt?: string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
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';
|
|
2
|
+
type TeamEvent = 'team_added' | 'team_info_updated' | 'team_deleted' | 'team_member_removed';
|
|
3
|
+
type ConnectionEvent = 'connection_created' | 'connection_reconnected' | 'connection_deleted' | 'connection_requested';
|
|
4
|
+
type OwnershipEvent = 'ownership_created' | 'ownership_updated' | 'ownership_deleted';
|
|
5
|
+
type OwnerEvent = 'owner_created' | 'owner_updated' | 'owner_deleted' | 'owner_tax_info_modal_opened' | 'owner_tax_info_modal_submitted';
|
|
6
|
+
type SetupEvent = 'setup_classes_set' | 'setup_accounting_version_completed' | 'setup_accounting_config_completed' | 'setup_owner_imported' | 'setup_listing_imported';
|
|
7
|
+
type AutomationEvent = 'automation_created' | 'automation_updated' | 'automation_deleted';
|
|
8
|
+
type TaxStatementEvent = 'tax_statement_preview_opened' | 'tax_statement_downloaded';
|
|
9
|
+
type GLOwnerStatementEvent = 'gl_owner_statement_preview_opened' | 'gl_owner_statement_downloaded';
|
|
10
|
+
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';
|
|
11
|
+
type ListingEvent = 'listing_activated' | 'listing_deactivated';
|
|
12
|
+
type ReportEvent = 'listings_reported';
|
|
13
|
+
type UserEvent = 'update_refresh_accepted' | 'owner_statement_opened';
|
|
14
|
+
type TestEvent = 'test_event' | 'test_error';
|
|
15
|
+
export type TrackingEvent = AuthEvent | TeamEvent | ConnectionEvent | OwnershipEvent | OwnerEvent | SetupEvent | AutomationEvent | TaxStatementEvent | GLOwnerStatementEvent | HyperlineEvent | UserEvent | ListingEvent | ReportEvent | TestEvent;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventTypes.js","sourceRoot":"src/","sources":["tracking/eventTypes.ts"],"names":[],"mappings":""}
|
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
import type { LogBindings } from '../log';
|
|
2
|
-
type
|
|
3
|
-
type TeamEvent = 'team_added' | 'team_info_updated' | 'team_deleted' | 'team_member_removed';
|
|
4
|
-
type ConnectionEvent = 'connection_created' | 'connection_reconnected' | 'connection_deleted' | 'connection_requested';
|
|
5
|
-
type OwnershipEvent = 'ownership_created' | 'ownership_updated' | 'ownership_deleted';
|
|
6
|
-
type OwnerEvent = 'owner_created' | 'owner_updated' | 'owner_deleted' | 'owner_tax_info_modal_opened' | 'owner_tax_info_modal_submitted';
|
|
7
|
-
type SetupEvent = 'setup_classes_set' | 'setup_accounting_version_completed' | 'setup_accounting_config_completed' | 'setup_owner_imported' | 'setup_listing_imported';
|
|
8
|
-
type AutomationEvent = 'automation_created' | 'automation_updated' | 'automation_deleted';
|
|
9
|
-
type TaxStatementEvent = 'tax_statement_preview_opened' | 'tax_statement_downloaded';
|
|
10
|
-
type GLOwnerStatementEvent = 'gl_owner_statement_preview_opened' | 'gl_owner_statement_downloaded';
|
|
11
|
-
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';
|
|
12
|
-
type ListingEvent = 'listing_activated' | 'listing_deactivated';
|
|
13
|
-
type ReportEvent = 'listings_reported';
|
|
14
|
-
type UserEvent = 'update_refresh_accepted' | 'owner_statement_opened';
|
|
15
|
-
type TestEvent = 'test_event' | 'test_error';
|
|
16
|
-
export type TrackingEvent = AuthEvent | TeamEvent | ConnectionEvent | OwnershipEvent | OwnerEvent | SetupEvent | AutomationEvent | TaxStatementEvent | GLOwnerStatementEvent | HyperlineEvent | UserEvent | ListingEvent | ReportEvent | TestEvent;
|
|
2
|
+
import type { TrackingEvent } from './eventTypes';
|
|
17
3
|
export type TrackingProps = {
|
|
18
4
|
name: string;
|
|
19
5
|
dataset: string;
|
|
@@ -53,8 +39,8 @@ export type IdentifyProps = {
|
|
|
53
39
|
};
|
|
54
40
|
export type GroupProps = OptionalUser<{
|
|
55
41
|
groupId: string;
|
|
56
|
-
traits
|
|
57
|
-
name
|
|
42
|
+
traits: {
|
|
43
|
+
name: string;
|
|
58
44
|
type?: TenantType;
|
|
59
45
|
avatar?: string;
|
|
60
46
|
createdAt?: string;
|
package/package.json
CHANGED
|
@@ -0,0 +1,97 @@
|
|
|
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;
|
package/src/tracking/types.ts
CHANGED
|
@@ -1,102 +1,5 @@
|
|
|
1
1
|
import type { LogBindings } from '../log';
|
|
2
|
-
|
|
3
|
-
type AuthEvent =
|
|
4
|
-
| 'account_signin_completed'
|
|
5
|
-
| 'account_signup_code_requested'
|
|
6
|
-
| 'account_signup_code_completed'
|
|
7
|
-
| 'account_signup_code_failed'
|
|
8
|
-
| 'account_signup_completed'
|
|
9
|
-
| 'account_password_reset_requested'
|
|
10
|
-
| 'account_password_reset_failed'
|
|
11
|
-
| 'account_password_reset_completed'
|
|
12
|
-
| 'account_invitation_accepted'
|
|
13
|
-
| 'account_signed_out';
|
|
14
|
-
|
|
15
|
-
type TeamEvent =
|
|
16
|
-
| 'team_added'
|
|
17
|
-
| 'team_info_updated'
|
|
18
|
-
| 'team_deleted'
|
|
19
|
-
| 'team_member_removed';
|
|
20
|
-
|
|
21
|
-
type ConnectionEvent =
|
|
22
|
-
| 'connection_created'
|
|
23
|
-
| 'connection_reconnected'
|
|
24
|
-
| 'connection_deleted'
|
|
25
|
-
| 'connection_requested';
|
|
26
|
-
|
|
27
|
-
type OwnershipEvent =
|
|
28
|
-
| 'ownership_created'
|
|
29
|
-
| 'ownership_updated'
|
|
30
|
-
| 'ownership_deleted';
|
|
31
|
-
|
|
32
|
-
type OwnerEvent =
|
|
33
|
-
| 'owner_created'
|
|
34
|
-
| 'owner_updated'
|
|
35
|
-
| 'owner_deleted'
|
|
36
|
-
| 'owner_tax_info_modal_opened'
|
|
37
|
-
| 'owner_tax_info_modal_submitted';
|
|
38
|
-
|
|
39
|
-
type SetupEvent =
|
|
40
|
-
| 'setup_classes_set'
|
|
41
|
-
| 'setup_accounting_version_completed'
|
|
42
|
-
| 'setup_accounting_config_completed'
|
|
43
|
-
| 'setup_owner_imported'
|
|
44
|
-
| 'setup_listing_imported';
|
|
45
|
-
|
|
46
|
-
type AutomationEvent =
|
|
47
|
-
| 'automation_created'
|
|
48
|
-
| 'automation_updated'
|
|
49
|
-
| 'automation_deleted';
|
|
50
|
-
|
|
51
|
-
type TaxStatementEvent =
|
|
52
|
-
| 'tax_statement_preview_opened'
|
|
53
|
-
| 'tax_statement_downloaded';
|
|
54
|
-
|
|
55
|
-
type GLOwnerStatementEvent =
|
|
56
|
-
| 'gl_owner_statement_preview_opened'
|
|
57
|
-
| 'gl_owner_statement_downloaded';
|
|
58
|
-
|
|
59
|
-
type HyperlineEvent =
|
|
60
|
-
| 'hyperline_invoice_ready'
|
|
61
|
-
| 'hyperline_invoice_settled'
|
|
62
|
-
| 'hyperline_trial_started'
|
|
63
|
-
| 'hyperline_trial_ended'
|
|
64
|
-
| 'hyperline_subscription_activated'
|
|
65
|
-
| 'hyperline_subscription_cancelled'
|
|
66
|
-
| 'hyperline_subscription_created'
|
|
67
|
-
| 'hyperline_subscription_errored'
|
|
68
|
-
| 'hyperline_subscription_paused'
|
|
69
|
-
| 'hyperline_subscription_voided'
|
|
70
|
-
| 'hyperline_subscription_charged'
|
|
71
|
-
| 'hyperline_customer_created'
|
|
72
|
-
| 'hyperline_customer_updated'
|
|
73
|
-
| 'hyperline_payment_method_created'
|
|
74
|
-
| 'hyperline_payment_method_errored'
|
|
75
|
-
| 'hyperline_payment_method_deleted';
|
|
76
|
-
|
|
77
|
-
type ListingEvent = 'listing_activated' | 'listing_deactivated';
|
|
78
|
-
|
|
79
|
-
type ReportEvent = 'listings_reported';
|
|
80
|
-
|
|
81
|
-
type UserEvent = 'update_refresh_accepted' | 'owner_statement_opened';
|
|
82
|
-
|
|
83
|
-
type TestEvent = 'test_event' | 'test_error';
|
|
84
|
-
|
|
85
|
-
export type TrackingEvent =
|
|
86
|
-
| AuthEvent
|
|
87
|
-
| TeamEvent
|
|
88
|
-
| ConnectionEvent
|
|
89
|
-
| OwnershipEvent
|
|
90
|
-
| OwnerEvent
|
|
91
|
-
| SetupEvent
|
|
92
|
-
| AutomationEvent
|
|
93
|
-
| TaxStatementEvent
|
|
94
|
-
| GLOwnerStatementEvent
|
|
95
|
-
| HyperlineEvent
|
|
96
|
-
| UserEvent
|
|
97
|
-
| ListingEvent
|
|
98
|
-
| ReportEvent
|
|
99
|
-
| TestEvent;
|
|
2
|
+
import type { TrackingEvent } from './eventTypes';
|
|
100
3
|
|
|
101
4
|
export type TrackingProps = {
|
|
102
5
|
name: string;
|
|
@@ -138,8 +41,8 @@ export type IdentifyProps = {
|
|
|
138
41
|
};
|
|
139
42
|
export type GroupProps = OptionalUser<{
|
|
140
43
|
groupId: string;
|
|
141
|
-
traits
|
|
142
|
-
name
|
|
44
|
+
traits: {
|
|
45
|
+
name: string;
|
|
143
46
|
type?: TenantType;
|
|
144
47
|
avatar?: string;
|
|
145
48
|
createdAt?: string;
|