File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ const eeLicenseKeyPayloadSchema = z.object({
2121type LicenseKeyPayload = z . infer < typeof eeLicenseKeyPayloadSchema > ;
2222
2323// eslint-disable-next-line @typescript-eslint/no-unused-vars
24- const entitlements = [
24+ const ALL_ENTITLEMENTS = [
2525 "search-contexts" ,
2626 "anonymous-access" ,
2727 "sso" ,
@@ -34,7 +34,7 @@ const entitlements = [
3434 "org-management" ,
3535 "oauth" ,
3636] as const ;
37- export type Entitlement = ( typeof entitlements ) [ number ] ;
37+ export type Entitlement = ( typeof ALL_ENTITLEMENTS ) [ number ] ;
3838
3939const ACTIVE_LICENSE_STATUSES = [ 'active' , 'trialing' , 'past_due' ] as const ;
4040
@@ -93,7 +93,7 @@ export const getEntitlements = (license: License | null): Entitlement[] => {
9393 process . exit ( 1 ) ;
9494 }
9595
96- return entitlements as unknown as Entitlement [ ] ;
96+ return ALL_ENTITLEMENTS as unknown as Entitlement [ ] ;
9797 }
9898 else if ( license && isLicenseActive ( license ) ) {
9999 return license . entitlements as unknown as Entitlement [ ] ;
You can’t perform that action at this time.
0 commit comments