Skip to content

Commit

Permalink
FIXXXXXX
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Nov 12, 2021
1 parent 3b67135 commit cc31fdd
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 16 deletions.
2 changes: 1 addition & 1 deletion definition/rest/v1/licenses.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ILicense } from '../../../ee/app/license/server/license';
import type { ILicense } from '../../../ee/app/license/definitions/ILicense';

export type LicensesEndpoints = {
'licenses.get': {
Expand Down
11 changes: 11 additions & 0 deletions ee/app/license/definitions/ILicense.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { ILicenseTag } from './ILicenseTag';

export interface ILicense {
url: string;
expiry: string;
maxActiveUsers: number;
modules: string[];
maxGuestUsers: number;
maxRoomsPerGuest: number;
tag?: ILicenseTag;
}
4 changes: 4 additions & 0 deletions ee/app/license/definitions/ILicenseTag.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export interface ILicenseTag {
name: string;
color: string;
}
17 changes: 2 additions & 15 deletions ee/app/license/server/license.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,11 @@ import { Users } from '../../../../app/models/server';
import { getBundleModules, isBundle, getBundleFromModule } from './bundles';
import decrypt from './decrypt';
import { getTagColor } from './getTagColor';
import { ILicense } from '../definitions/ILicense';
import { ILicenseTag } from '../definitions/ILicenseTag';

const EnterpriseLicenses = new EventEmitter();

interface ILicenseTag {
name: string;
color: string;
}

export interface ILicense {
url: string;
expiry: string;
maxActiveUsers: number;
modules: string[];
maxGuestUsers: number;
maxRoomsPerGuest: number;
tag?: ILicenseTag;
}

export interface IValidLicense {
valid?: boolean;
license: ILicense;
Expand Down
39 changes: 39 additions & 0 deletions ee/server/services/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ee/server/services/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"license": "MIT",
"dependencies": {
"@rocket.chat/string-helpers": "^0.29.0",
"ajv": "^8.7.1",
"bcrypt": "^5.0.1",
"body-parser": "^1.19.0",
"colorette": "^1.3.0",
Expand Down

0 comments on commit cc31fdd

Please sign in to comment.