Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@enonic-types/lib-project

Package Overview
Dependencies
Maintainers
3
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@enonic-types/lib-project - npm Package Compare versions

Comparing version 7.11.0-B3 to 7.11.0-B4

2

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc