@appsemble/types 0.24.12 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/cli.d.ts +9 -0
- package/index.d.ts +9 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#  Appsemble Types
|
|
2
2
|
|
|
3
3
|
> Reusable TypeScript types
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@appsemble/types)
|
|
6
|
-
[](https://gitlab.com/appsemble/appsemble/-/releases/0.25.0)
|
|
7
7
|
[](https://prettier.io)
|
|
8
8
|
|
|
9
9
|
## Table of Contents
|
|
@@ -26,5 +26,5 @@ not guaranteed.
|
|
|
26
26
|
|
|
27
27
|
## License
|
|
28
28
|
|
|
29
|
-
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.
|
|
29
|
+
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.25.0/LICENSE.md) ©
|
|
30
30
|
[Appsemble](https://appsemble.com)
|
package/cli.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type AppVisibility } from './app.js';
|
|
2
|
+
import { type AppLock } from './index.js';
|
|
2
3
|
export interface AppsembleContext {
|
|
3
4
|
/**
|
|
4
5
|
* If `remote` is specified, this will override `--remote` passed by the command line.
|
|
@@ -41,6 +42,14 @@ export interface AppsembleContext {
|
|
|
41
42
|
* If `demoMode` is specified, this will override `--demo-mode` passed on the command line.
|
|
42
43
|
*/
|
|
43
44
|
demoMode?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* If `seed` is specified, this will override `--seed` passed on the command line.
|
|
47
|
+
*/
|
|
48
|
+
seed?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Set the value of AppLock for your app.
|
|
51
|
+
*/
|
|
52
|
+
appLock?: AppLock;
|
|
44
53
|
}
|
|
45
54
|
export interface AppsembleRC {
|
|
46
55
|
/**
|
package/index.d.ts
CHANGED
|
@@ -195,6 +195,10 @@ export interface TokenResponse {
|
|
|
195
195
|
refresh_token?: string;
|
|
196
196
|
token_type: 'bearer';
|
|
197
197
|
}
|
|
198
|
+
/**
|
|
199
|
+
* A type to represent the app lock.
|
|
200
|
+
*/
|
|
201
|
+
export type AppLock = 'fullLock' | 'studioLock' | 'unlocked';
|
|
198
202
|
interface BaseICSRemapper {
|
|
199
203
|
/**
|
|
200
204
|
* The start of the icalendar event.
|
|
@@ -1578,7 +1582,7 @@ export interface App {
|
|
|
1578
1582
|
/**
|
|
1579
1583
|
* Whether the app is currently locked.
|
|
1580
1584
|
*/
|
|
1581
|
-
locked:
|
|
1585
|
+
locked: AppLock;
|
|
1582
1586
|
/**
|
|
1583
1587
|
* Whether the Appsemble password login method should be shown.
|
|
1584
1588
|
*/
|
|
@@ -1680,6 +1684,10 @@ export interface App {
|
|
|
1680
1684
|
* Whether the app should be used in demo mode.
|
|
1681
1685
|
*/
|
|
1682
1686
|
demoMode: boolean;
|
|
1687
|
+
/**
|
|
1688
|
+
* Whether the app should seed resources and assets in demo mode.
|
|
1689
|
+
*/
|
|
1690
|
+
seed: boolean;
|
|
1683
1691
|
}
|
|
1684
1692
|
/**
|
|
1685
1693
|
* A rating given to an app.
|