@appsemble/types
Advanced tools
Comparing version 0.24.0 to 0.24.1
@@ -653,2 +653,14 @@ import { type IconName } from '@fortawesome/fontawesome-common-types'; | ||
} | ||
export interface UserPropertyDefinition { | ||
/** | ||
* The JSON schema to validate user properties against before sending it to the backend. | ||
*/ | ||
schema: OpenAPIV3.SchemaObject; | ||
/** | ||
* The resource that is referenced by this user property. | ||
*/ | ||
reference?: { | ||
resource: string; | ||
}; | ||
} | ||
export interface ResourceDefinition { | ||
@@ -721,2 +733,10 @@ /** | ||
expires?: string; | ||
/** | ||
* Whether the resource should be able to be transferred when cloning the app it belongs to. | ||
*/ | ||
clonable?: boolean; | ||
/** | ||
* Whether the resource should be cleaned up regularly. | ||
*/ | ||
ephemeral?: boolean; | ||
} | ||
@@ -1475,2 +1495,5 @@ export interface BaseActionDefinition<T extends Action['type']> { | ||
controller?: ControllerDefinition; | ||
users?: { | ||
properties: Record<string, UserPropertyDefinition>; | ||
}; | ||
/** | ||
@@ -1590,4 +1613,8 @@ * Resource definitions that may be used by the app. | ||
*/ | ||
resources?: boolean; | ||
hasClonableResources?: boolean; | ||
/** | ||
* Whether the app has clonable assets. | ||
*/ | ||
hasClonableAssets?: boolean; | ||
/** | ||
* A list of URLs to app screenshots | ||
@@ -1719,3 +1746,3 @@ */ | ||
/** | ||
* The controller of an app. | ||
* App member in an app. | ||
*/ | ||
@@ -1727,2 +1754,4 @@ export interface AppMember { | ||
role: string; | ||
demo: boolean; | ||
properties: Record<string, any>; | ||
} | ||
@@ -1729,0 +1758,0 @@ /** |
{ | ||
"name": "@appsemble/types", | ||
"version": "0.24.0", | ||
"version": "0.24.1", | ||
"description": "TypeScript definitions reused within Appsemble internally", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -1,2 +0,2 @@ | ||
# ![](https://gitlab.com/appsemble/appsemble/-/raw/0.24.0/config/assets/logo.svg) Appsemble Types | ||
# ![](https://gitlab.com/appsemble/appsemble/-/raw/0.24.1/config/assets/logo.svg) Appsemble Types | ||
@@ -6,3 +6,3 @@ > Reusable TypeScript types | ||
[![npm](https://img.shields.io/npm/v/@appsemble/types)](https://www.npmjs.com/package/@appsemble/types) | ||
[![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.24.0/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.24.0) | ||
[![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.24.1/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.24.1) | ||
[![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io) | ||
@@ -30,3 +30,3 @@ | ||
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.24.0/LICENSE.md) © | ||
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.24.1/LICENSE.md) © | ||
[Appsemble](https://appsemble.com) |
@@ -13,2 +13,11 @@ export interface Resource { | ||
/** | ||
* A boolean indicating whether the resource will be used for creating ephemeral | ||
* resources in demo apps | ||
*/ | ||
$seed: boolean; | ||
/** | ||
* A boolean indicating whether the resource will be cleaned up regularly | ||
*/ | ||
$ephemeral: boolean; | ||
/** | ||
* When the resource was first created as an ISO 8601 formatted string. | ||
@@ -15,0 +24,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
84021
2679