@appsemble/types 0.27.11 → 0.27.12
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 +25 -3
- 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.27.12)
|
|
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.27.
|
|
29
|
+
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.27.12/LICENSE.md) ©
|
|
30
30
|
[Appsemble](https://appsemble.com)
|
package/index.d.ts
CHANGED
|
@@ -269,6 +269,10 @@ export interface Remappers {
|
|
|
269
269
|
* - `name`: Get the name of the user associated with AppMember object.
|
|
270
270
|
*/
|
|
271
271
|
appMember: keyof AppMember;
|
|
272
|
+
/**
|
|
273
|
+
* Get a predefined app variable by name.
|
|
274
|
+
*/
|
|
275
|
+
variable: string;
|
|
272
276
|
/**
|
|
273
277
|
* Get page metadata.
|
|
274
278
|
*
|
|
@@ -1875,12 +1879,24 @@ export interface OAuth2Provider {
|
|
|
1875
1879
|
*/
|
|
1876
1880
|
scope: string;
|
|
1877
1881
|
}
|
|
1878
|
-
export type
|
|
1879
|
-
export
|
|
1882
|
+
export type ValueFromDefinition = boolean | number | string | null | undefined;
|
|
1883
|
+
export type ValueFromProcess = boolean | number | string | undefined;
|
|
1884
|
+
export interface AppConfigEntryDefinition {
|
|
1885
|
+
name: string;
|
|
1886
|
+
value: ValueFromDefinition;
|
|
1887
|
+
}
|
|
1888
|
+
export interface AppConfigEntry extends AppConfigEntryDefinition {
|
|
1880
1889
|
/**
|
|
1881
1890
|
* An autogenerated ID.
|
|
1882
1891
|
*/
|
|
1883
|
-
id
|
|
1892
|
+
id: number;
|
|
1893
|
+
/**
|
|
1894
|
+
* The parsed value of the config entry.
|
|
1895
|
+
*/
|
|
1896
|
+
value: ValueFromProcess;
|
|
1897
|
+
}
|
|
1898
|
+
export type ServiceAuthenticationMethod = 'client-certificate' | 'client-credentials' | 'cookie' | 'custom-header' | 'http-basic' | 'query-parameter';
|
|
1899
|
+
export interface AppServiceSecretDefinition {
|
|
1884
1900
|
/**
|
|
1885
1901
|
* An optional name to give extra clarity what the secret is used for.
|
|
1886
1902
|
*/
|
|
@@ -1906,6 +1922,12 @@ export interface AppServiceSecret {
|
|
|
1906
1922
|
*/
|
|
1907
1923
|
tokenUrl?: string;
|
|
1908
1924
|
}
|
|
1925
|
+
export interface AppServiceSecret extends AppServiceSecretDefinition {
|
|
1926
|
+
/**
|
|
1927
|
+
* An autogenerated ID.
|
|
1928
|
+
*/
|
|
1929
|
+
id: number;
|
|
1930
|
+
}
|
|
1909
1931
|
export interface AppOAuth2Secret extends OAuth2Provider {
|
|
1910
1932
|
/**
|
|
1911
1933
|
* An autogenerated ID.
|