@vrplatform/log 2.0.22 → 2.0.24
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.
|
@@ -53,7 +53,7 @@ export type GroupProps = OptionalUser<{
|
|
|
53
53
|
};
|
|
54
54
|
timestamp?: Date;
|
|
55
55
|
}>;
|
|
56
|
-
type TrackingEventProps = {
|
|
56
|
+
export type TrackingEventProps = {
|
|
57
57
|
account_invitation_accepted: AccountInvitationAcceptedProps;
|
|
58
58
|
account_signed_out: AccountSignedOutProps;
|
|
59
59
|
account_signin_completed: AccountSigninCompletedProps;
|
|
@@ -265,8 +265,19 @@ type HyperlineCustomerCreatedProps = Partial<{
|
|
|
265
265
|
externalId: string;
|
|
266
266
|
name: string;
|
|
267
267
|
vatNumber: string;
|
|
268
|
+
webhookEventType: 'customer.created';
|
|
269
|
+
}>;
|
|
270
|
+
type HyperlineCustomerUpdatedProps = Partial<{
|
|
271
|
+
userId: string;
|
|
272
|
+
tenantId: string;
|
|
273
|
+
customerId: string;
|
|
274
|
+
billingEmail: string;
|
|
275
|
+
billingAddress: string;
|
|
276
|
+
externalId: string;
|
|
277
|
+
name: string;
|
|
278
|
+
vatNumber: string;
|
|
279
|
+
webhookEventType: 'customer.updated';
|
|
268
280
|
}>;
|
|
269
|
-
type HyperlineCustomerUpdatedProps = HyperlineCustomerCreatedProps;
|
|
270
281
|
type HyperlineInvoiceReadyProps = Partial<{
|
|
271
282
|
status: 'ready';
|
|
272
283
|
paymentMethodType: string;
|
|
@@ -322,7 +333,7 @@ type HyperlinePaymentMethodErroredProps = Partial<{
|
|
|
322
333
|
type HyperlineSubscriptionActivatedProps = Partial<{
|
|
323
334
|
userId: string;
|
|
324
335
|
tenantId: string;
|
|
325
|
-
|
|
336
|
+
subscriptionStatus: SubscriptionStatus;
|
|
326
337
|
webhookEventType: 'subscription.activated';
|
|
327
338
|
}>;
|
|
328
339
|
type HyperlineSubscriptionCancelledProps = Partial<{
|
|
@@ -336,7 +347,6 @@ type HyperlineSubscriptionCancelledProps = Partial<{
|
|
|
336
347
|
userId: string;
|
|
337
348
|
tenantId: string;
|
|
338
349
|
webhookEventType: 'subscription.cancelled';
|
|
339
|
-
tenantBillingStatus: 'pending' | 'active' | 'canceled';
|
|
340
350
|
}>;
|
|
341
351
|
type HyperlineSubscriptionChargedProps = Partial<{
|
|
342
352
|
plan: string;
|
|
@@ -358,19 +368,19 @@ type HyperlineSubscriptionCreatedProps = Partial<{
|
|
|
358
368
|
type HyperlineSubscriptionErroredProps = Partial<{
|
|
359
369
|
userId: string;
|
|
360
370
|
tenantId: string;
|
|
361
|
-
|
|
371
|
+
subscriptionStatus: SubscriptionStatus;
|
|
362
372
|
webhookEventType: 'subscription.errored';
|
|
363
373
|
}>;
|
|
364
374
|
type HyperlineSubscriptionPausedProps = Partial<{
|
|
365
375
|
userId: string;
|
|
366
376
|
tenantId: string;
|
|
367
|
-
|
|
377
|
+
subscriptionStatus: SubscriptionStatus;
|
|
368
378
|
webhookEventType: 'subscription.paused';
|
|
369
379
|
}>;
|
|
370
380
|
type HyperlineSubscriptionVoidedProps = Partial<{
|
|
371
381
|
userId: string;
|
|
372
382
|
tenantId: string;
|
|
373
|
-
|
|
383
|
+
subscriptionStatus: SubscriptionStatus;
|
|
374
384
|
webhookEventType: 'subscription.voided';
|
|
375
385
|
}>;
|
|
376
386
|
type HyperlineTrialEndedProps = Partial<{
|
|
@@ -385,7 +395,7 @@ type HyperlineTrialEndedProps = Partial<{
|
|
|
385
395
|
type HyperlineTrialStartedProps = Partial<{
|
|
386
396
|
tenantId: string;
|
|
387
397
|
userId: string;
|
|
388
|
-
|
|
398
|
+
subscriptionStatus: SubscriptionStatus;
|
|
389
399
|
trialUntil: string;
|
|
390
400
|
webhookEventType: 'payment_method.created';
|
|
391
401
|
}>;
|
|
@@ -53,7 +53,7 @@ export type GroupProps = OptionalUser<{
|
|
|
53
53
|
};
|
|
54
54
|
timestamp?: Date;
|
|
55
55
|
}>;
|
|
56
|
-
type TrackingEventProps = {
|
|
56
|
+
export type TrackingEventProps = {
|
|
57
57
|
account_invitation_accepted: AccountInvitationAcceptedProps;
|
|
58
58
|
account_signed_out: AccountSignedOutProps;
|
|
59
59
|
account_signin_completed: AccountSigninCompletedProps;
|
|
@@ -265,8 +265,19 @@ type HyperlineCustomerCreatedProps = Partial<{
|
|
|
265
265
|
externalId: string;
|
|
266
266
|
name: string;
|
|
267
267
|
vatNumber: string;
|
|
268
|
+
webhookEventType: 'customer.created';
|
|
269
|
+
}>;
|
|
270
|
+
type HyperlineCustomerUpdatedProps = Partial<{
|
|
271
|
+
userId: string;
|
|
272
|
+
tenantId: string;
|
|
273
|
+
customerId: string;
|
|
274
|
+
billingEmail: string;
|
|
275
|
+
billingAddress: string;
|
|
276
|
+
externalId: string;
|
|
277
|
+
name: string;
|
|
278
|
+
vatNumber: string;
|
|
279
|
+
webhookEventType: 'customer.updated';
|
|
268
280
|
}>;
|
|
269
|
-
type HyperlineCustomerUpdatedProps = HyperlineCustomerCreatedProps;
|
|
270
281
|
type HyperlineInvoiceReadyProps = Partial<{
|
|
271
282
|
status: 'ready';
|
|
272
283
|
paymentMethodType: string;
|
|
@@ -322,7 +333,7 @@ type HyperlinePaymentMethodErroredProps = Partial<{
|
|
|
322
333
|
type HyperlineSubscriptionActivatedProps = Partial<{
|
|
323
334
|
userId: string;
|
|
324
335
|
tenantId: string;
|
|
325
|
-
|
|
336
|
+
subscriptionStatus: SubscriptionStatus;
|
|
326
337
|
webhookEventType: 'subscription.activated';
|
|
327
338
|
}>;
|
|
328
339
|
type HyperlineSubscriptionCancelledProps = Partial<{
|
|
@@ -336,7 +347,6 @@ type HyperlineSubscriptionCancelledProps = Partial<{
|
|
|
336
347
|
userId: string;
|
|
337
348
|
tenantId: string;
|
|
338
349
|
webhookEventType: 'subscription.cancelled';
|
|
339
|
-
tenantBillingStatus: 'pending' | 'active' | 'canceled';
|
|
340
350
|
}>;
|
|
341
351
|
type HyperlineSubscriptionChargedProps = Partial<{
|
|
342
352
|
plan: string;
|
|
@@ -358,19 +368,19 @@ type HyperlineSubscriptionCreatedProps = Partial<{
|
|
|
358
368
|
type HyperlineSubscriptionErroredProps = Partial<{
|
|
359
369
|
userId: string;
|
|
360
370
|
tenantId: string;
|
|
361
|
-
|
|
371
|
+
subscriptionStatus: SubscriptionStatus;
|
|
362
372
|
webhookEventType: 'subscription.errored';
|
|
363
373
|
}>;
|
|
364
374
|
type HyperlineSubscriptionPausedProps = Partial<{
|
|
365
375
|
userId: string;
|
|
366
376
|
tenantId: string;
|
|
367
|
-
|
|
377
|
+
subscriptionStatus: SubscriptionStatus;
|
|
368
378
|
webhookEventType: 'subscription.paused';
|
|
369
379
|
}>;
|
|
370
380
|
type HyperlineSubscriptionVoidedProps = Partial<{
|
|
371
381
|
userId: string;
|
|
372
382
|
tenantId: string;
|
|
373
|
-
|
|
383
|
+
subscriptionStatus: SubscriptionStatus;
|
|
374
384
|
webhookEventType: 'subscription.voided';
|
|
375
385
|
}>;
|
|
376
386
|
type HyperlineTrialEndedProps = Partial<{
|
|
@@ -385,7 +395,7 @@ type HyperlineTrialEndedProps = Partial<{
|
|
|
385
395
|
type HyperlineTrialStartedProps = Partial<{
|
|
386
396
|
tenantId: string;
|
|
387
397
|
userId: string;
|
|
388
|
-
|
|
398
|
+
subscriptionStatus: SubscriptionStatus;
|
|
389
399
|
trialUntil: string;
|
|
390
400
|
webhookEventType: 'payment_method.created';
|
|
391
401
|
}>;
|
package/package.json
CHANGED
package/src/tracking/types.ts
CHANGED
|
@@ -56,7 +56,7 @@ export type GroupProps = OptionalUser<{
|
|
|
56
56
|
timestamp?: Date;
|
|
57
57
|
}>;
|
|
58
58
|
|
|
59
|
-
type TrackingEventProps = {
|
|
59
|
+
export type TrackingEventProps = {
|
|
60
60
|
account_invitation_accepted: AccountInvitationAcceptedProps;
|
|
61
61
|
account_signed_out: AccountSignedOutProps;
|
|
62
62
|
account_signin_completed: AccountSigninCompletedProps;
|
|
@@ -327,9 +327,20 @@ type HyperlineCustomerCreatedProps = Partial<{
|
|
|
327
327
|
externalId: string;
|
|
328
328
|
name: string;
|
|
329
329
|
vatNumber: string;
|
|
330
|
+
webhookEventType: 'customer.created';
|
|
330
331
|
}>;
|
|
331
332
|
|
|
332
|
-
type HyperlineCustomerUpdatedProps =
|
|
333
|
+
type HyperlineCustomerUpdatedProps = Partial<{
|
|
334
|
+
userId: string;
|
|
335
|
+
tenantId: string;
|
|
336
|
+
customerId: string;
|
|
337
|
+
billingEmail: string;
|
|
338
|
+
billingAddress: string;
|
|
339
|
+
externalId: string;
|
|
340
|
+
name: string;
|
|
341
|
+
vatNumber: string;
|
|
342
|
+
webhookEventType: 'customer.updated';
|
|
343
|
+
}>;
|
|
333
344
|
|
|
334
345
|
type HyperlineInvoiceReadyProps = Partial<{
|
|
335
346
|
status: 'ready';
|
|
@@ -391,7 +402,7 @@ type HyperlinePaymentMethodErroredProps = Partial<{
|
|
|
391
402
|
type HyperlineSubscriptionActivatedProps = Partial<{
|
|
392
403
|
userId: string;
|
|
393
404
|
tenantId: string;
|
|
394
|
-
|
|
405
|
+
subscriptionStatus: SubscriptionStatus;
|
|
395
406
|
webhookEventType: 'subscription.activated';
|
|
396
407
|
}>;
|
|
397
408
|
|
|
@@ -406,7 +417,6 @@ type HyperlineSubscriptionCancelledProps = Partial<{
|
|
|
406
417
|
userId: string;
|
|
407
418
|
tenantId: string;
|
|
408
419
|
webhookEventType: 'subscription.cancelled';
|
|
409
|
-
tenantBillingStatus: 'pending' | 'active' | 'canceled';
|
|
410
420
|
}>;
|
|
411
421
|
|
|
412
422
|
type HyperlineSubscriptionChargedProps = Partial<{
|
|
@@ -431,21 +441,21 @@ type HyperlineSubscriptionCreatedProps = Partial<{
|
|
|
431
441
|
type HyperlineSubscriptionErroredProps = Partial<{
|
|
432
442
|
userId: string;
|
|
433
443
|
tenantId: string;
|
|
434
|
-
|
|
444
|
+
subscriptionStatus: SubscriptionStatus;
|
|
435
445
|
webhookEventType: 'subscription.errored';
|
|
436
446
|
}>;
|
|
437
447
|
|
|
438
448
|
type HyperlineSubscriptionPausedProps = Partial<{
|
|
439
449
|
userId: string;
|
|
440
450
|
tenantId: string;
|
|
441
|
-
|
|
451
|
+
subscriptionStatus: SubscriptionStatus;
|
|
442
452
|
webhookEventType: 'subscription.paused';
|
|
443
453
|
}>;
|
|
444
454
|
|
|
445
455
|
type HyperlineSubscriptionVoidedProps = Partial<{
|
|
446
456
|
userId: string;
|
|
447
457
|
tenantId: string;
|
|
448
|
-
|
|
458
|
+
subscriptionStatus: SubscriptionStatus;
|
|
449
459
|
webhookEventType: 'subscription.voided';
|
|
450
460
|
}>;
|
|
451
461
|
|
|
@@ -462,7 +472,7 @@ type HyperlineTrialEndedProps = Partial<{
|
|
|
462
472
|
type HyperlineTrialStartedProps = Partial<{
|
|
463
473
|
tenantId: string;
|
|
464
474
|
userId: string;
|
|
465
|
-
|
|
475
|
+
subscriptionStatus: SubscriptionStatus;
|
|
466
476
|
trialUntil: string;
|
|
467
477
|
webhookEventType: 'payment_method.created';
|
|
468
478
|
}>;
|