@appsemble/types 0.19.8 → 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/index.d.ts +14 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -255,8 +255,10 @@ export interface Remappers {
|
|
|
255
255
|
static: any;
|
|
256
256
|
/**
|
|
257
257
|
* Get a property from an object.
|
|
258
|
+
*
|
|
259
|
+
* If the prop is an array, nested properties will be retrieved in sequence.
|
|
258
260
|
*/
|
|
259
|
-
prop: number | string;
|
|
261
|
+
prop: number[] | string[] | number | string;
|
|
260
262
|
/**
|
|
261
263
|
* Recursively strip all nullish values from an object or array.
|
|
262
264
|
*/
|
|
@@ -455,6 +457,16 @@ export interface BaseActionDefinition<T extends Action['type']> {
|
|
|
455
457
|
*/
|
|
456
458
|
onError?: ActionDefinition;
|
|
457
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
|
+
}
|
|
458
470
|
export interface ConditionActionDefinition extends BaseActionDefinition<'condition'> {
|
|
459
471
|
/**
|
|
460
472
|
* The condition to check for.
|
|
@@ -710,7 +722,7 @@ export declare type MessageActionDefinition = BaseActionDefinition<'message'> &
|
|
|
710
722
|
*/
|
|
711
723
|
body: Remapper;
|
|
712
724
|
};
|
|
713
|
-
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;
|
|
714
726
|
export interface ActionType {
|
|
715
727
|
/**
|
|
716
728
|
* Whether or not app creators are required to define this action.
|
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",
|