@vrplatform/log 2.0.26 → 2.0.28
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.
|
@@ -102,6 +102,7 @@ export type TrackingEventProps = {
|
|
|
102
102
|
hyperline_trial_ended: HyperlineTrialEndedProps;
|
|
103
103
|
hyperline_subscription_activated: HyperlineSubscriptionActivatedProps;
|
|
104
104
|
hyperline_subscription_cancelled: HyperlineSubscriptionCancelledProps;
|
|
105
|
+
hyperline_subscription_cancellation_scheduled: HyperlineSubscriptionCancellationScheduledProps;
|
|
105
106
|
hyperline_subscription_created: HyperlineSubscriptionCreatedProps;
|
|
106
107
|
hyperline_subscription_errored: HyperlineSubscriptionErroredProps;
|
|
107
108
|
hyperline_subscription_paused: HyperlineSubscriptionPausedProps;
|
|
@@ -137,7 +138,7 @@ export type UserRole = 'super-admin' | 'vrp-admin' | 'partner-admin' | 'team-adm
|
|
|
137
138
|
export type TenantType = 'admin' | 'partner' | 'propertyManager';
|
|
138
139
|
export type TenantStatus = 'active' | 'inactive';
|
|
139
140
|
export type SubscriptionStatus = 'active' | 'cancelled' | 'draft' | 'errored' | 'paused' | 'pending' | 'voided';
|
|
140
|
-
export type PaymentMethodType = 'card' | '
|
|
141
|
+
export type PaymentMethodType = 'card' | 'direct_debit' | 'direct_debit_ach' | 'direct_debit_bacs' | 'transfer' | 'transfer_automated' | 'external';
|
|
141
142
|
type AccountInvitationAcceptedProps = Partial<{
|
|
142
143
|
userId: string;
|
|
143
144
|
userEmail: string;
|
|
@@ -343,6 +344,14 @@ type HyperlineSubscriptionCancelledProps = Partial<{
|
|
|
343
344
|
tenantId: string;
|
|
344
345
|
webhookEventType: 'subscription.cancelled';
|
|
345
346
|
}>;
|
|
347
|
+
type HyperlineSubscriptionCancellationScheduledProps = Partial<{
|
|
348
|
+
subscriptionId: string;
|
|
349
|
+
cancellationStrategy: 'charge_prorata' | 'charge_custom' | 'refund_prorata' | 'refund_custom' | 'end_of_period' | 'do_nothing';
|
|
350
|
+
cancelledAt: string;
|
|
351
|
+
customerId: string;
|
|
352
|
+
tenantId: string;
|
|
353
|
+
webhookEventType: 'subscription.cancellation_scheduled';
|
|
354
|
+
}>;
|
|
346
355
|
type HyperlineSubscriptionChargedProps = Partial<{
|
|
347
356
|
plan: string;
|
|
348
357
|
subscriptionId: string;
|
|
@@ -102,6 +102,7 @@ export type TrackingEventProps = {
|
|
|
102
102
|
hyperline_trial_ended: HyperlineTrialEndedProps;
|
|
103
103
|
hyperline_subscription_activated: HyperlineSubscriptionActivatedProps;
|
|
104
104
|
hyperline_subscription_cancelled: HyperlineSubscriptionCancelledProps;
|
|
105
|
+
hyperline_subscription_cancellation_scheduled: HyperlineSubscriptionCancellationScheduledProps;
|
|
105
106
|
hyperline_subscription_created: HyperlineSubscriptionCreatedProps;
|
|
106
107
|
hyperline_subscription_errored: HyperlineSubscriptionErroredProps;
|
|
107
108
|
hyperline_subscription_paused: HyperlineSubscriptionPausedProps;
|
|
@@ -137,7 +138,7 @@ export type UserRole = 'super-admin' | 'vrp-admin' | 'partner-admin' | 'team-adm
|
|
|
137
138
|
export type TenantType = 'admin' | 'partner' | 'propertyManager';
|
|
138
139
|
export type TenantStatus = 'active' | 'inactive';
|
|
139
140
|
export type SubscriptionStatus = 'active' | 'cancelled' | 'draft' | 'errored' | 'paused' | 'pending' | 'voided';
|
|
140
|
-
export type PaymentMethodType = 'card' | '
|
|
141
|
+
export type PaymentMethodType = 'card' | 'direct_debit' | 'direct_debit_ach' | 'direct_debit_bacs' | 'transfer' | 'transfer_automated' | 'external';
|
|
141
142
|
type AccountInvitationAcceptedProps = Partial<{
|
|
142
143
|
userId: string;
|
|
143
144
|
userEmail: string;
|
|
@@ -343,6 +344,14 @@ type HyperlineSubscriptionCancelledProps = Partial<{
|
|
|
343
344
|
tenantId: string;
|
|
344
345
|
webhookEventType: 'subscription.cancelled';
|
|
345
346
|
}>;
|
|
347
|
+
type HyperlineSubscriptionCancellationScheduledProps = Partial<{
|
|
348
|
+
subscriptionId: string;
|
|
349
|
+
cancellationStrategy: 'charge_prorata' | 'charge_custom' | 'refund_prorata' | 'refund_custom' | 'end_of_period' | 'do_nothing';
|
|
350
|
+
cancelledAt: string;
|
|
351
|
+
customerId: string;
|
|
352
|
+
tenantId: string;
|
|
353
|
+
webhookEventType: 'subscription.cancellation_scheduled';
|
|
354
|
+
}>;
|
|
346
355
|
type HyperlineSubscriptionChargedProps = Partial<{
|
|
347
356
|
plan: string;
|
|
348
357
|
subscriptionId: string;
|
package/package.json
CHANGED
package/src/tracking/types.ts
CHANGED
|
@@ -116,6 +116,7 @@ export type TrackingEventProps = {
|
|
|
116
116
|
hyperline_trial_ended: HyperlineTrialEndedProps;
|
|
117
117
|
hyperline_subscription_activated: HyperlineSubscriptionActivatedProps;
|
|
118
118
|
hyperline_subscription_cancelled: HyperlineSubscriptionCancelledProps;
|
|
119
|
+
hyperline_subscription_cancellation_scheduled: HyperlineSubscriptionCancellationScheduledProps;
|
|
119
120
|
hyperline_subscription_created: HyperlineSubscriptionCreatedProps;
|
|
120
121
|
hyperline_subscription_errored: HyperlineSubscriptionErroredProps;
|
|
121
122
|
hyperline_subscription_paused: HyperlineSubscriptionPausedProps;
|
|
@@ -170,9 +171,12 @@ export type SubscriptionStatus =
|
|
|
170
171
|
| 'voided';
|
|
171
172
|
export type PaymentMethodType =
|
|
172
173
|
| 'card'
|
|
173
|
-
| '
|
|
174
|
+
| 'direct_debit'
|
|
174
175
|
| 'direct_debit_ach'
|
|
175
|
-
| 'direct_debit_bacs'
|
|
176
|
+
| 'direct_debit_bacs'
|
|
177
|
+
| 'transfer'
|
|
178
|
+
| 'transfer_automated'
|
|
179
|
+
| 'external';
|
|
176
180
|
|
|
177
181
|
type AccountInvitationAcceptedProps = Partial<{
|
|
178
182
|
userId: string;
|
|
@@ -413,6 +417,21 @@ type HyperlineSubscriptionCancelledProps = Partial<{
|
|
|
413
417
|
webhookEventType: 'subscription.cancelled';
|
|
414
418
|
}>;
|
|
415
419
|
|
|
420
|
+
type HyperlineSubscriptionCancellationScheduledProps = Partial<{
|
|
421
|
+
subscriptionId: string;
|
|
422
|
+
cancellationStrategy:
|
|
423
|
+
| 'charge_prorata'
|
|
424
|
+
| 'charge_custom'
|
|
425
|
+
| 'refund_prorata'
|
|
426
|
+
| 'refund_custom'
|
|
427
|
+
| 'end_of_period'
|
|
428
|
+
| 'do_nothing';
|
|
429
|
+
cancelledAt: string;
|
|
430
|
+
customerId: string;
|
|
431
|
+
tenantId: string;
|
|
432
|
+
webhookEventType: 'subscription.cancellation_scheduled';
|
|
433
|
+
}>;
|
|
434
|
+
|
|
416
435
|
type HyperlineSubscriptionChargedProps = Partial<{
|
|
417
436
|
plan: string;
|
|
418
437
|
subscriptionId: string;
|