@vrplatform/log 2.0.0-alpha.44 → 2.0.0-alpha.47

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.
File without changes
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=index.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.spec.js","sourceRoot":"src/","sources":["log/index.spec.ts"],"names":[],"mappings":""}
@@ -88,14 +88,23 @@ declare module 'intercom-client' {
88
88
  import { Analytics } from '@june-so/analytics-node';
89
89
  import { IntercomClient } from 'intercom-client';
90
90
  import { PostHog } from 'posthog-node';
91
- import { type WorkerLog } from '../log';
92
- import type { GroupProps, IdentifyProps, TrackProps, TrackingProps } from './types';
91
+ import { type LogBindings, type WorkerLog } from '../log';
92
+ import type { GroupProps, IdentifyProps, TrackProps } from './types';
93
93
  export * from './types';
94
- export * from './eventTypes';
95
94
  export * from 'intercom-client';
96
95
  export * from '../utils';
97
96
  export type Tracking = ReturnType<typeof useTracking>;
98
- export declare const useTracking: ({ dataset, env, name }: TrackingProps, isDev?: boolean) => {
97
+ export type UseTracking = {
98
+ name: string;
99
+ dataset: string;
100
+ env: {
101
+ INTERCOM_TOKEN?: string;
102
+ JUNESO_TOKEN?: string;
103
+ POSTHOG_TOKEN?: string;
104
+ } & LogBindings;
105
+ debugging?: boolean;
106
+ };
107
+ export declare const useTracking: ({ dataset, env, name }: UseTracking, isDev?: boolean) => {
99
108
  track: (props: TrackProps) => Promise<void>;
100
109
  identify: (props: IdentifyProps) => Promise<void>;
101
110
  group: (props: GroupProps) => Promise<void>;
@@ -23,7 +23,6 @@ const log_1 = require("../log");
23
23
  const utils_1 = require("../utils");
24
24
  const convertValuesToString_1 = require("../utils/convertValuesToString");
25
25
  __exportStar(require("./types"), exports);
26
- __exportStar(require("./eventTypes"), exports);
27
26
  __exportStar(require("intercom-client"), exports);
28
27
  __exportStar(require("../utils"), exports);
29
28
  const useTracking = ({ dataset, env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,EAAE,KAAK,EAAE,CAAC,CAAC;QACzE,sBAAsB;QACtB,QAAQ;QACR,OAAO;QACP,IAAI;QACJ,GAAG;KACJ,CAAC;AACJ,CAAC,CAAC;AA5PW,QAAA,WAAW,eA4PtB"}
@@ -1,21 +1,199 @@
1
- import type { LogBindings } from '../log';
2
- import type { TrackingEvent } from './eventTypes';
3
- export type TrackingProps = {
4
- name: string;
5
- dataset: string;
6
- env: {
7
- INTERCOM_TOKEN?: string;
8
- JUNESO_TOKEN?: string;
9
- POSTHOG_TOKEN?: string;
10
- } & LogBindings;
11
- debugging?: boolean;
12
- };
13
1
  export type TrackProps = OptionalUser<{
14
2
  groupId: string;
15
- event: TrackingEvent;
16
- properties: Record<string, string | number | boolean | null | undefined>;
17
3
  timestamp?: Date;
18
- }>;
4
+ } & ({
5
+ event: 'account_invitation_accepted';
6
+ properties: AccountInvitationAcceptedProps;
7
+ } | {
8
+ event: 'account_password_reset_completed';
9
+ properties: AccountPasswordResetCompletedProps;
10
+ } | {
11
+ event: 'account_password_reset_failed';
12
+ properties: AccountPasswordResetFailedProps;
13
+ } | {
14
+ event: 'account_password_reset_requested';
15
+ properties: AccountPasswordResetRequestedProps;
16
+ } | {
17
+ event: 'account_signed_out';
18
+ properties: AccountSignedOutProps;
19
+ } | {
20
+ event: 'account_signin_completed';
21
+ properties: AccountSigninCompletedProps;
22
+ } | {
23
+ event: 'account_signup_code_completed';
24
+ properties: AccountSignupCodeCompletedProps;
25
+ } | {
26
+ event: 'account_signup_code_failed';
27
+ properties: AccountSignupCodeFailedProps;
28
+ } | {
29
+ event: 'account_signup_code_requested';
30
+ properties: AccountSignupCodeRequestedProps;
31
+ } | {
32
+ event: 'account_signup_completed';
33
+ properties: AccountSignupCompletedProps;
34
+ } | {
35
+ event: 'automation_created';
36
+ properties: AutomationCreatedProps;
37
+ } | {
38
+ event: 'automation_deleted';
39
+ properties: AutomationDeletedProps;
40
+ } | {
41
+ event: 'automation_updated';
42
+ properties: AutomationUpdated;
43
+ } | {
44
+ event: 'connection_created';
45
+ properties: ConnectionCreatedProps;
46
+ } | {
47
+ event: 'connection_deleted';
48
+ properties: ConnectionDeletedProps;
49
+ } | {
50
+ event: 'connection_reconnected';
51
+ properties: ConnectionReconnectedProps;
52
+ } | {
53
+ event: 'connection_requested';
54
+ properties: ConnectionRequestedProps;
55
+ } | {
56
+ event: 'gl_owner_statement_downloaded';
57
+ properties: GlOwnerStatementDownloadedProps;
58
+ } | {
59
+ event: 'gl_owner_statement_preview_opened';
60
+ properties: GlOwnerStatementPreviewOpenedProps;
61
+ } | {
62
+ event: 'hyperline_customer_created';
63
+ properties: HyperlineCustomerCreatedProps;
64
+ } | {
65
+ event: 'hyperline_customer_updated';
66
+ properties: HyperlineCustomerUpdatedProps;
67
+ } | {
68
+ event: 'hyperline_invoice_ready';
69
+ properties: HyperlineInvoiceReadyProps;
70
+ } | {
71
+ event: 'hyperline_invoice_settled';
72
+ properties: HyperlineInvoiceSettledProps;
73
+ } | {
74
+ event: 'hyperline_payment_method_created';
75
+ properties: HyperlinePaymentMethodCreatedProps;
76
+ } | {
77
+ event: 'hyperline_payment_method_deleted';
78
+ properties: HyperlinePaymentMethodDeletedProps;
79
+ } | {
80
+ event: 'hyperline_payment_method_errored';
81
+ properties: HyperlinePaymentMethodErroredProps;
82
+ } | {
83
+ event: 'hyperline_subscription_activated';
84
+ properties: HyperlineSubscriptionActivatedProps;
85
+ } | {
86
+ event: 'hyperline_subscription_cancelled';
87
+ properties: HyperlineSubscriptionCancelledProps;
88
+ } | {
89
+ event: 'hyperline_subscription_charged';
90
+ properties: HyperlineSubscriptionChargedProps;
91
+ } | {
92
+ event: 'hyperline_subscription_created';
93
+ properties: HyperlineSubscriptionCreatedProps;
94
+ } | {
95
+ event: 'hyperline_subscription_errored';
96
+ properties: HyperlineSubscriptionErroredProps;
97
+ } | {
98
+ event: 'hyperline_subscription_paused';
99
+ properties: HyperlineSubscriptionPausedProps;
100
+ } | {
101
+ event: 'hyperline_subscription_voided';
102
+ properties: HyperlineSubscriptionVoidedProps;
103
+ } | {
104
+ event: 'hyperline_trial_ended';
105
+ properties: HyperlineTrialEndedProps;
106
+ } | {
107
+ event: 'hyperline_trial_started';
108
+ properties: HyperlineTrialStartedProps;
109
+ } | {
110
+ event: 'owner_created';
111
+ properties: OwnerCreatedProps;
112
+ } | {
113
+ event: 'owner_deleted';
114
+ properties: OwnerDeletedProps;
115
+ } | {
116
+ event: 'owner_tax_info_modal_opened';
117
+ properties: OwnerTaxInfoModalOpenedProps;
118
+ } | {
119
+ event: 'owner_tax_info_modal_submitted';
120
+ properties: OwnerTaxInfoModalSubmittedProps;
121
+ } | {
122
+ event: 'owner_updated';
123
+ properties: OwnerUpdatedProps;
124
+ } | {
125
+ event: 'ownership_created';
126
+ properties: OwnershipCreatedProps;
127
+ } | {
128
+ event: 'ownership_deleted';
129
+ properties: OwnershipDeletedProps;
130
+ } | {
131
+ event: 'ownership_updated';
132
+ properties: OwnershipUpdatedProps;
133
+ } | {
134
+ event: 'setup_accounting_config_completed';
135
+ properties: SetupAccountingConfigCompleted;
136
+ } | {
137
+ event: 'setup_accounting_version_completed';
138
+ properties: SetupAccountingVersionCompleted;
139
+ } | {
140
+ event: 'setup_classes_set';
141
+ properties: SetupClassesSet;
142
+ } | {
143
+ event: 'setup_entities_set';
144
+ properties: SetupEntitiesSet;
145
+ } | {
146
+ event: 'setup_listing_imported';
147
+ properties: SetupListingImportedProps;
148
+ } | {
149
+ event: 'setup_owner_imported';
150
+ properties: SetupOwnerImportedProps;
151
+ } | {
152
+ event: 'setup_reservation_imported';
153
+ properties: SetupReservationImportedProps;
154
+ } | {
155
+ event: 'setup_vendors_set';
156
+ properties: SetupVendorsSet;
157
+ } | {
158
+ event: 'tax_statement_downloaded';
159
+ properties: TaxStatementDownloadedProps;
160
+ } | {
161
+ event: 'tax_statement_preview_opened';
162
+ properties: TaxStatementPreviewOpenedProps;
163
+ } | {
164
+ event: 'team_added';
165
+ properties: TeamAddedProps;
166
+ } | {
167
+ event: 'team_deleted';
168
+ properties: TeamDeletedProps;
169
+ } | {
170
+ event: 'team_info_updated';
171
+ properties: TeamInfoUpdatedProps;
172
+ } | {
173
+ event: 'team_member_removed';
174
+ properties: TeamMemberRemovedProps;
175
+ } | {
176
+ event: 'test_error';
177
+ properties: TestErrorProps;
178
+ } | {
179
+ event: 'test_event';
180
+ properties: TestEventProps;
181
+ } | {
182
+ event: 'user_forced_reloaded';
183
+ properties: UserForcedReloadedProps;
184
+ } | {
185
+ event: 'owner_statement_opened';
186
+ properties: OwnerStatementOpenedProps;
187
+ } | {
188
+ event: 'listing_activated';
189
+ properties: ListingActivated;
190
+ } | {
191
+ event: 'listing_deactivated';
192
+ properties: ListingDeactivated;
193
+ } | {
194
+ event: 'listings_reported';
195
+ properties: ListingsReported;
196
+ })>;
19
197
  export type IdentifyProps = {
20
198
  userId: string;
21
199
  traits?: {
@@ -39,8 +217,8 @@ export type IdentifyProps = {
39
217
  };
40
218
  export type GroupProps = OptionalUser<{
41
219
  groupId: string;
42
- traits: {
43
- name: string;
220
+ traits?: {
221
+ name?: string;
44
222
  type?: TenantType;
45
223
  avatar?: string;
46
224
  createdAt?: string;
@@ -73,4 +251,396 @@ type OptionalUser<T> = T & ({
73
251
  userId?: string;
74
252
  anonymousId: string;
75
253
  });
254
+ 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';
255
+ type TeamEvent = 'team_added' | 'team_info_updated' | 'team_deleted' | 'team_member_removed';
256
+ type ConnectionEvent = 'connection_created' | 'connection_reconnected' | 'connection_deleted' | 'connection_requested';
257
+ type OwnershipEvent = 'ownership_created' | 'ownership_updated' | 'ownership_deleted';
258
+ type OwnerEvent = 'owner_created' | 'owner_updated' | 'owner_deleted' | 'owner_tax_info_modal_opened' | 'owner_tax_info_modal_submitted';
259
+ type SetupEvent = 'setup_classes_set' | 'setup_accounting_version_completed' | 'setup_accounting_config_completed' | 'setup_owner_imported' | 'setup_listing_imported';
260
+ type AutomationEvent = 'automation_created' | 'automation_updated' | 'automation_deleted';
261
+ type TaxStatementEvent = 'tax_statement_preview_opened' | 'tax_statement_downloaded';
262
+ type GLOwnerStatementEvent = 'gl_owner_statement_preview_opened' | 'gl_owner_statement_downloaded';
263
+ 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';
264
+ type ListingEvent = 'listing_activated' | 'listing_deactivated';
265
+ type ReportEvent = 'listings_reported';
266
+ type UserEvent = 'update_refresh_accepted' | 'owner_statement_opened';
267
+ type TestEvent = 'test_event' | 'test_error';
268
+ export type TrackingEvent = AuthEvent | TeamEvent | ConnectionEvent | OwnershipEvent | OwnerEvent | SetupEvent | AutomationEvent | TaxStatementEvent | GLOwnerStatementEvent | HyperlineEvent | UserEvent | ListingEvent | ReportEvent | TestEvent;
269
+ type AccountInvitationAcceptedProps = {
270
+ userId: string;
271
+ userEmail: string;
272
+ userRole: 'owner' | 'user' | 'admin';
273
+ tenantId: string;
274
+ isNewUser: boolean;
275
+ };
276
+ type AccountPasswordResetCompletedProps = {
277
+ userEmail: string;
278
+ };
279
+ type AccountPasswordResetFailedProps = {
280
+ userEmail: string;
281
+ status: string;
282
+ };
283
+ type AccountPasswordResetRequestedProps = {
284
+ userEmail: string;
285
+ };
286
+ type AccountSignedOutProps = {
287
+ userId: string;
288
+ userEmail: string;
289
+ tenantId: string;
290
+ firstName: string;
291
+ lastName: string;
292
+ };
293
+ type AccountSigninCompletedProps = {
294
+ firstName: string;
295
+ lastName: string;
296
+ userEmail: string;
297
+ };
298
+ type AccountSignupCodeCompletedProps = {
299
+ firstName: string;
300
+ lastName: string;
301
+ userEmail: string;
302
+ companyName: string;
303
+ type: string;
304
+ };
305
+ type AccountSignupCodeFailedProps = {
306
+ firstName: string;
307
+ lastName: string;
308
+ userEmail: string;
309
+ companyName: string;
310
+ type: string;
311
+ status: string;
312
+ };
313
+ type AccountSignupCodeRequestedProps = {
314
+ firstName: string;
315
+ lastName: string;
316
+ userEmail: string;
317
+ companyName: string;
318
+ type: string;
319
+ };
320
+ type AccountSignupCompletedProps = {
321
+ tenantId: string;
322
+ userEmail: string;
323
+ firstName: string;
324
+ lastName: string;
325
+ userId: string;
326
+ };
327
+ type AutomationCreatedProps = {
328
+ automationId: string;
329
+ templateId: string;
330
+ type: string;
331
+ uniqueRef: string;
332
+ userId: string;
333
+ userEmail: string;
334
+ tenantId: string;
335
+ };
336
+ type AutomationDeletedProps = {
337
+ automationId: string;
338
+ templateId: string;
339
+ type: string;
340
+ uniqueRef: string;
341
+ userId: string;
342
+ userEmail: string;
343
+ tenantId: string;
344
+ };
345
+ type AutomationUpdated = any;
346
+ type ConnectionCreatedProps = {
347
+ connectionId: string;
348
+ tenantId: string;
349
+ userId: string;
350
+ userEmail: string;
351
+ appId: string;
352
+ type: string;
353
+ };
354
+ type ConnectionDeletedProps = {
355
+ connectionId: string;
356
+ tenantId: string;
357
+ type: string;
358
+ userId: string;
359
+ appId: string;
360
+ userEmail: string;
361
+ };
362
+ type ConnectionReconnectedProps = {
363
+ connectionId: string;
364
+ tenantId: string;
365
+ userId: string;
366
+ userEmail: string;
367
+ appId: string;
368
+ };
369
+ type ConnectionRequestedProps = {
370
+ type: string;
371
+ website: string;
372
+ userId: string;
373
+ userEmail: string;
374
+ tenantId: string;
375
+ };
376
+ type GlOwnerStatementDownloadedProps = {
377
+ ownerStatementId: string;
378
+ ownerStatementUrls: string[];
379
+ userType: string;
380
+ };
381
+ type GlOwnerStatementPreviewOpenedProps = {
382
+ ownerStatementStatus: string;
383
+ ownerStatementId: string;
384
+ ownerStatementUrls: string[];
385
+ userType: string;
386
+ };
387
+ type HyperlineCustomerCreatedProps = {
388
+ userId: string;
389
+ tenantId: string;
390
+ customerId: string;
391
+ };
392
+ type HyperlineCustomerUpdatedProps = {
393
+ userId: string;
394
+ tenantId: string;
395
+ customerId: string;
396
+ };
397
+ type HyperlineInvoiceReadyProps = {
398
+ status: string;
399
+ paymentMethodType: string;
400
+ invoiceId: string;
401
+ amount: number;
402
+ amountOrigin: number;
403
+ currency: string;
404
+ customerId: string;
405
+ taxAmount: string;
406
+ readyAt: string;
407
+ };
408
+ type HyperlineInvoiceSettledProps = {
409
+ status: string;
410
+ paymentMethodType: string;
411
+ invoiceId: string;
412
+ amount: number;
413
+ amountOrigin: number;
414
+ currency: string;
415
+ customerId: string;
416
+ taxAmount: string;
417
+ settledAt: string;
418
+ };
419
+ type HyperlinePaymentMethodCreatedProps = {
420
+ userId: string;
421
+ tenantId: string;
422
+ payloadCreatedAt: string;
423
+ payloadType: string;
424
+ payloadState: string;
425
+ payloadId: string;
426
+ payloadCustomerId: string;
427
+ webhookEventType: string;
428
+ };
429
+ type HyperlinePaymentMethodDeletedProps = {
430
+ userId: string;
431
+ tenantId: string;
432
+ payloadCreatedAt: string;
433
+ payloadType: string;
434
+ payloadState: string;
435
+ payloadId: string;
436
+ payloadCustomerId: string;
437
+ webhookEventType: string;
438
+ };
439
+ type HyperlinePaymentMethodErroredProps = {
440
+ userId: string;
441
+ tenantId: string;
442
+ payloadCreatedAt: string;
443
+ payloadType: string;
444
+ payloadState: string;
445
+ payloadId: string;
446
+ payloadCustomerId: string;
447
+ webhookEventType: string;
448
+ };
449
+ type HyperlineSubscriptionActivatedProps = {
450
+ userId: string;
451
+ tenantId: string;
452
+ tenantBillingStatus: string;
453
+ webhookEventType: string;
454
+ };
455
+ type HyperlineSubscriptionCancelledProps = {
456
+ trialEndAt: string;
457
+ plan: string;
458
+ subscriptionId: string;
459
+ subscriptionStartDate: string;
460
+ subscriptionStatus: string;
461
+ paymentMethodType: string;
462
+ customerId: string;
463
+ userId: string;
464
+ tenantId: string;
465
+ webhookEventType: string;
466
+ tenantBillingStatus: string;
467
+ };
468
+ type HyperlineSubscriptionChargedProps = {
469
+ plan: string;
470
+ subscriptionId: string;
471
+ subscriptionStartDate: string;
472
+ subscriptionStatus: string;
473
+ paymentMethodType: string;
474
+ customerId: string;
475
+ };
476
+ type HyperlineSubscriptionCreatedProps = {
477
+ trialStartDate: string;
478
+ plan: string;
479
+ subscriptionId: string;
480
+ subscriptionStartDate: string;
481
+ subscriptionStatus: string;
482
+ paymentMethodType: string;
483
+ customerId: string;
484
+ };
485
+ type HyperlineSubscriptionErroredProps = {
486
+ userId: string;
487
+ tenantId: string;
488
+ tenantBillingStatus: string;
489
+ webhookEventType: string;
490
+ };
491
+ type HyperlineSubscriptionPausedProps = {
492
+ userId: string;
493
+ tenantId: string;
494
+ tenantBillingStatus: string;
495
+ webhookEventType: string;
496
+ };
497
+ type HyperlineSubscriptionVoidedProps = {
498
+ userId: string;
499
+ tenantId: string;
500
+ tenantBillingStatus: string;
501
+ webhookEventType: string;
502
+ };
503
+ type HyperlineTrialEndedProps = {
504
+ trialStartDate: string;
505
+ trialEndDate: string;
506
+ plan: string;
507
+ subscriptionId: string;
508
+ subscriptionStartDate: string;
509
+ subscriptionStatus: string;
510
+ paymentMethodType: string;
511
+ };
512
+ type HyperlineTrialStartedProps = {
513
+ tenantId: string;
514
+ userId: string;
515
+ tenantBillingStatus: string;
516
+ webhookEventType: string;
517
+ };
518
+ type OwnerCreatedProps = {
519
+ userId: string;
520
+ tenantId: string;
521
+ ownerId: string;
522
+ };
523
+ type OwnerDeletedProps = {
524
+ userId: string;
525
+ tenantId: string;
526
+ ownerId: string;
527
+ };
528
+ type OwnerTaxInfoModalOpenedProps = {
529
+ userId: string;
530
+ tenantId: string;
531
+ ownerId: string;
532
+ taxId: string;
533
+ };
534
+ type OwnerTaxInfoModalSubmittedProps = {
535
+ userId: string;
536
+ tenantId: string;
537
+ ownerId: string;
538
+ taxId: string;
539
+ status: string;
540
+ };
541
+ type OwnerUpdatedProps = {
542
+ userId: string;
543
+ tenantId: string;
544
+ ownerId: string;
545
+ };
546
+ type OwnershipCreatedProps = {
547
+ ownershipId: string;
548
+ ownerId: string;
549
+ listingId: string;
550
+ userId: string;
551
+ userEmail: string;
552
+ tenantId: string;
553
+ };
554
+ type OwnershipDeletedProps = {
555
+ ownershipId: string;
556
+ ownerId: string;
557
+ listingId: string;
558
+ userId: string;
559
+ userEmail: string;
560
+ tenantId: string;
561
+ };
562
+ type OwnershipUpdatedProps = {
563
+ ownershipId: string;
564
+ ownerId: string;
565
+ listingId: string;
566
+ userId: string;
567
+ userEmail: string;
568
+ tenantId: string;
569
+ };
570
+ type SetupAccountingConfigCompleted = any;
571
+ type SetupAccountingVersionCompleted = any;
572
+ type SetupClassesSet = any;
573
+ type SetupEntitiesSet = any;
574
+ type SetupListingImportedProps = {
575
+ appId: string;
576
+ };
577
+ type SetupOwnerImportedProps = {
578
+ appId: string;
579
+ };
580
+ type SetupReservationImportedProps = {
581
+ appId: string;
582
+ };
583
+ type SetupVendorsSet = any;
584
+ type TaxStatementDownloadedProps = {
585
+ taxStatementStatus: string;
586
+ taxStatementId: string;
587
+ taxStatementUrl: string;
588
+ userType: string;
589
+ userId: string;
590
+ userEmail: string;
591
+ tenantId: string;
592
+ };
593
+ type TaxStatementPreviewOpenedProps = {
594
+ taxStatementStatus: string;
595
+ taxStatementId: string;
596
+ taxStatementUrl: string;
597
+ userType: string;
598
+ userId: string;
599
+ userEmail: string;
600
+ tenantId: string;
601
+ };
602
+ type TeamAddedProps = {
603
+ tenantId: string;
604
+ tenantName: string;
605
+ partnerId: string;
606
+ userType: string;
607
+ userId: string;
608
+ userEmail: string;
609
+ };
610
+ type TeamDeletedProps = {
611
+ tenantId: string;
612
+ userId: string;
613
+ userEmail: string;
614
+ };
615
+ type TeamInfoUpdatedProps = {
616
+ userId: string;
617
+ tenantId: string;
618
+ userEmail: string;
619
+ };
620
+ type TeamMemberRemovedProps = {
621
+ userId: string;
622
+ removedUserId: string;
623
+ tenantId: string;
624
+ userEmail: string;
625
+ };
626
+ type TestErrorProps = {
627
+ userId: string;
628
+ tenantId: string;
629
+ };
630
+ type TestEventProps = {
631
+ success: string;
632
+ };
633
+ type UserForcedReloadedProps = {
634
+ appName: string;
635
+ };
636
+ type OwnerStatementOpenedProps = {
637
+ userId: string;
638
+ tenantId: string;
639
+ userEmail: string;
640
+ listingId: string;
641
+ startAt: string;
642
+ };
643
+ type ListingActivated = any;
644
+ type ListingDeactivated = any;
645
+ type ListingsReported = any;
76
646
  export {};
File without changes
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=index.spec.js.map