@wrcb/cb-common 1.0.305 → 1.0.307

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.
@@ -1,7 +1,9 @@
1
+ import { Tenant } from 'src/types/tenant';
1
2
  import { Subjects } from './subjects';
2
3
  export interface BetMadeEvent {
3
4
  subject: Subjects.BetMade;
4
5
  data: {
6
+ tenant: Tenant;
5
7
  userId: string;
6
8
  betId: string;
7
9
  value: number;
@@ -1,8 +1,10 @@
1
1
  import { CallFinishReason } from 'src/types/callFinishReason';
2
2
  import { Subjects } from './subjects';
3
+ import { Tenant } from 'src/types/tenant';
3
4
  export interface CallFinishedEvent {
4
5
  subject: Subjects.CallFinished;
5
6
  data: {
7
+ tenant: Tenant;
6
8
  targetId: string;
7
9
  userId: string;
8
10
  callId: string;
@@ -1,7 +1,9 @@
1
+ import { Tenant } from 'src/types/tenant';
1
2
  import { Subjects } from './subjects';
2
3
  export interface CallStartedEvent {
3
4
  subject: Subjects.CallStarted;
4
5
  data: {
6
+ tenant: Tenant;
5
7
  targetId: string;
6
8
  orderId: string;
7
9
  userId: string;
@@ -1,7 +1,9 @@
1
+ import { Tenant } from 'src/types/tenant';
1
2
  import { Subjects } from './subjects';
2
3
  export interface CommentCreatedEvent {
3
4
  subject: Subjects.CommentCreated;
4
5
  data: {
6
+ tenant: Tenant;
5
7
  targetId: string;
6
8
  authorId: string;
7
9
  commentId: string;
@@ -1,7 +1,9 @@
1
+ import { Tenant } from 'src/types/tenant';
1
2
  import { Subjects } from './subjects';
2
3
  export interface CommentRepliedEvent {
3
4
  subject: Subjects.CommentReplied;
4
5
  data: {
6
+ tenant: Tenant;
5
7
  targetId: string;
6
8
  authorId: string;
7
9
  commentId: string;
@@ -1,8 +1,10 @@
1
1
  import { UserRole } from 'src/types/userRole';
2
2
  import { Subjects } from './subjects';
3
+ import { Tenant } from 'src/types/tenant';
3
4
  export interface CouponUsedOnUserSignupEvent {
4
5
  subject: Subjects.CouponUsedOnUserSignup;
5
6
  data: {
7
+ tenant: Tenant;
6
8
  userId: string;
7
9
  userRole: UserRole;
8
10
  email: string;
@@ -1,8 +1,10 @@
1
1
  import { Language } from 'src/types/country';
2
2
  import { Subjects } from './subjects';
3
+ import { Tenant } from 'src/types/tenant';
3
4
  export interface LinkToVerifyEmailCreatedEvent {
4
5
  subject: Subjects.LinkToVerifyEmailCreated;
5
6
  data: {
7
+ tenant: Tenant;
6
8
  userId: string;
7
9
  email: string;
8
10
  verificationEmailLink: string;
@@ -1,8 +1,10 @@
1
1
  import { Language } from 'src/types/country';
2
2
  import { Subjects } from './subjects';
3
+ import { Tenant } from 'src/types/tenant';
3
4
  export interface LinkToVerifyWhatsappCreatedEvent {
4
5
  subject: Subjects.LinkToVerifyWhatsappCreated;
5
6
  data: {
7
+ tenant: Tenant;
6
8
  userId: string;
7
9
  whatsapp: string;
8
10
  verificationWhatsappLink: string;
@@ -1,8 +1,10 @@
1
1
  import { Language } from 'src/types/country';
2
2
  import { Subjects } from './subjects';
3
+ import { Tenant } from 'src/types/tenant';
3
4
  export interface NewPasswordGeneratedEvent {
4
5
  subject: Subjects.NewPasswordGenerated;
5
6
  data: {
7
+ tenant: Tenant;
6
8
  userId: string;
7
9
  email: string;
8
10
  nickName: string;
@@ -1,9 +1,11 @@
1
1
  import { TransactionOperation } from 'src/types/transactionOperation';
2
2
  import { Subjects } from './subjects';
3
3
  import { TransactionOperationMode } from 'src/types/transactionOperationMode';
4
+ import { Tenant } from 'src/types/tenant';
4
5
  export interface PaymentMadeEvent {
5
6
  subject: Subjects.PaymentMade;
6
7
  data: {
8
+ tenant: Tenant;
7
9
  userId: string;
8
10
  transactionId: string;
9
11
  targetId: string;
@@ -1,7 +1,9 @@
1
+ import { Tenant } from 'src/types/tenant';
1
2
  import { Subjects } from './subjects';
2
3
  export interface PredictionDeletedEvent {
3
4
  subject: Subjects.PredictionDeleted;
4
5
  data: {
6
+ tenant: Tenant;
5
7
  userId: string;
6
8
  id: string;
7
9
  };
@@ -1,7 +1,9 @@
1
+ import { Tenant } from 'src/types/tenant';
1
2
  import { Subjects } from './subjects';
2
3
  export interface PredictionFinishedEvent {
3
4
  subject: Subjects.PredictionFinished;
4
5
  data: {
6
+ tenant: Tenant;
5
7
  userId: string;
6
8
  id: string;
7
9
  version: number;
@@ -1,7 +1,9 @@
1
+ import { Tenant } from 'src/types/tenant';
1
2
  import { Subjects } from './subjects';
2
3
  export interface PredictionPausedEvent {
3
4
  subject: Subjects.PredictionPaused;
4
5
  data: {
6
+ tenant: Tenant;
5
7
  userId: string;
6
8
  id: string;
7
9
  version: number;
@@ -1,9 +1,11 @@
1
1
  import { Subjects } from './subjects';
2
2
  import { OddType } from '../types/oddType';
3
3
  import { PredictionOptions } from '../types/predictions';
4
+ import { Tenant } from 'src/types/tenant';
4
5
  export interface PredictionStartedEvent {
5
6
  subject: Subjects.PredictionStarted;
6
7
  data: {
8
+ tenant: Tenant;
7
9
  userId: string;
8
10
  id: string;
9
11
  title: string;
@@ -1,9 +1,11 @@
1
1
  import { Subjects } from './subjects';
2
2
  import { OddType } from '../types/oddType';
3
3
  import { PredictionOptions } from '../types/predictions';
4
+ import { Tenant } from 'src/types/tenant';
4
5
  export interface PredictionUpdatedEvent {
5
6
  subject: Subjects.PredictionUpdated;
6
7
  data: {
8
+ tenant: Tenant;
7
9
  userId: string;
8
10
  id: string;
9
11
  title: string;
@@ -1,7 +1,9 @@
1
+ import { Tenant } from 'src/types/tenant';
1
2
  import { Subjects } from './subjects';
2
3
  export interface ToggledBlockUserEvent {
3
4
  subject: Subjects.ToggledBlockUser;
4
5
  data: {
6
+ tenant: Tenant;
5
7
  userId: string;
6
8
  isBlocked: boolean;
7
9
  };
@@ -2,9 +2,11 @@ import { UserRole } from 'src/types/userRole';
2
2
  import { Subjects } from './subjects';
3
3
  import { UserProvider } from 'src/types/userProvider';
4
4
  import { Country, Language } from 'src/types/country';
5
+ import { Tenant } from 'src/types/tenant';
5
6
  export interface UserCreatedEvent {
6
7
  subject: Subjects.UserCreated;
7
8
  data: {
9
+ tenant: Tenant;
8
10
  userId: string;
9
11
  email: string;
10
12
  nickName: string;
@@ -1,8 +1,10 @@
1
1
  import { UserRole } from 'src/types/userRole';
2
2
  import { Subjects } from './subjects';
3
+ import { Tenant } from 'src/types/tenant';
3
4
  export interface UserUpdatedEvent {
4
5
  subject: Subjects.UserUpdated;
5
6
  data: {
7
+ tenant: Tenant;
6
8
  route: string;
7
9
  userId: string;
8
10
  email: string;
@@ -1,9 +1,11 @@
1
1
  import { TransactionOperation } from 'src/types/transactionOperation';
2
2
  import { Subjects } from './subjects';
3
3
  import { TransactionOperationMode } from 'src/types/transactionOperationMode';
4
+ import { Tenant } from 'src/types/tenant';
4
5
  export interface WithdrawalMadeEvent {
5
6
  subject: Subjects.WithdrawalMade;
6
7
  data: {
8
+ tenant: Tenant;
7
9
  userId: string;
8
10
  transactionId: string;
9
11
  value: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrcb/cb-common",
3
- "version": "1.0.305",
3
+ "version": "1.0.307",
4
4
  "description": "Common resources between services",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",