@enonic-types/lib-project
Advanced tools
Comparing version 7.11.0-B3 to 7.11.0-B4
{ | ||
"name": "@enonic-types/lib-project", | ||
"version": "7.11.0-B3", | ||
"version": "7.11.0-B4", | ||
"description": "Type definitions for lib-project.", | ||
@@ -5,0 +5,0 @@ "types": "project.d.ts", |
@@ -120,3 +120,18 @@ /** | ||
export declare function get(params: GetProjectParams): Project | null; | ||
export interface GetAvailableApplicationsParams { | ||
id: string; | ||
} | ||
/** | ||
* Returns available applications for the specified project. It contains apps specified for the current and all parent projects/layers. | ||
* User must be a member of one of the project roles, or either `system.admin` or `cms.admin` role. | ||
* | ||
* @example-ref examples/project/getAvailableApplications.js | ||
* | ||
* @param {GetProjectParams} params JSON with the parameters. | ||
* @param {string} params.id Unique project id to identify the project. | ||
* | ||
* @returns {string[]} Keys of the available applications. | ||
*/ | ||
export declare function getAvailableApplications(params: GetAvailableApplicationsParams): string[]; | ||
/** | ||
* Returns all Content Projects. | ||
@@ -123,0 +138,0 @@ * The list will be limited to projects that user has permissions for. |
@@ -13,16 +13,2 @@ # Enonic XP lib-project TS types | ||
Add the corresponding types to your `tsconfig.json` file that is used for application's server-side TypeScript code. | ||
`tsconfig.json` | ||
```json | ||
{ | ||
"compilerOptions": { | ||
"types": [ | ||
"@enonic-types/lib-project" | ||
] | ||
} | ||
} | ||
``` | ||
### Require and custom imports | ||
@@ -35,8 +21,7 @@ | ||
```diff | ||
```json | ||
{ | ||
"compilerOptions": { | ||
"types": [ | ||
+ "@enonic-types/global" | ||
"@enonic-types/lib-project" | ||
"@enonic-types/global" | ||
] | ||
@@ -63,12 +48,9 @@ } | ||
```diff | ||
```json | ||
{ | ||
"compilerOptions": { | ||
"types": [ | ||
"@enonic-types/lib-project" | ||
] | ||
+ "baseUrl": "./", | ||
+ "paths": { | ||
+ "/lib/xp/project": ["node_modules/@enonic-types/lib-project"], | ||
+ } | ||
"baseUrl": "./", | ||
"paths": { | ||
"/lib/xp/project": ["node_modules/@enonic-types/lib-project"] | ||
} | ||
} | ||
@@ -75,0 +57,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10802
201
64