@wrcb/cb-common 1.0.535 → 1.0.536
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/events/feedPostCreatedEvent.d.ts +3 -0
- package/build/events/private-show/subscriptionCancelledEvent.d.ts +11 -0
- package/build/events/private-show/subscriptionCreatedEvent.d.ts +25 -0
- package/build/events/private-show/subscriptionUpdatedEvent.d.ts +17 -0
- package/build/events/subjects.d.ts +3 -11
- package/build/events/subjects.js +3 -11
- package/build/server.d.ts +3 -3
- package/build/server.js +3 -3
- package/package.json +1 -1
- package/build/events/callFinishedEvent.d.ts +0 -16
- package/build/events/callStartedEvent.d.ts +0 -13
- package/build/events/chargeMadeEvent.d.ts +0 -22
- /package/build/events/{callFinishedEvent.js → private-show/subscriptionCancelledEvent.js} +0 -0
- /package/build/events/{callStartedEvent.js → private-show/subscriptionCreatedEvent.js} +0 -0
- /package/build/events/{chargeMadeEvent.js → private-show/subscriptionUpdatedEvent.js} +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Subjects } from '../subjects';
|
|
2
|
+
import { Tenant } from '../../types/tenant';
|
|
3
|
+
export interface SubscriptionCancelledEvent {
|
|
4
|
+
subject: Subjects.SubscriptionCancelled;
|
|
5
|
+
data: {
|
|
6
|
+
tenant: Tenant;
|
|
7
|
+
externalSubscriptionId: string;
|
|
8
|
+
cancelledAt: string;
|
|
9
|
+
timestamp: string;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Subjects } from '../subjects';
|
|
2
|
+
import { Tenant } from '../../types/tenant';
|
|
3
|
+
import { SubscriptionStatus } from '../../types/subscriptionStatus';
|
|
4
|
+
import { SubscriptionPlan } from '../../types/subscriptionPlan';
|
|
5
|
+
import { PaymentProviderType } from '../../types/paymentProviderType';
|
|
6
|
+
export interface SubscriptionCreatedEvent {
|
|
7
|
+
subject: Subjects.SubscriptionCreated;
|
|
8
|
+
data: {
|
|
9
|
+
tenant: Tenant;
|
|
10
|
+
consumerId: string;
|
|
11
|
+
sellerId: string;
|
|
12
|
+
status: SubscriptionStatus;
|
|
13
|
+
plan: SubscriptionPlan;
|
|
14
|
+
provider: PaymentProviderType;
|
|
15
|
+
externalSubscriptionId: string;
|
|
16
|
+
externalCustomerId: string;
|
|
17
|
+
currentPeriodStart: string;
|
|
18
|
+
currentPeriodEnd: string;
|
|
19
|
+
cancelAtPeriodEnd: boolean;
|
|
20
|
+
amount: number;
|
|
21
|
+
currency: string;
|
|
22
|
+
metadata?: Record<string, any>;
|
|
23
|
+
timestamp: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Subjects } from '../subjects';
|
|
2
|
+
import { Tenant } from '../../types/tenant';
|
|
3
|
+
import { SubscriptionStatus } from '../../types/subscriptionStatus';
|
|
4
|
+
export interface SubscriptionUpdatedEvent {
|
|
5
|
+
subject: Subjects.SubscriptionUpdated;
|
|
6
|
+
data: {
|
|
7
|
+
tenant: Tenant;
|
|
8
|
+
externalSubscriptionId: string;
|
|
9
|
+
status: SubscriptionStatus;
|
|
10
|
+
currentPeriodStart: string;
|
|
11
|
+
currentPeriodEnd: string;
|
|
12
|
+
cancelAtPeriodEnd: boolean;
|
|
13
|
+
cancelledAt?: string;
|
|
14
|
+
metadata?: Record<string, any>;
|
|
15
|
+
timestamp: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export declare enum Subjects {
|
|
2
|
-
CallStarted = "CallStarted",
|
|
3
|
-
CallFinished = "CallFinished",
|
|
4
2
|
CommentCreated = "CommentCreated",
|
|
5
3
|
CommentReplied = "CommentReplied",
|
|
6
4
|
NewPasswordGenerated = "NewPasswordGenerated",
|
|
@@ -12,16 +10,7 @@ export declare enum Subjects {
|
|
|
12
10
|
ToggledBlockUser = "ToggledBlockUser",
|
|
13
11
|
CommentUpdated = "CommentUpdated",
|
|
14
12
|
LikeUnlikeMade = "LikeUnlikeMade",
|
|
15
|
-
PredictionCreated = "PredictionCreated",
|
|
16
|
-
PredictionStarted = "PredictionStarted",
|
|
17
|
-
PredictionPaused = "PredictionPaused",
|
|
18
|
-
PredictionFinished = "PredictionFinished",
|
|
19
|
-
PredictionDeleted = "PredictionDeleted",
|
|
20
|
-
PredictionUpdated = "PredictionUpdated",
|
|
21
|
-
PredictionResultProcessed = "PredictionResultProcessed",
|
|
22
13
|
BetMade = "BetMade",
|
|
23
|
-
ChargeMade = "ChargeMade",
|
|
24
|
-
WithdrawalMade = "WithdrawalMade",
|
|
25
14
|
UserFollowed = "UserFollowed",
|
|
26
15
|
DepositConfirmed = "DepositConfirmed",
|
|
27
16
|
WithdrawMade = "WithdrawMade",
|
|
@@ -36,5 +25,8 @@ export declare enum Subjects {
|
|
|
36
25
|
ViewerLeft = "ViewerLeft",
|
|
37
26
|
ViewerKicked = "ViewerKicked",
|
|
38
27
|
ViewerAutoKicked = "ViewerAutoKicked",
|
|
28
|
+
SubscriptionCreated = "SubscriptionCreated",
|
|
29
|
+
SubscriptionUpdated = "SubscriptionUpdated",
|
|
30
|
+
SubscriptionCancelled = "SubscriptionCancelled",
|
|
39
31
|
GiftSent = "GiftSent"
|
|
40
32
|
}
|
package/build/events/subjects.js
CHANGED
|
@@ -3,8 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Subjects = void 0;
|
|
4
4
|
var Subjects;
|
|
5
5
|
(function (Subjects) {
|
|
6
|
-
Subjects["CallStarted"] = "CallStarted";
|
|
7
|
-
Subjects["CallFinished"] = "CallFinished";
|
|
8
6
|
Subjects["CommentCreated"] = "CommentCreated";
|
|
9
7
|
Subjects["CommentReplied"] = "CommentReplied";
|
|
10
8
|
Subjects["NewPasswordGenerated"] = "NewPasswordGenerated";
|
|
@@ -16,16 +14,7 @@ var Subjects;
|
|
|
16
14
|
Subjects["ToggledBlockUser"] = "ToggledBlockUser";
|
|
17
15
|
Subjects["CommentUpdated"] = "CommentUpdated";
|
|
18
16
|
Subjects["LikeUnlikeMade"] = "LikeUnlikeMade";
|
|
19
|
-
Subjects["PredictionCreated"] = "PredictionCreated";
|
|
20
|
-
Subjects["PredictionStarted"] = "PredictionStarted";
|
|
21
|
-
Subjects["PredictionPaused"] = "PredictionPaused";
|
|
22
|
-
Subjects["PredictionFinished"] = "PredictionFinished";
|
|
23
|
-
Subjects["PredictionDeleted"] = "PredictionDeleted";
|
|
24
|
-
Subjects["PredictionUpdated"] = "PredictionUpdated";
|
|
25
|
-
Subjects["PredictionResultProcessed"] = "PredictionResultProcessed";
|
|
26
17
|
Subjects["BetMade"] = "BetMade";
|
|
27
|
-
Subjects["ChargeMade"] = "ChargeMade";
|
|
28
|
-
Subjects["WithdrawalMade"] = "WithdrawalMade";
|
|
29
18
|
Subjects["UserFollowed"] = "UserFollowed";
|
|
30
19
|
Subjects["DepositConfirmed"] = "DepositConfirmed";
|
|
31
20
|
Subjects["WithdrawMade"] = "WithdrawMade";
|
|
@@ -41,5 +30,8 @@ var Subjects;
|
|
|
41
30
|
Subjects["ViewerLeft"] = "ViewerLeft";
|
|
42
31
|
Subjects["ViewerKicked"] = "ViewerKicked";
|
|
43
32
|
Subjects["ViewerAutoKicked"] = "ViewerAutoKicked";
|
|
33
|
+
Subjects["SubscriptionCreated"] = "SubscriptionCreated";
|
|
34
|
+
Subjects["SubscriptionUpdated"] = "SubscriptionUpdated";
|
|
35
|
+
Subjects["SubscriptionCancelled"] = "SubscriptionCancelled";
|
|
44
36
|
Subjects["GiftSent"] = "GiftSent";
|
|
45
37
|
})(Subjects || (exports.Subjects = Subjects = {}));
|
package/build/server.d.ts
CHANGED
|
@@ -29,12 +29,9 @@ export * from './middlewares/uploadMedia';
|
|
|
29
29
|
export * from './routes/health';
|
|
30
30
|
export * from './events/baseListener';
|
|
31
31
|
export * from './events/basePublisher';
|
|
32
|
-
export * from './events/callStartedEvent';
|
|
33
|
-
export * from './events/callFinishedEvent';
|
|
34
32
|
export * from './events/commentCreatedEvent';
|
|
35
33
|
export * from './events/commentRepliedEvent';
|
|
36
34
|
export * from './events/likeUnlikeMadeEvent';
|
|
37
|
-
export * from './events/chargeMadeEvent';
|
|
38
35
|
export * from './events/newPasswordGeneratedEvent';
|
|
39
36
|
export * from './events/newPasswordGeneratedEvent';
|
|
40
37
|
export * from './events/userUpdatedEvent';
|
|
@@ -57,6 +54,9 @@ export * from './events/private-show/viewerKickedEvent';
|
|
|
57
54
|
export * from './events/private-show/viewerAutoKickedEvent';
|
|
58
55
|
export * from './events/private-show/giftSentEvent';
|
|
59
56
|
export * from './events/private-show/userFollowedEvent';
|
|
57
|
+
export * from './events/private-show/subscriptionCancelledEvent';
|
|
58
|
+
export * from './events/private-show/subscriptionCreatedEvent';
|
|
59
|
+
export * from './events/private-show/subscriptionUpdatedEvent';
|
|
60
60
|
export * from './services/RedisService';
|
|
61
61
|
export * from './services/TenantDataService';
|
|
62
62
|
export * from './services/WasabiUploader';
|
package/build/server.js
CHANGED
|
@@ -45,12 +45,9 @@ __exportStar(require("./middlewares/uploadMedia"), exports);
|
|
|
45
45
|
__exportStar(require("./routes/health"), exports);
|
|
46
46
|
__exportStar(require("./events/baseListener"), exports);
|
|
47
47
|
__exportStar(require("./events/basePublisher"), exports);
|
|
48
|
-
__exportStar(require("./events/callStartedEvent"), exports);
|
|
49
|
-
__exportStar(require("./events/callFinishedEvent"), exports);
|
|
50
48
|
__exportStar(require("./events/commentCreatedEvent"), exports);
|
|
51
49
|
__exportStar(require("./events/commentRepliedEvent"), exports);
|
|
52
50
|
__exportStar(require("./events/likeUnlikeMadeEvent"), exports);
|
|
53
|
-
__exportStar(require("./events/chargeMadeEvent"), exports);
|
|
54
51
|
__exportStar(require("./events/newPasswordGeneratedEvent"), exports);
|
|
55
52
|
__exportStar(require("./events/newPasswordGeneratedEvent"), exports);
|
|
56
53
|
__exportStar(require("./events/userUpdatedEvent"), exports);
|
|
@@ -73,6 +70,9 @@ __exportStar(require("./events/private-show/viewerKickedEvent"), exports);
|
|
|
73
70
|
__exportStar(require("./events/private-show/viewerAutoKickedEvent"), exports);
|
|
74
71
|
__exportStar(require("./events/private-show/giftSentEvent"), exports);
|
|
75
72
|
__exportStar(require("./events/private-show/userFollowedEvent"), exports);
|
|
73
|
+
__exportStar(require("./events/private-show/subscriptionCancelledEvent"), exports);
|
|
74
|
+
__exportStar(require("./events/private-show/subscriptionCreatedEvent"), exports);
|
|
75
|
+
__exportStar(require("./events/private-show/subscriptionUpdatedEvent"), exports);
|
|
76
76
|
__exportStar(require("./services/RedisService"), exports);
|
|
77
77
|
__exportStar(require("./services/TenantDataService"), exports);
|
|
78
78
|
__exportStar(require("./services/WasabiUploader"), exports);
|
package/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { CallFinishReason } from 'src/types/callFinishReason';
|
|
2
|
-
import { Subjects } from './subjects';
|
|
3
|
-
import { Tenant } from 'src/types/tenant';
|
|
4
|
-
export interface CallFinishedEvent {
|
|
5
|
-
subject: Subjects.CallFinished;
|
|
6
|
-
data: {
|
|
7
|
-
tenant: Tenant;
|
|
8
|
-
sellerId: string;
|
|
9
|
-
userId: string;
|
|
10
|
-
callId: string;
|
|
11
|
-
finishReason: CallFinishReason;
|
|
12
|
-
finishedAt: string;
|
|
13
|
-
orderId: string;
|
|
14
|
-
duration: number;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Tenant } from 'src/types/tenant';
|
|
2
|
-
import { Subjects } from './subjects';
|
|
3
|
-
export interface CallStartedEvent {
|
|
4
|
-
subject: Subjects.CallStarted;
|
|
5
|
-
data: {
|
|
6
|
-
tenant: Tenant;
|
|
7
|
-
sellerId: string;
|
|
8
|
-
orderId: string;
|
|
9
|
-
userId: string;
|
|
10
|
-
callId: string;
|
|
11
|
-
expiresAt: string;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { TransactionOperation } from 'src/types/transactionOperation';
|
|
2
|
-
import { Subjects } from './subjects';
|
|
3
|
-
import { TransactionOperationMode } from 'src/types/transactionOperationMode';
|
|
4
|
-
import { Tenant } from 'src/types/tenant';
|
|
5
|
-
import { Language } from 'src/types/country';
|
|
6
|
-
export interface ChargeMadeEvent {
|
|
7
|
-
subject: Subjects.ChargeMade;
|
|
8
|
-
data: {
|
|
9
|
-
tenant: Tenant;
|
|
10
|
-
transactionId: string;
|
|
11
|
-
userId: string;
|
|
12
|
-
chargeId: string;
|
|
13
|
-
sellerId: string;
|
|
14
|
-
value: number;
|
|
15
|
-
version: number;
|
|
16
|
-
operation: TransactionOperation;
|
|
17
|
-
operationMode: TransactionOperationMode;
|
|
18
|
-
email: string;
|
|
19
|
-
nickName: string;
|
|
20
|
-
language: Language;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|