@appsemble/types 0.19.5 → 0.19.9
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/dist/app.d.ts +11 -0
- package/dist/app.js +2 -0
- package/dist/app.js.map +1 -0
- package/dist/index.d.ts +34 -4
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/template.d.ts +3 -2
- package/package.json +2 -2
package/dist/app.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The app visibility of the app in the Appsemble app store.
|
|
3
|
+
*
|
|
4
|
+
* This doesn’t affect whether or not the app can be accessed on its own domain.
|
|
5
|
+
*
|
|
6
|
+
* - **public**: The app is publicly listed in the Appsemble app store.
|
|
7
|
+
* - **unlisted**: The app store page can be accessed, but the app isn’t listed publicly in the
|
|
8
|
+
* Appsemble app store.
|
|
9
|
+
* - **private**: The app is only visible to people who are part of the organization.
|
|
10
|
+
*/
|
|
11
|
+
export declare type AppVisibility = 'private' | 'public' | 'unlisted';
|
package/dist/app.js
ADDED
package/dist/app.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.js","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import { IconName } from '@fortawesome/fontawesome-common-types';
|
|
|
3
3
|
import { Schema } from 'jsonschema';
|
|
4
4
|
import { OpenAPIV3 } from 'openapi-types';
|
|
5
5
|
import { JsonObject, RequireExactlyOne } from 'type-fest';
|
|
6
|
+
import { AppVisibility } from './app';
|
|
7
|
+
export * from './app';
|
|
6
8
|
export * from './appMember';
|
|
7
9
|
export * from './asset';
|
|
8
10
|
export * from './authentication';
|
|
@@ -253,8 +255,10 @@ export interface Remappers {
|
|
|
253
255
|
static: any;
|
|
254
256
|
/**
|
|
255
257
|
* Get a property from an object.
|
|
258
|
+
*
|
|
259
|
+
* If the prop is an array, nested properties will be retrieved in sequence.
|
|
256
260
|
*/
|
|
257
|
-
prop: number | string;
|
|
261
|
+
prop: number[] | string[] | number | string;
|
|
258
262
|
/**
|
|
259
263
|
* Recursively strip all nullish values from an object or array.
|
|
260
264
|
*/
|
|
@@ -453,6 +457,16 @@ export interface BaseActionDefinition<T extends Action['type']> {
|
|
|
453
457
|
*/
|
|
454
458
|
onError?: ActionDefinition;
|
|
455
459
|
}
|
|
460
|
+
export interface AnalyticsAction extends BaseActionDefinition<'analytics'> {
|
|
461
|
+
/**
|
|
462
|
+
* The analytics event target name.
|
|
463
|
+
*/
|
|
464
|
+
target: string;
|
|
465
|
+
/**
|
|
466
|
+
* Additional config to pass to analytics.
|
|
467
|
+
*/
|
|
468
|
+
config?: Remapper;
|
|
469
|
+
}
|
|
456
470
|
export interface ConditionActionDefinition extends BaseActionDefinition<'condition'> {
|
|
457
471
|
/**
|
|
458
472
|
* The condition to check for.
|
|
@@ -708,7 +722,7 @@ export declare type MessageActionDefinition = BaseActionDefinition<'message'> &
|
|
|
708
722
|
*/
|
|
709
723
|
body: Remapper;
|
|
710
724
|
};
|
|
711
|
-
export declare type ActionDefinition = BaseActionDefinition<'dialog.error'> | BaseActionDefinition<'dialog.ok'> | BaseActionDefinition<'flow.back'> | BaseActionDefinition<'flow.cancel'> | BaseActionDefinition<'flow.finish'> | BaseActionDefinition<'flow.next'> | BaseActionDefinition<'link.back'> | BaseActionDefinition<'link.next'> | BaseActionDefinition<'noop'> | BaseActionDefinition<'team.join'> | BaseActionDefinition<'team.list'> | BaseActionDefinition<'throw'> | ConditionActionDefinition | DialogActionDefinition | EmailActionDefinition | EventActionDefinition | FlowToActionDefinition | LinkActionDefinition | LogActionDefinition | MessageActionDefinition | RequestActionDefinition | ResourceCountActionDefinition | ResourceCreateActionDefinition | ResourceDeleteActionDefinition | ResourceGetActionDefinition | ResourceQueryActionDefinition | ResourceSubscriptionStatusActionDefinition | ResourceSubscriptionSubscribeActionDefinition | ResourceSubscriptionToggleActionDefinition | ResourceSubscriptionUnsubscribeActionDefinition | ResourceUpdateActionDefinition | ShareActionDefinition | StaticActionDefinition | StorageReadActionDefinition | StorageWriteActionDefinition | UserLoginAction | UserRegisterAction | UserUpdateAction;
|
|
725
|
+
export declare type ActionDefinition = AnalyticsAction | BaseActionDefinition<'dialog.error'> | BaseActionDefinition<'dialog.ok'> | BaseActionDefinition<'flow.back'> | BaseActionDefinition<'flow.cancel'> | BaseActionDefinition<'flow.finish'> | BaseActionDefinition<'flow.next'> | BaseActionDefinition<'link.back'> | BaseActionDefinition<'link.next'> | BaseActionDefinition<'noop'> | BaseActionDefinition<'team.join'> | BaseActionDefinition<'team.list'> | BaseActionDefinition<'throw'> | ConditionActionDefinition | DialogActionDefinition | EmailActionDefinition | EventActionDefinition | FlowToActionDefinition | LinkActionDefinition | LogActionDefinition | MessageActionDefinition | RequestActionDefinition | ResourceCountActionDefinition | ResourceCreateActionDefinition | ResourceDeleteActionDefinition | ResourceGetActionDefinition | ResourceQueryActionDefinition | ResourceSubscriptionStatusActionDefinition | ResourceSubscriptionSubscribeActionDefinition | ResourceSubscriptionToggleActionDefinition | ResourceSubscriptionUnsubscribeActionDefinition | ResourceUpdateActionDefinition | ShareActionDefinition | StaticActionDefinition | StorageReadActionDefinition | StorageWriteActionDefinition | UserLoginAction | UserRegisterAction | UserUpdateAction;
|
|
712
726
|
export interface ActionType {
|
|
713
727
|
/**
|
|
714
728
|
* Whether or not app creators are required to define this action.
|
|
@@ -998,9 +1012,17 @@ export interface App {
|
|
|
998
1012
|
*/
|
|
999
1013
|
path: string;
|
|
1000
1014
|
/**
|
|
1001
|
-
*
|
|
1015
|
+
* Visibility of the app in the public app store.
|
|
1016
|
+
*/
|
|
1017
|
+
visibility: AppVisibility;
|
|
1018
|
+
/**
|
|
1019
|
+
* Whether or not the app definition is exposed for display in Appsemble Studio.
|
|
1020
|
+
*/
|
|
1021
|
+
showAppDefinition: boolean;
|
|
1022
|
+
/**
|
|
1023
|
+
* The Google analytics ID of the app.
|
|
1002
1024
|
*/
|
|
1003
|
-
|
|
1025
|
+
googleAnalyticsID?: string;
|
|
1004
1026
|
/**
|
|
1005
1027
|
* Whether the app is currently locked.
|
|
1006
1028
|
*/
|
|
@@ -1013,6 +1035,14 @@ export interface App {
|
|
|
1013
1035
|
* Whether the Appsemble OAuth2 login method should be shown.
|
|
1014
1036
|
*/
|
|
1015
1037
|
showAppsembleOAuth2Login: boolean;
|
|
1038
|
+
/**
|
|
1039
|
+
* The Sentry DSN of the app.
|
|
1040
|
+
*/
|
|
1041
|
+
sentryDsn: string;
|
|
1042
|
+
/**
|
|
1043
|
+
* The Sentry environment associated with the Sentry DSN.
|
|
1044
|
+
*/
|
|
1045
|
+
sentryEnvironment: string;
|
|
1016
1046
|
/**
|
|
1017
1047
|
* The app definition.
|
|
1018
1048
|
*/
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC"}
|
package/dist/template.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AppVisibility } from './app';
|
|
1
2
|
export interface Template {
|
|
2
3
|
/**
|
|
3
4
|
* The id of the app to clone.
|
|
@@ -16,9 +17,9 @@ export interface Template {
|
|
|
16
17
|
*/
|
|
17
18
|
organizationId: string;
|
|
18
19
|
/**
|
|
19
|
-
* Whether or not the cloned app
|
|
20
|
+
* Whether or not the cloned app may be listed in the app store.
|
|
20
21
|
*/
|
|
21
|
-
|
|
22
|
+
visibility: AppVisibility;
|
|
22
23
|
/**
|
|
23
24
|
* Whether or not clonable resources should be cloned from the template app.
|
|
24
25
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appsemble/types",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.9",
|
|
4
4
|
"description": "TypeScript definitions reused within Appsemble internally",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"app",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"test": "jest"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@appsemble/sdk": "0.19.
|
|
33
|
+
"@appsemble/sdk": "0.19.9",
|
|
34
34
|
"@fortawesome/fontawesome-common-types": "^0.2.0",
|
|
35
35
|
"jsonschema": "^1.0.0",
|
|
36
36
|
"openapi-types": "^9.0.0",
|