@appsemble/types 0.20.3 → 0.20.6
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 +58 -4
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -226,6 +226,44 @@ export interface Remappers {
|
|
|
226
226
|
* If the input is not an array, the input is returned without any modifications.
|
|
227
227
|
*/
|
|
228
228
|
'array.unique': Remapper;
|
|
229
|
+
/**
|
|
230
|
+
* Create an icalendar event.
|
|
231
|
+
*/
|
|
232
|
+
ics: {
|
|
233
|
+
/**
|
|
234
|
+
* The start of the icalendar event.
|
|
235
|
+
*/
|
|
236
|
+
start: Remapper;
|
|
237
|
+
/**
|
|
238
|
+
* The duration of the event.
|
|
239
|
+
*
|
|
240
|
+
* @example '1w 3d 10h 30m'
|
|
241
|
+
*/
|
|
242
|
+
duration: Remapper;
|
|
243
|
+
/**
|
|
244
|
+
* The title of the event.
|
|
245
|
+
*/
|
|
246
|
+
title: Remapper;
|
|
247
|
+
/**
|
|
248
|
+
* An optional description of the event.
|
|
249
|
+
*/
|
|
250
|
+
description?: Remapper;
|
|
251
|
+
/**
|
|
252
|
+
* An optional link to attach to the event.
|
|
253
|
+
*/
|
|
254
|
+
url?: Remapper;
|
|
255
|
+
/**
|
|
256
|
+
* An optional location description to attach to the event.
|
|
257
|
+
*/
|
|
258
|
+
location?: Remapper;
|
|
259
|
+
/**
|
|
260
|
+
* An optional geolocation description to attach to the event.
|
|
261
|
+
*
|
|
262
|
+
* This must be an object with the properties `lat` or `latitude`, and `lon`, `lng` or
|
|
263
|
+
* `longitude`.
|
|
264
|
+
*/
|
|
265
|
+
coordinates?: Remapper;
|
|
266
|
+
};
|
|
229
267
|
/**
|
|
230
268
|
* Checks if condition results in a truthy value.
|
|
231
269
|
*
|
|
@@ -449,7 +487,7 @@ export interface ResourceDefinition {
|
|
|
449
487
|
/**
|
|
450
488
|
* A time string representing when a resource should expire.
|
|
451
489
|
*
|
|
452
|
-
*
|
|
490
|
+
* @example '1d 8h 30m'
|
|
453
491
|
*/
|
|
454
492
|
expires?: string;
|
|
455
493
|
}
|
|
@@ -514,6 +552,12 @@ export interface DialogActionDefinition extends BaseActionDefinition<'dialog'> {
|
|
|
514
552
|
*/
|
|
515
553
|
title?: Remapper;
|
|
516
554
|
}
|
|
555
|
+
export interface DownloadActionDefinition extends BaseActionDefinition<'download'> {
|
|
556
|
+
/**
|
|
557
|
+
* The filename to download the file as. It must include a file extension.
|
|
558
|
+
*/
|
|
559
|
+
filename: string;
|
|
560
|
+
}
|
|
517
561
|
export interface EmailActionDefinition extends BaseActionDefinition<'email'> {
|
|
518
562
|
/**
|
|
519
563
|
* The recipient of the email.
|
|
@@ -542,9 +586,19 @@ export interface EmailActionDefinition extends BaseActionDefinition<'email'> {
|
|
|
542
586
|
*/
|
|
543
587
|
body: Remapper;
|
|
544
588
|
/**
|
|
545
|
-
* The attachments
|
|
589
|
+
* The attachments to include in the email.
|
|
590
|
+
*
|
|
591
|
+
* The remapper must resolve to an object containing the following properties:
|
|
592
|
+
*
|
|
593
|
+
* - \`target\`: The asset ID or link to download contents from to add as an attachment. This is
|
|
594
|
+
* mutually exclusive with \`content\`.
|
|
595
|
+
* - \`content\`: The raw content to include as the file content. This is mutually exclusive with
|
|
596
|
+
* \`target\`.
|
|
597
|
+
* - \`filename\`: The filename to include the attachment as.
|
|
598
|
+
* - \`accept\` If the target is a URL, this will be set as the HTTP \`Accept\` header when
|
|
599
|
+
* downloading the file.
|
|
546
600
|
*
|
|
547
|
-
*
|
|
601
|
+
* If the attachment is a string, it will be treated as the target.
|
|
548
602
|
*/
|
|
549
603
|
attachments?: Remapper;
|
|
550
604
|
}
|
|
@@ -766,7 +820,7 @@ export declare type MessageActionDefinition = BaseActionDefinition<'message'> &
|
|
|
766
820
|
*/
|
|
767
821
|
body: Remapper;
|
|
768
822
|
};
|
|
769
|
-
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 | TeamInviteActionDefinition | UserLoginAction | UserRegisterAction | UserUpdateAction;
|
|
823
|
+
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 | DownloadActionDefinition | EmailActionDefinition | EventActionDefinition | FlowToActionDefinition | LinkActionDefinition | LogActionDefinition | MessageActionDefinition | RequestActionDefinition | ResourceCountActionDefinition | ResourceCreateActionDefinition | ResourceDeleteActionDefinition | ResourceGetActionDefinition | ResourceQueryActionDefinition | ResourceSubscriptionStatusActionDefinition | ResourceSubscriptionSubscribeActionDefinition | ResourceSubscriptionToggleActionDefinition | ResourceSubscriptionUnsubscribeActionDefinition | ResourceUpdateActionDefinition | ShareActionDefinition | StaticActionDefinition | StorageReadActionDefinition | StorageWriteActionDefinition | TeamInviteActionDefinition | UserLoginAction | UserRegisterAction | UserUpdateAction;
|
|
770
824
|
export interface ActionType {
|
|
771
825
|
/**
|
|
772
826
|
* 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.20.
|
|
3
|
+
"version": "0.20.6",
|
|
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.20.
|
|
33
|
+
"@appsemble/sdk": "0.20.6",
|
|
34
34
|
"@fortawesome/fontawesome-common-types": "^6.0.0",
|
|
35
35
|
"jsonschema": "^1.0.0",
|
|
36
36
|
"openapi-types": "^10.0.0",
|