Skip to content

Commit e5cad0d

Browse files
authored
chore: License module for Outbound Communications (RocketChat#36682)
1 parent eeb6850 commit e5cad0d

4 files changed

Lines changed: 6 additions & 0 deletions

File tree

apps/meteor/ee/app/livechat-enterprise/server/api/outbound.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const outboundCommsEndpoints = API.v1
2121
},
2222
query: GETOutboundProviderParamsSchema,
2323
authRequired: true,
24+
license: ['outbound-messaging'],
2425
},
2526
async function action() {
2627
const { type } = this.queryParams;
@@ -39,6 +40,7 @@ const outboundCommsEndpoints = API.v1
3940
400: GETOutboundProviderBadRequestErrorSchema,
4041
},
4142
authRequired: true,
43+
license: ['outbound-messaging'],
4244
},
4345
async function action() {
4446
const { id } = this.urlParams;
@@ -55,6 +57,7 @@ const outboundCommsEndpoints = API.v1
5557
response: { 200: POSTOutboundMessageSuccessSchema, 400: POSTOutboundMessageErrorSchema },
5658
authRequired: true,
5759
body: POSTOutboundMessageParams,
60+
license: ['outbound-messaging'],
5861
},
5962
async function action() {
6063
const { id } = this.urlParams;

apps/meteor/tests/mocks/data.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ export const createFakeLicenseInfo = (partial: Partial<Omit<LicenseInfo, 'licens
231231
'hide-watermark',
232232
'custom-roles',
233233
'accessibility-certification',
234+
'outbound-messaging',
234235
]),
235236
externalModules: [],
236237
preventedActions: {

packages/core-typings/src/license/LicenseModule.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export const CoreModules = [
2222
'unlimited-presence',
2323
'contact-id-verification',
2424
'teams-voip',
25+
'outbound-messaging',
2526
] as const;
2627

2728
export type InternalModuleName = (typeof CoreModules)[number];

packages/jwt/__tests__/jwt.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ it('should sign and verify a jwt with RS256', async () => {
5353
{ module: 'message-read-receipt' },
5454
{ module: 'outlook-calendar' },
5555
{ module: 'unlimited-presence' },
56+
{ module: 'outbound-messaging' },
5657
],
5758
limits: {
5859
activeUsers: [

0 commit comments

Comments
 (0)