@appsemble/types 0.20.28 → 0.20.30
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 +4 -4
- package/index.d.ts +34 -1
- package/package.json +1 -1
- package/action.js.map +0 -1
- package/action.ts +0 -98
- package/app.js.map +0 -1
- package/app.ts +0 -39
- package/appMember.js.map +0 -1
- package/appMember.ts +0 -22
- package/asset.js.map +0 -1
- package/asset.ts +0 -31
- package/authentication.js.map +0 -1
- package/authentication.ts +0 -5
- package/author.js.map +0 -1
- package/author.ts +0 -14
- package/bulma.js.map +0 -1
- package/bulma.ts +0 -14
- package/changed/added/.gitkeep +0 -0
- package/changed/changed/.gitkeep +0 -0
- package/changed/deprecated/.gitkeep +0 -0
- package/changed/fixed/.gitkeep +0 -0
- package/changed/removed/.gitkeep +0 -0
- package/changed/security/.gitkeep +0 -0
- package/http.js.map +0 -1
- package/http.ts +0 -14
- package/index.js.map +0 -1
- package/index.ts +0 -2181
- package/jest.config.js +0 -3
- package/resource.js.map +0 -1
- package/resource.ts +0 -56
- package/saml.js.map +0 -1
- package/saml.ts +0 -3
- package/snapshot.js.map +0 -1
- package/snapshot.ts +0 -26
- package/ssl.js.map +0 -1
- package/ssl.ts +0 -15
- package/team.js.map +0 -1
- package/team.ts +0 -23
- package/template.js.map +0 -1
- package/template.ts +0 -33
- package/theme.js.map +0 -1
- package/theme.ts +0 -65
- package/tsconfig.json +0 -4
- package/user.js.map +0 -1
- package/user.ts +0 -66
package/jest.config.js
DELETED
package/resource.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resource.js","sourceRoot":"","sources":["resource.ts"],"names":[],"mappings":""}
|
package/resource.ts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
export interface Resource {
|
|
2
|
-
/**
|
|
3
|
-
* The unique ID of the resource
|
|
4
|
-
*/
|
|
5
|
-
id: number;
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* A boolean indicating whether or not the resource will be cloned with the app.
|
|
9
|
-
*
|
|
10
|
-
* This only applies to template apps.
|
|
11
|
-
*/
|
|
12
|
-
$clonable: boolean;
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* When the resource was first created as an ISO 8601 formatted string.
|
|
16
|
-
*/
|
|
17
|
-
$created: string;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* When the resource was last updated as an ISO 8601 formatted string.
|
|
21
|
-
*/
|
|
22
|
-
$updated: string;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* The user who initially created the resource.
|
|
26
|
-
*/
|
|
27
|
-
$author?: ResourceAuthor;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* The user who last updated the resource.
|
|
31
|
-
*/
|
|
32
|
-
$editor?: ResourceAuthor;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Any non-reserved properties are allowed on the resource as defined in the app definition.
|
|
36
|
-
*/
|
|
37
|
-
[key: string]: unknown;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface ResourceAuthor {
|
|
41
|
-
/**
|
|
42
|
-
* The user ID of the author.
|
|
43
|
-
*/
|
|
44
|
-
id: string;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* The display name of the user.
|
|
48
|
-
*/
|
|
49
|
-
name: string;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export interface ResourceVersion {
|
|
53
|
-
created: string;
|
|
54
|
-
data: Record<string, unknown>;
|
|
55
|
-
author: ResourceAuthor;
|
|
56
|
-
}
|
package/saml.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"saml.js","sourceRoot":"","sources":["saml.ts"],"names":[],"mappings":""}
|
package/saml.ts
DELETED
package/snapshot.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot.js","sourceRoot":"","sources":["snapshot.ts"],"names":[],"mappings":""}
|
package/snapshot.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Author } from './author.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* A snapshot of an app.
|
|
5
|
-
*/
|
|
6
|
-
export interface Snapshot {
|
|
7
|
-
/**
|
|
8
|
-
* The unique id of the snapshot.
|
|
9
|
-
*/
|
|
10
|
-
id: number;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* When the snapshot was created.
|
|
14
|
-
*/
|
|
15
|
-
$created: Date | string;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* The snapshot author.
|
|
19
|
-
*/
|
|
20
|
-
$author: Author;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* The app definition code represented by this snapshot.
|
|
24
|
-
*/
|
|
25
|
-
yaml?: string;
|
|
26
|
-
}
|
package/ssl.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ssl.js","sourceRoot":"","sources":["ssl.ts"],"names":[],"mappings":""}
|
package/ssl.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The type of the SSL status.
|
|
3
|
-
*
|
|
4
|
-
* - `error` means there was an error getting an SSL certificate.
|
|
5
|
-
* - `missing` means the domain name is unknown to the server.
|
|
6
|
-
* - `pending` means the SSL certificate is still being processed.
|
|
7
|
-
* - `ready` means the SSL certificate is ready to serve.
|
|
8
|
-
* - `unknown` means the status is unknown, probably due to an unexpected state.
|
|
9
|
-
*/
|
|
10
|
-
export type SSLStatus = 'error' | 'missing' | 'pending' | 'ready' | 'unknown';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* A mapping of domain names to an SSL certificate status.
|
|
14
|
-
*/
|
|
15
|
-
export type SSLStatusMap = Record<string, SSLStatus>;
|
package/team.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"team.js","sourceRoot":"","sources":["team.ts"],"names":[],"mappings":""}
|
package/team.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents a team within an organization.
|
|
3
|
-
*/
|
|
4
|
-
export interface Team {
|
|
5
|
-
/**
|
|
6
|
-
* The ID of the team.
|
|
7
|
-
*/
|
|
8
|
-
id: number;
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* The display name of the team.
|
|
12
|
-
*/
|
|
13
|
-
name: string;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Custom annotations for the team.
|
|
17
|
-
*/
|
|
18
|
-
annotations?: Record<string, string>;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface TeamMember extends Team {
|
|
22
|
-
role: 'manager' | 'member';
|
|
23
|
-
}
|
package/template.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"template.js","sourceRoot":"","sources":["template.ts"],"names":[],"mappings":""}
|
package/template.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { AppVisibility } from './app.js';
|
|
2
|
-
|
|
3
|
-
export interface Template {
|
|
4
|
-
/**
|
|
5
|
-
* The id of the app to clone.
|
|
6
|
-
*/
|
|
7
|
-
templateId: number;
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* The app name to use for the newly created clone.
|
|
11
|
-
*/
|
|
12
|
-
name: string;
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* The app description to use for the newly created clone.
|
|
16
|
-
*/
|
|
17
|
-
description: string;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* The organization the app should be cloned into.
|
|
21
|
-
*/
|
|
22
|
-
organizationId: string;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Whether or not the cloned app may be listed in the app store.
|
|
26
|
-
*/
|
|
27
|
-
visibility: AppVisibility;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Whether or not clonable resources should be cloned from the template app.
|
|
31
|
-
*/
|
|
32
|
-
resources: boolean;
|
|
33
|
-
}
|
package/theme.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","sourceRoot":"","sources":["theme.ts"],"names":[],"mappings":""}
|
package/theme.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
export interface FontDefinition {
|
|
2
|
-
/**
|
|
3
|
-
* Where to load a font from.
|
|
4
|
-
*/
|
|
5
|
-
source?: 'custom' | 'google';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* The name of the font family.
|
|
9
|
-
*
|
|
10
|
-
* This will be referenced in the Bulma CSS.
|
|
11
|
-
*/
|
|
12
|
-
family: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface Theme {
|
|
16
|
-
/**
|
|
17
|
-
* The color primarily featured in the color scheme.
|
|
18
|
-
*/
|
|
19
|
-
primaryColor: string;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* The color used for links.
|
|
23
|
-
*/
|
|
24
|
-
linkColor: string;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* The color used to feature successful or positive actions.
|
|
28
|
-
*/
|
|
29
|
-
successColor: string;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* The color used to indicate information.
|
|
33
|
-
*/
|
|
34
|
-
infoColor: string;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* The color used for elements that require extra attention.
|
|
38
|
-
*/
|
|
39
|
-
warningColor: string;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* The color used for elements that demand caution for destructive actions.
|
|
43
|
-
*/
|
|
44
|
-
dangerColor: string;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* The color used in the foreground of the splash screen.
|
|
48
|
-
*/
|
|
49
|
-
themeColor: string;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* The color used in the background of the splash screen.
|
|
53
|
-
*/
|
|
54
|
-
splashColor: string;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* The link to the tile layer used for Leaflet maps.
|
|
58
|
-
*/
|
|
59
|
-
tileLayer: string;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* The name of a font available on Google fonts.
|
|
63
|
-
*/
|
|
64
|
-
font: FontDefinition;
|
|
65
|
-
}
|
package/tsconfig.json
DELETED
package/user.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["user.ts"],"names":[],"mappings":""}
|
package/user.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A user email registration.
|
|
3
|
-
*/
|
|
4
|
-
export interface UserEmail {
|
|
5
|
-
/**
|
|
6
|
-
* The registered email address
|
|
7
|
-
*/
|
|
8
|
-
email: string;
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Wether or not the email address has been verified.
|
|
12
|
-
*/
|
|
13
|
-
verified: boolean;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Whether or not this is the user’s primary email address.
|
|
17
|
-
*/
|
|
18
|
-
primary?: boolean;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* A user as they are represented by the API.
|
|
23
|
-
*/
|
|
24
|
-
export interface User {
|
|
25
|
-
/**
|
|
26
|
-
* A list of email addresses that belong to the user.
|
|
27
|
-
*/
|
|
28
|
-
emails: UserEmail[];
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* OAuth2 client credentials as they are returned by the API.
|
|
33
|
-
*/
|
|
34
|
-
export interface OAuth2ClientCredentials {
|
|
35
|
-
/**
|
|
36
|
-
* When the client credentials were created.
|
|
37
|
-
*/
|
|
38
|
-
$created?: string;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* The autogenerated `client_id` of the client credentials.
|
|
42
|
-
*/
|
|
43
|
-
id: string;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* The autogenerated `client_secret` of the client credentials.
|
|
47
|
-
*
|
|
48
|
-
* This is only available upon creation.
|
|
49
|
-
*/
|
|
50
|
-
secret?: string;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* A human readable description of the client description.
|
|
54
|
-
*/
|
|
55
|
-
description: string;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* The expiration date of the client credentials.
|
|
59
|
-
*/
|
|
60
|
-
expires?: string;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* The OAuth2 scopes these client credentials have been granted.
|
|
64
|
-
*/
|
|
65
|
-
scopes: string[];
|
|
66
|
-
}
|