@appsemble/types 0.22.10 → 0.23.1
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 +4 -0
- package/index.d.ts +70 -2
- 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.23.1)
|
|
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.23.1/LICENSE.md) ©
|
|
30
30
|
[Appsemble](https://appsemble.com)
|
package/cli.d.ts
CHANGED
|
@@ -37,6 +37,10 @@ export interface AppsembleContext {
|
|
|
37
37
|
* If `template` is specified, this will override `--template` passed on the command line.
|
|
38
38
|
*/
|
|
39
39
|
template?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* If `demoMode` is specified, this will override `--demo-mode` passed on the command line.
|
|
42
|
+
*/
|
|
43
|
+
demoMode?: boolean;
|
|
40
44
|
}
|
|
41
45
|
export interface AppsembleRC {
|
|
42
46
|
/**
|
package/index.d.ts
CHANGED
|
@@ -605,8 +605,12 @@ export interface ResourceCall {
|
|
|
605
605
|
*/
|
|
606
606
|
roles?: string[];
|
|
607
607
|
}
|
|
608
|
+
export interface ResourceReferenceActionTrigger {
|
|
609
|
+
type: 'create' | 'delete' | 'update';
|
|
610
|
+
cascade?: 'delete' | 'update';
|
|
611
|
+
}
|
|
608
612
|
interface ResourceReferenceAction {
|
|
609
|
-
|
|
613
|
+
triggers: ResourceReferenceActionTrigger[];
|
|
610
614
|
}
|
|
611
615
|
interface ResourceReference {
|
|
612
616
|
/**
|
|
@@ -1638,6 +1642,10 @@ export interface App {
|
|
|
1638
1642
|
* Any app styles that are core.
|
|
1639
1643
|
*/
|
|
1640
1644
|
coreStyle?: string;
|
|
1645
|
+
/**
|
|
1646
|
+
* Whether the app should be used in demo mode.
|
|
1647
|
+
*/
|
|
1648
|
+
demoMode: boolean;
|
|
1641
1649
|
}
|
|
1642
1650
|
/**
|
|
1643
1651
|
* A rating given to an app.
|
|
@@ -1831,7 +1839,7 @@ export interface AppServiceSecret {
|
|
|
1831
1839
|
/**
|
|
1832
1840
|
* An optional name to give extra clarity what the secret is used for.
|
|
1833
1841
|
*/
|
|
1834
|
-
|
|
1842
|
+
name?: string;
|
|
1835
1843
|
/**
|
|
1836
1844
|
* The url pattern that is matched when a proxied request action is called.
|
|
1837
1845
|
*/
|
|
@@ -1919,6 +1927,66 @@ export interface AppSamlSecret extends WritableAppSamlSecret {
|
|
|
1919
1927
|
*/
|
|
1920
1928
|
spCertificate?: string;
|
|
1921
1929
|
}
|
|
1930
|
+
export interface Training {
|
|
1931
|
+
/**
|
|
1932
|
+
* Id of the training
|
|
1933
|
+
*/
|
|
1934
|
+
id: number;
|
|
1935
|
+
/**
|
|
1936
|
+
* Title of the training.
|
|
1937
|
+
*/
|
|
1938
|
+
title: string;
|
|
1939
|
+
/**
|
|
1940
|
+
* A brief overview of what the training is about.
|
|
1941
|
+
*/
|
|
1942
|
+
description: string;
|
|
1943
|
+
/**
|
|
1944
|
+
* Tags related to competence of the training.
|
|
1945
|
+
*/
|
|
1946
|
+
competence: string;
|
|
1947
|
+
/**
|
|
1948
|
+
* Difficulty level of the training.
|
|
1949
|
+
*/
|
|
1950
|
+
difficultyLevel: number;
|
|
1951
|
+
/**
|
|
1952
|
+
* The creation date of the training.
|
|
1953
|
+
*/
|
|
1954
|
+
$created?: string;
|
|
1955
|
+
/**
|
|
1956
|
+
* The date when the training was last updated.
|
|
1957
|
+
*/
|
|
1958
|
+
$updated?: string;
|
|
1959
|
+
}
|
|
1960
|
+
export interface TrainingBlock {
|
|
1961
|
+
/**
|
|
1962
|
+
* ID of the training block
|
|
1963
|
+
*/
|
|
1964
|
+
id: string;
|
|
1965
|
+
/**
|
|
1966
|
+
* Title of the block.
|
|
1967
|
+
*/
|
|
1968
|
+
title: string;
|
|
1969
|
+
/**
|
|
1970
|
+
* Id of the parent training.
|
|
1971
|
+
*/
|
|
1972
|
+
trainingId: number;
|
|
1973
|
+
/**
|
|
1974
|
+
* A link pointing to the documentation of Appsemble.
|
|
1975
|
+
*/
|
|
1976
|
+
documentationLink?: string;
|
|
1977
|
+
/**
|
|
1978
|
+
* A link pointing to a video regarding the topic.
|
|
1979
|
+
*/
|
|
1980
|
+
videoLink?: string;
|
|
1981
|
+
/**
|
|
1982
|
+
* Link to an external resource.
|
|
1983
|
+
*/
|
|
1984
|
+
externalResource?: string;
|
|
1985
|
+
/**
|
|
1986
|
+
* Example code for the user to try out.
|
|
1987
|
+
*/
|
|
1988
|
+
exampleCode?: string;
|
|
1989
|
+
}
|
|
1922
1990
|
export type SAMLStatus = 'badsignature' | 'emailconflict' | 'invalidrelaystate' | 'invalidsecret' | 'invalidstatuscode' | 'invalidsubjectconfirmation' | 'missingnameid' | 'missingsubject';
|
|
1923
1991
|
/**
|
|
1924
1992
|
* The block configuration that’s used by the CLI when building a block.
|