@appsemble/types 0.19.8 → 0.19.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/dist/index.d.ts +37 -2
- package/package.json +3 -3
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.
|
|
@@ -492,6 +504,12 @@ export interface EmailActionDefinition extends BaseActionDefinition<'email'> {
|
|
|
492
504
|
* The recipient of the email.
|
|
493
505
|
*/
|
|
494
506
|
to?: Remapper;
|
|
507
|
+
/**
|
|
508
|
+
* The name of the sender.
|
|
509
|
+
*
|
|
510
|
+
* The default value depends on the email server.
|
|
511
|
+
*/
|
|
512
|
+
from?: Remapper;
|
|
495
513
|
/**
|
|
496
514
|
* The recipients to CC the email to.
|
|
497
515
|
*/
|
|
@@ -551,11 +569,18 @@ export interface ShareActionDefinition extends BaseActionDefinition<'share'> {
|
|
|
551
569
|
*/
|
|
552
570
|
title?: Remapper;
|
|
553
571
|
}
|
|
572
|
+
declare type StorageType = 'indexedDB' | 'localStorage' | 'sessionStorage';
|
|
554
573
|
export interface StorageReadActionDefinition extends BaseActionDefinition<'storage.read'> {
|
|
555
574
|
/**
|
|
556
575
|
* The key of the entry to read from the app’s storage.
|
|
557
576
|
*/
|
|
558
577
|
key: Remapper;
|
|
578
|
+
/**
|
|
579
|
+
* The mechanism used to read the data from.
|
|
580
|
+
*
|
|
581
|
+
* @default 'indexedDB'
|
|
582
|
+
*/
|
|
583
|
+
storage?: StorageType;
|
|
559
584
|
}
|
|
560
585
|
export interface StorageWriteActionDefinition extends BaseActionDefinition<'storage.write'> {
|
|
561
586
|
/**
|
|
@@ -566,6 +591,12 @@ export interface StorageWriteActionDefinition extends BaseActionDefinition<'stor
|
|
|
566
591
|
* The data to write to the app’s storage.
|
|
567
592
|
*/
|
|
568
593
|
value: Remapper;
|
|
594
|
+
/**
|
|
595
|
+
* The mechanism used to read the data from.
|
|
596
|
+
*
|
|
597
|
+
* @default 'indexedDB'
|
|
598
|
+
*/
|
|
599
|
+
storage?: StorageType;
|
|
569
600
|
}
|
|
570
601
|
export interface UserLoginAction extends BaseActionDefinition<'user.login'> {
|
|
571
602
|
/**
|
|
@@ -710,7 +741,7 @@ export declare type MessageActionDefinition = BaseActionDefinition<'message'> &
|
|
|
710
741
|
*/
|
|
711
742
|
body: Remapper;
|
|
712
743
|
};
|
|
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;
|
|
744
|
+
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
745
|
export interface ActionType {
|
|
715
746
|
/**
|
|
716
747
|
* Whether or not app creators are required to define this action.
|
|
@@ -983,6 +1014,10 @@ export interface App {
|
|
|
983
1014
|
*/
|
|
984
1015
|
id?: number;
|
|
985
1016
|
domain?: string;
|
|
1017
|
+
/**
|
|
1018
|
+
* The name used for emails
|
|
1019
|
+
*/
|
|
1020
|
+
emailName?: string;
|
|
986
1021
|
/**
|
|
987
1022
|
* The id of the organization this app belongs to.
|
|
988
1023
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appsemble/types",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.12",
|
|
4
4
|
"description": "TypeScript definitions reused within Appsemble internally",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"app",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"test": "jest"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@appsemble/sdk": "0.19.
|
|
33
|
+
"@appsemble/sdk": "0.19.12",
|
|
34
34
|
"@fortawesome/fontawesome-common-types": "^0.2.0",
|
|
35
35
|
"jsonschema": "^1.0.0",
|
|
36
|
-
"openapi-types": "^
|
|
36
|
+
"openapi-types": "^10.0.0",
|
|
37
37
|
"type-fest": "^2.0.0"
|
|
38
38
|
}
|
|
39
39
|
}
|