@appsemble/types 0.22.10 → 0.23.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/index.d.ts +66 -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.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.23.0/LICENSE.md) ©
|
|
30
30
|
[Appsemble](https://appsemble.com)
|
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
|
/**
|
|
@@ -1831,7 +1835,7 @@ export interface AppServiceSecret {
|
|
|
1831
1835
|
/**
|
|
1832
1836
|
* An optional name to give extra clarity what the secret is used for.
|
|
1833
1837
|
*/
|
|
1834
|
-
|
|
1838
|
+
name?: string;
|
|
1835
1839
|
/**
|
|
1836
1840
|
* The url pattern that is matched when a proxied request action is called.
|
|
1837
1841
|
*/
|
|
@@ -1919,6 +1923,66 @@ export interface AppSamlSecret extends WritableAppSamlSecret {
|
|
|
1919
1923
|
*/
|
|
1920
1924
|
spCertificate?: string;
|
|
1921
1925
|
}
|
|
1926
|
+
export interface Training {
|
|
1927
|
+
/**
|
|
1928
|
+
* Id of the training
|
|
1929
|
+
*/
|
|
1930
|
+
id: number;
|
|
1931
|
+
/**
|
|
1932
|
+
* Title of the training.
|
|
1933
|
+
*/
|
|
1934
|
+
title: string;
|
|
1935
|
+
/**
|
|
1936
|
+
* A brief overview of what the training is about.
|
|
1937
|
+
*/
|
|
1938
|
+
description: string;
|
|
1939
|
+
/**
|
|
1940
|
+
* Tags related to competence of the training.
|
|
1941
|
+
*/
|
|
1942
|
+
competence: string;
|
|
1943
|
+
/**
|
|
1944
|
+
* Difficulty level of the training.
|
|
1945
|
+
*/
|
|
1946
|
+
difficultyLevel: number;
|
|
1947
|
+
/**
|
|
1948
|
+
* The creation date of the training.
|
|
1949
|
+
*/
|
|
1950
|
+
$created?: string;
|
|
1951
|
+
/**
|
|
1952
|
+
* The date when the training was last updated.
|
|
1953
|
+
*/
|
|
1954
|
+
$updated?: string;
|
|
1955
|
+
}
|
|
1956
|
+
export interface TrainingBlock {
|
|
1957
|
+
/**
|
|
1958
|
+
* ID of the training block
|
|
1959
|
+
*/
|
|
1960
|
+
id: string;
|
|
1961
|
+
/**
|
|
1962
|
+
* Title of the block.
|
|
1963
|
+
*/
|
|
1964
|
+
title: string;
|
|
1965
|
+
/**
|
|
1966
|
+
* Id of the parent training.
|
|
1967
|
+
*/
|
|
1968
|
+
trainingId: number;
|
|
1969
|
+
/**
|
|
1970
|
+
* A link pointing to the documentation of Appsemble.
|
|
1971
|
+
*/
|
|
1972
|
+
documentationLink?: string;
|
|
1973
|
+
/**
|
|
1974
|
+
* A link pointing to a video regarding the topic.
|
|
1975
|
+
*/
|
|
1976
|
+
videoLink?: string;
|
|
1977
|
+
/**
|
|
1978
|
+
* Link to an external resource.
|
|
1979
|
+
*/
|
|
1980
|
+
externalResource?: string;
|
|
1981
|
+
/**
|
|
1982
|
+
* Example code for the user to try out.
|
|
1983
|
+
*/
|
|
1984
|
+
exampleCode?: string;
|
|
1985
|
+
}
|
|
1922
1986
|
export type SAMLStatus = 'badsignature' | 'emailconflict' | 'invalidrelaystate' | 'invalidsecret' | 'invalidstatuscode' | 'invalidsubjectconfirmation' | 'missingnameid' | 'missingsubject';
|
|
1923
1987
|
/**
|
|
1924
1988
|
* The block configuration that’s used by the CLI when building a block.
|