@appsemble/lang-sdk 0.33.7
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/BasicValidator.d.ts +56 -0
- package/BasicValidator.js +174 -0
- package/LICENSE.md +126 -0
- package/README.md +119 -0
- package/allActions.d.ts +1 -0
- package/allActions.js +11 -0
- package/appMembers.d.ts +1 -0
- package/appMembers.js +9 -0
- package/authorization.d.ts +10 -0
- package/authorization.js +147 -0
- package/blockUtils.d.ts +31 -0
- package/blockUtils.js +65 -0
- package/constants/baseTheme.d.ts +2 -0
- package/constants/baseTheme.js +16 -0
- package/constants/fonts.d.ts +6 -0
- package/constants/fonts.js +1607 -0
- package/constants/index.d.ts +4 -0
- package/constants/index.js +5 -0
- package/constants/locale.d.ts +4 -0
- package/constants/locale.js +5 -0
- package/constants/patterns.d.ts +41 -0
- package/constants/patterns.js +42 -0
- package/examples.d.ts +23 -0
- package/examples.js +975 -0
- package/findPageByName.d.ts +2 -0
- package/findPageByName.js +15 -0
- package/ics.d.ts +3 -0
- package/ics.js +41 -0
- package/index.d.ts +18 -0
- package/index.js +19 -0
- package/iterApp.d.ts +64 -0
- package/iterApp.js +150 -0
- package/jsonPointer.d.ts +18 -0
- package/jsonPointer.js +24 -0
- package/jsonschema.d.ts +54 -0
- package/jsonschema.js +185 -0
- package/mapValues.d.ts +1 -0
- package/mapValues.js +8 -0
- package/miscellaneous.d.ts +38 -0
- package/miscellaneous.js +66 -0
- package/noop.d.ts +4 -0
- package/noop.js +6 -0
- package/normalize.d.ts +13 -0
- package/normalize.js +24 -0
- package/package.json +66 -0
- package/reference-schemas/actions/appMember.d.ts +2 -0
- package/reference-schemas/actions/appMember.js +21 -0
- package/reference-schemas/actions/flow.d.ts +2 -0
- package/reference-schemas/actions/flow.js +13 -0
- package/reference-schemas/actions/group.d.ts +2 -0
- package/reference-schemas/actions/group.js +13 -0
- package/reference-schemas/actions/index.d.ts +7 -0
- package/reference-schemas/actions/index.js +8 -0
- package/reference-schemas/actions/link.d.ts +2 -0
- package/reference-schemas/actions/link.js +9 -0
- package/reference-schemas/actions/miscellaneous.d.ts +2 -0
- package/reference-schemas/actions/miscellaneous.js +43 -0
- package/reference-schemas/actions/resources.d.ts +2 -0
- package/reference-schemas/actions/resources.js +19 -0
- package/reference-schemas/actions/storage.d.ts +2 -0
- package/reference-schemas/actions/storage.js +15 -0
- package/reference-schemas/index.d.ts +2 -0
- package/reference-schemas/index.js +3 -0
- package/reference-schemas/remappers/arrays.d.ts +2 -0
- package/reference-schemas/remappers/arrays.js +297 -0
- package/reference-schemas/remappers/conditionals.d.ts +2 -0
- package/reference-schemas/remappers/conditionals.js +167 -0
- package/reference-schemas/remappers/config.d.ts +2 -0
- package/reference-schemas/remappers/config.js +13 -0
- package/reference-schemas/remappers/data.d.ts +2 -0
- package/reference-schemas/remappers/data.js +394 -0
- package/reference-schemas/remappers/dates.d.ts +2 -0
- package/reference-schemas/remappers/dates.js +94 -0
- package/reference-schemas/remappers/history.d.ts +2 -0
- package/reference-schemas/remappers/history.js +246 -0
- package/reference-schemas/remappers/index.d.ts +12 -0
- package/reference-schemas/remappers/index.js +13 -0
- package/reference-schemas/remappers/numbers.d.ts +2 -0
- package/reference-schemas/remappers/numbers.js +30 -0
- package/reference-schemas/remappers/objects.d.ts +2 -0
- package/reference-schemas/remappers/objects.js +127 -0
- package/reference-schemas/remappers/odata.d.ts +2 -0
- package/reference-schemas/remappers/odata.js +95 -0
- package/reference-schemas/remappers/randoms.d.ts +2 -0
- package/reference-schemas/remappers/randoms.js +82 -0
- package/reference-schemas/remappers/strings.d.ts +2 -0
- package/reference-schemas/remappers/strings.js +93 -0
- package/reference-schemas/remappers/unsorted.d.ts +2 -0
- package/reference-schemas/remappers/unsorted.js +276 -0
- package/remap.d.ts +75 -0
- package/remap.js +691 -0
- package/schemas/AppDefinition.d.ts +2 -0
- package/schemas/AppDefinition.js +126 -0
- package/schemas/AppLayoutDefinition.d.ts +2 -0
- package/schemas/AppLayoutDefinition.js +59 -0
- package/schemas/AppMemberPropertyDefinition.d.ts +2 -0
- package/schemas/AppMemberPropertyDefinition.js +49 -0
- package/schemas/AppMembersDefinition.d.ts +2 -0
- package/schemas/AppMembersDefinition.js +17 -0
- package/schemas/ArrayRemapperDefinition.d.ts +2 -0
- package/schemas/ArrayRemapperDefinition.js +22 -0
- package/schemas/BasePageDefinition.d.ts +2 -0
- package/schemas/BasePageDefinition.js +92 -0
- package/schemas/BlockDefinition.d.ts +2 -0
- package/schemas/BlockDefinition.js +94 -0
- package/schemas/ContainerDefinition.d.ts +2 -0
- package/schemas/ContainerDefinition.js +52 -0
- package/schemas/ContainerPageDefinition.d.ts +1 -0
- package/schemas/ContainerPageDefinition.js +56 -0
- package/schemas/ControllerDefinition.d.ts +2 -0
- package/schemas/ControllerDefinition.js +17 -0
- package/schemas/CronDefinition.d.ts +2 -0
- package/schemas/CronDefinition.js +20 -0
- package/schemas/CustomFontDefinition.d.ts +2 -0
- package/schemas/CustomFontDefinition.js +20 -0
- package/schemas/EventsDefinition.d.ts +2 -0
- package/schemas/EventsDefinition.js +29 -0
- package/schemas/FilterParametersDefinition.d.ts +2 -0
- package/schemas/FilterParametersDefinition.js +15 -0
- package/schemas/FlowPageActionsDefinition.d.ts +2 -0
- package/schemas/FlowPageActionsDefinition.js +23 -0
- package/schemas/FlowPageDefinition.d.ts +1 -0
- package/schemas/FlowPageDefinition.js +37 -0
- package/schemas/GoogleFontDefinition.d.ts +2 -0
- package/schemas/GoogleFontDefinition.js +22 -0
- package/schemas/LoopPageActionsDefinition.d.ts +2 -0
- package/schemas/LoopPageActionsDefinition.js +24 -0
- package/schemas/LoopPageDefinition.d.ts +1 -0
- package/schemas/LoopPageDefinition.js +32 -0
- package/schemas/NotificationHookDataDefinition.d.ts +2 -0
- package/schemas/NotificationHookDataDefinition.js +24 -0
- package/schemas/NotificationHookDefinition.d.ts +2 -0
- package/schemas/NotificationHookDefinition.js +32 -0
- package/schemas/ObjectRemapperDefinition.d.ts +2 -0
- package/schemas/ObjectRemapperDefinition.js +17 -0
- package/schemas/PageActionsDefinition.d.ts +2 -0
- package/schemas/PageActionsDefinition.js +12 -0
- package/schemas/PageDefinition.d.ts +1 -0
- package/schemas/PageDefinition.js +26 -0
- package/schemas/RemapperDefinition.d.ts +2 -0
- package/schemas/RemapperDefinition.js +27 -0
- package/schemas/ResourceDefinition.d.ts +2 -0
- package/schemas/ResourceDefinition.js +263 -0
- package/schemas/ResourceHistoryDefinition.d.ts +2 -0
- package/schemas/ResourceHistoryDefinition.js +14 -0
- package/schemas/ResourceHooksDefinition.d.ts +2 -0
- package/schemas/ResourceHooksDefinition.js +10 -0
- package/schemas/ResourceViewDefinition.d.ts +2 -0
- package/schemas/ResourceViewDefinition.js +24 -0
- package/schemas/SecurityCronDefinition.d.ts +2 -0
- package/schemas/SecurityCronDefinition.js +26 -0
- package/schemas/SecurityDefaultDefinition.d.ts +2 -0
- package/schemas/SecurityDefaultDefinition.js +34 -0
- package/schemas/SecurityDefinition.d.ts +2 -0
- package/schemas/SecurityDefinition.js +17 -0
- package/schemas/SecurityGuestDefinition.d.ts +2 -0
- package/schemas/SecurityGuestDefinition.js +26 -0
- package/schemas/SecurityRoleDefinition.d.ts +2 -0
- package/schemas/SecurityRoleDefinition.js +35 -0
- package/schemas/SubPage.d.ts +2 -0
- package/schemas/SubPage.js +36 -0
- package/schemas/TabsPageDefinition.d.ts +1 -0
- package/schemas/TabsPageDefinition.js +46 -0
- package/schemas/Theme.d.ts +2 -0
- package/schemas/Theme.js +81 -0
- package/schemas/WebhookDefinition.d.ts +2 -0
- package/schemas/WebhookDefinition.js +17 -0
- package/schemas/actions/ActionDefinition.d.ts +2 -0
- package/schemas/actions/ActionDefinition.js +95 -0
- package/schemas/actions/AnalyticsActionDefinition.d.ts +1 -0
- package/schemas/actions/AnalyticsActionDefinition.js +25 -0
- package/schemas/actions/AppMemberCurrentPatchActionDefinition.d.ts +1 -0
- package/schemas/actions/AppMemberCurrentPatchActionDefinition.js +30 -0
- package/schemas/actions/AppMemberDeleteActionDefinition.d.ts +1 -0
- package/schemas/actions/AppMemberDeleteActionDefinition.js +20 -0
- package/schemas/actions/AppMemberInviteActionDefinition.d.ts +1 -0
- package/schemas/actions/AppMemberInviteActionDefinition.js +24 -0
- package/schemas/actions/AppMemberLoginActionDefinition.d.ts +1 -0
- package/schemas/actions/AppMemberLoginActionDefinition.js +24 -0
- package/schemas/actions/AppMemberLogoutActionDefinition.d.ts +1 -0
- package/schemas/actions/AppMemberLogoutActionDefinition.js +14 -0
- package/schemas/actions/AppMemberPropertiesPatchActionDefinition.d.ts +1 -0
- package/schemas/actions/AppMemberPropertiesPatchActionDefinition.js +26 -0
- package/schemas/actions/AppMemberQueryActionDefinition.d.ts +1 -0
- package/schemas/actions/AppMemberQueryActionDefinition.js +24 -0
- package/schemas/actions/AppMemberRegisterActionDefinition.d.ts +1 -0
- package/schemas/actions/AppMemberRegisterActionDefinition.js +43 -0
- package/schemas/actions/AppMemberRoleUpdateActionDefinition.d.ts +1 -0
- package/schemas/actions/AppMemberRoleUpdateActionDefinition.js +27 -0
- package/schemas/actions/BaseActionDefinition.d.ts +2 -0
- package/schemas/actions/BaseActionDefinition.js +10 -0
- package/schemas/actions/ConditionActionDefinition.d.ts +1 -0
- package/schemas/actions/ConditionActionDefinition.js +30 -0
- package/schemas/actions/ControllerActionDefinition.d.ts +1 -0
- package/schemas/actions/ControllerActionDefinition.js +18 -0
- package/schemas/actions/CsvParseActionDefinition.d.ts +1 -0
- package/schemas/actions/CsvParseActionDefinition.js +22 -0
- package/schemas/actions/DialogActionDefinition.d.ts +1 -0
- package/schemas/actions/DialogActionDefinition.js +40 -0
- package/schemas/actions/DialogErrorActionDefinition.d.ts +1 -0
- package/schemas/actions/DialogErrorActionDefinition.js +17 -0
- package/schemas/actions/DialogOkActionDefinition.d.ts +1 -0
- package/schemas/actions/DialogOkActionDefinition.js +17 -0
- package/schemas/actions/DownloadActionDefinition.d.ts +1 -0
- package/schemas/actions/DownloadActionDefinition.js +19 -0
- package/schemas/actions/EachActionDefinition.d.ts +1 -0
- package/schemas/actions/EachActionDefinition.js +26 -0
- package/schemas/actions/EmailActionDefinition.d.ts +1 -0
- package/schemas/actions/EmailActionDefinition.js +54 -0
- package/schemas/actions/EventActionDefinition.d.ts +1 -0
- package/schemas/actions/EventActionDefinition.js +27 -0
- package/schemas/actions/FlowBackActionDefinition.d.ts +1 -0
- package/schemas/actions/FlowBackActionDefinition.js +16 -0
- package/schemas/actions/FlowCancelActionDefinition.d.ts +1 -0
- package/schemas/actions/FlowCancelActionDefinition.js +14 -0
- package/schemas/actions/FlowFinishActionDefinition.d.ts +1 -0
- package/schemas/actions/FlowFinishActionDefinition.js +16 -0
- package/schemas/actions/FlowNextActionDefinition.d.ts +1 -0
- package/schemas/actions/FlowNextActionDefinition.js +17 -0
- package/schemas/actions/FlowToActionDefinition.d.ts +1 -0
- package/schemas/actions/FlowToActionDefinition.js +21 -0
- package/schemas/actions/GroupMemberDeleteActionDefinition.d.ts +1 -0
- package/schemas/actions/GroupMemberDeleteActionDefinition.js +18 -0
- package/schemas/actions/GroupMemberInviteActionDefinition.d.ts +1 -0
- package/schemas/actions/GroupMemberInviteActionDefinition.js +26 -0
- package/schemas/actions/GroupMemberQueryActionDefinition.d.ts +1 -0
- package/schemas/actions/GroupMemberQueryActionDefinition.js +18 -0
- package/schemas/actions/GroupMemberRoleUpdateActionDefinition.d.ts +1 -0
- package/schemas/actions/GroupMemberRoleUpdateActionDefinition.js +22 -0
- package/schemas/actions/GroupQueryActionDefinition.d.ts +1 -0
- package/schemas/actions/GroupQueryActionDefinition.js +14 -0
- package/schemas/actions/LinkActionDefinition.d.ts +1 -0
- package/schemas/actions/LinkActionDefinition.js +29 -0
- package/schemas/actions/LinkBackActionDefinition.d.ts +1 -0
- package/schemas/actions/LinkBackActionDefinition.js +14 -0
- package/schemas/actions/LinkNextActionDefinition.d.ts +1 -0
- package/schemas/actions/LinkNextActionDefinition.js +14 -0
- package/schemas/actions/LogActionDefinition.d.ts +1 -0
- package/schemas/actions/LogActionDefinition.js +22 -0
- package/schemas/actions/MatchActionDefinition.d.ts +1 -0
- package/schemas/actions/MatchActionDefinition.js +35 -0
- package/schemas/actions/MessageActionDefinition.d.ts +1 -0
- package/schemas/actions/MessageActionDefinition.js +40 -0
- package/schemas/actions/NoopActionDefinition.d.ts +1 -0
- package/schemas/actions/NoopActionDefinition.js +17 -0
- package/schemas/actions/NotifyActionDefinition.d.ts +1 -0
- package/schemas/actions/NotifyActionDefinition.js +32 -0
- package/schemas/actions/RequestActionDefinition.d.ts +1 -0
- package/schemas/actions/RequestActionDefinition.js +75 -0
- package/schemas/actions/ResourceCountActionDefinition.d.ts +1 -0
- package/schemas/actions/ResourceCountActionDefinition.js +22 -0
- package/schemas/actions/ResourceCreateActionDefinition.d.ts +1 -0
- package/schemas/actions/ResourceCreateActionDefinition.js +18 -0
- package/schemas/actions/ResourceDeleteActionDefinition.d.ts +1 -0
- package/schemas/actions/ResourceDeleteActionDefinition.js +18 -0
- package/schemas/actions/ResourceDeleteAllActionDefinition.d.ts +1 -0
- package/schemas/actions/ResourceDeleteAllActionDefinition.js +21 -0
- package/schemas/actions/ResourceDeleteBulkActionDefinition.d.ts +1 -0
- package/schemas/actions/ResourceDeleteBulkActionDefinition.js +18 -0
- package/schemas/actions/ResourceGetActionDefinition.d.ts +1 -0
- package/schemas/actions/ResourceGetActionDefinition.js +25 -0
- package/schemas/actions/ResourceHistoryGetActionDefinition.d.ts +1 -0
- package/schemas/actions/ResourceHistoryGetActionDefinition.js +18 -0
- package/schemas/actions/ResourcePatchActionDefinition.d.ts +1 -0
- package/schemas/actions/ResourcePatchActionDefinition.js +21 -0
- package/schemas/actions/ResourceQueryActionDefinition.d.ts +1 -0
- package/schemas/actions/ResourceQueryActionDefinition.js +26 -0
- package/schemas/actions/ResourceSubscriptionStatusActionDefinition.d.ts +1 -0
- package/schemas/actions/ResourceSubscriptionStatusActionDefinition.js +23 -0
- package/schemas/actions/ResourceSubscriptionSubscribeActionDefinition.d.ts +1 -0
- package/schemas/actions/ResourceSubscriptionSubscribeActionDefinition.js +23 -0
- package/schemas/actions/ResourceSubscriptionToggleActionDefinition.d.ts +1 -0
- package/schemas/actions/ResourceSubscriptionToggleActionDefinition.js +23 -0
- package/schemas/actions/ResourceSubscriptionUnsubscribeActionDefinition.d.ts +1 -0
- package/schemas/actions/ResourceSubscriptionUnsubscribeActionDefinition.js +23 -0
- package/schemas/actions/ResourceUpdateActionDefinition.d.ts +1 -0
- package/schemas/actions/ResourceUpdateActionDefinition.js +18 -0
- package/schemas/actions/ResourceUpdatePositionsActionDefinition.d.ts +1 -0
- package/schemas/actions/ResourceUpdatePositionsActionDefinition.js +21 -0
- package/schemas/actions/ShareActionDefinition.d.ts +1 -0
- package/schemas/actions/ShareActionDefinition.js +30 -0
- package/schemas/actions/StaticActionDefinition.d.ts +1 -0
- package/schemas/actions/StaticActionDefinition.js +20 -0
- package/schemas/actions/StorageAppendActionDefinition.d.ts +1 -0
- package/schemas/actions/StorageAppendActionDefinition.js +43 -0
- package/schemas/actions/StorageDeleteActionDefinition.d.ts +1 -0
- package/schemas/actions/StorageDeleteActionDefinition.js +31 -0
- package/schemas/actions/StorageReadActionDefinition.d.ts +1 -0
- package/schemas/actions/StorageReadActionDefinition.js +32 -0
- package/schemas/actions/StorageSubtractActionDefinition.d.ts +1 -0
- package/schemas/actions/StorageSubtractActionDefinition.js +35 -0
- package/schemas/actions/StorageUpdateActionDefinition.d.ts +1 -0
- package/schemas/actions/StorageUpdateActionDefinition.js +46 -0
- package/schemas/actions/StorageWriteActionDefinition.d.ts +1 -0
- package/schemas/actions/StorageWriteActionDefinition.js +46 -0
- package/schemas/actions/ThrowActionDefinition.d.ts +1 -0
- package/schemas/actions/ThrowActionDefinition.js +17 -0
- package/schemas/index.d.ts +121 -0
- package/schemas/index.js +122 -0
- package/schemas/json/BaseJSONSchema.d.ts +2 -0
- package/schemas/json/BaseJSONSchema.js +24 -0
- package/schemas/json/JSONPointer.d.ts +1 -0
- package/schemas/json/JSONPointer.js +20 -0
- package/schemas/json/JSONSchema.d.ts +2 -0
- package/schemas/json/JSONSchema.js +20 -0
- package/schemas/json/JSONSchemaAnyOf.d.ts +1 -0
- package/schemas/json/JSONSchemaAnyOf.js +26 -0
- package/schemas/json/JSONSchemaArray.d.ts +1 -0
- package/schemas/json/JSONSchemaArray.js +47 -0
- package/schemas/json/JSONSchemaBoolean.d.ts +1 -0
- package/schemas/json/JSONSchemaBoolean.js +37 -0
- package/schemas/json/JSONSchemaConst.d.ts +1 -0
- package/schemas/json/JSONSchemaConst.js +16 -0
- package/schemas/json/JSONSchemaEnum.d.ts +1 -0
- package/schemas/json/JSONSchemaEnum.js +36 -0
- package/schemas/json/JSONSchemaInteger.d.ts +1 -0
- package/schemas/json/JSONSchemaInteger.js +55 -0
- package/schemas/json/JSONSchemaMultiType.d.ts +1 -0
- package/schemas/json/JSONSchemaMultiType.js +48 -0
- package/schemas/json/JSONSchemaNot.d.ts +1 -0
- package/schemas/json/JSONSchemaNot.js +23 -0
- package/schemas/json/JSONSchemaNull.d.ts +1 -0
- package/schemas/json/JSONSchemaNull.js +16 -0
- package/schemas/json/JSONSchemaNumber.d.ts +1 -0
- package/schemas/json/JSONSchemaNumber.js +63 -0
- package/schemas/json/JSONSchemaObject.d.ts +1 -0
- package/schemas/json/JSONSchemaObject.js +74 -0
- package/schemas/json/JSONSchemaOneOf.d.ts +1 -0
- package/schemas/json/JSONSchemaOneOf.js +24 -0
- package/schemas/json/JSONSchemaRemapper.d.ts +1 -0
- package/schemas/json/JSONSchemaRemapper.js +19 -0
- package/schemas/json/JSONSchemaRoot.d.ts +1 -0
- package/schemas/json/JSONSchemaRoot.js +21 -0
- package/schemas/json/JSONSchemaString.d.ts +1 -0
- package/schemas/json/JSONSchemaString.js +107 -0
- package/schemas/utils/extendJSONSchema.d.ts +13 -0
- package/schemas/utils/extendJSONSchema.js +34 -0
- package/serverActions.d.ts +2 -0
- package/serverActions.js +21 -0
- package/string.d.ts +23 -0
- package/string.js +30 -0
- package/types/ActionError.d.ts +38 -0
- package/types/ActionError.js +30 -0
- package/types/action.d.ts +51 -0
- package/types/action.js +2 -0
- package/types/actionDefinition.d.ts +605 -0
- package/types/actionDefinition.js +2 -0
- package/types/block.d.ts +81 -0
- package/types/block.js +2 -0
- package/types/bulma.d.ts +5 -0
- package/types/bulma.js +2 -0
- package/types/container.d.ts +46 -0
- package/types/container.js +2 -0
- package/types/core.d.ts +322 -0
- package/types/core.js +2 -0
- package/types/http.d.ts +6 -0
- package/types/http.js +2 -0
- package/types/index.d.ts +115 -0
- package/types/index.js +17 -0
- package/types/layout.d.ts +2 -0
- package/types/layout.js +2 -0
- package/types/member.d.ts +43 -0
- package/types/member.js +2 -0
- package/types/permission.d.ts +102 -0
- package/types/permission.js +104 -0
- package/types/remapper.d.ts +584 -0
- package/types/remapper.js +2 -0
- package/types/resource.d.ts +145 -0
- package/types/resource.js +2 -0
- package/types/roles.d.ts +20 -0
- package/types/roles.js +61 -0
- package/types/security.d.ts +42 -0
- package/types/security.js +2 -0
- package/types/theme.d.ts +54 -0
- package/types/theme.js +2 -0
- package/validation.d.ts +25 -0
- package/validation.js +1237 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { BaseActionDefinition } from './BaseActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from '../utils/extendJSONSchema.js';
|
|
3
|
+
export const RequestActionDefinition = extendJSONSchema(BaseActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type', 'url'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['request'],
|
|
10
|
+
description: `Performs an HTTP request.
|
|
11
|
+
|
|
12
|
+
This can be used to call the Appsemble API or an external API in order to fetch data or send data.
|
|
13
|
+
When sending \`POST\`, \`PUT\`, \`DELETE\` and \`PATCH\` calls the data that is currently available
|
|
14
|
+
in the block gets passed through.
|
|
15
|
+
|
|
16
|
+
If the content type of the request is \`text/xml\` or \`application/xml\`, the data will be
|
|
17
|
+
converted to JSON.
|
|
18
|
+
`,
|
|
19
|
+
},
|
|
20
|
+
url: {
|
|
21
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
22
|
+
description: `A remapper that results in the URL to send the request to.
|
|
23
|
+
|
|
24
|
+
Can be a relative URL (E.g. \`/api/health\`) for usage with the Appsemble API, or an absolute URL
|
|
25
|
+
(E.g. \`https://example.com\`) for usage with external sites.`,
|
|
26
|
+
},
|
|
27
|
+
method: {
|
|
28
|
+
enum: ['delete', 'get', 'patch', 'post', 'put'],
|
|
29
|
+
default: 'get',
|
|
30
|
+
description: 'The type of request to make.',
|
|
31
|
+
},
|
|
32
|
+
query: {
|
|
33
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
34
|
+
description: 'A remapper that results in either an object containing each property of the query string, or a string that gets passed through as-is.',
|
|
35
|
+
},
|
|
36
|
+
body: {
|
|
37
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
38
|
+
description: `remapper that results in the request body to send.
|
|
39
|
+
|
|
40
|
+
If not specified, the raw input data is used.
|
|
41
|
+
`,
|
|
42
|
+
},
|
|
43
|
+
proxy: {
|
|
44
|
+
type: 'boolean',
|
|
45
|
+
default: true,
|
|
46
|
+
description: `By default requests will be proxied through the Appsemble API.
|
|
47
|
+
|
|
48
|
+
This allows to protect user data and ensures
|
|
49
|
+
[CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) is enabled. This behavior can be
|
|
50
|
+
disabled by setting this to \`false\`
|
|
51
|
+
`,
|
|
52
|
+
},
|
|
53
|
+
schema: {
|
|
54
|
+
description: 'The name of the schema to validate against before submitting data.',
|
|
55
|
+
$ref: '#/components/schemas/JSONSchema',
|
|
56
|
+
},
|
|
57
|
+
headers: {
|
|
58
|
+
type: 'object',
|
|
59
|
+
description: 'The headers to be set for the outgoing request',
|
|
60
|
+
additionalProperties: false,
|
|
61
|
+
properties: {
|
|
62
|
+
'Content-Type': {
|
|
63
|
+
description: 'Content type for the outgoing request',
|
|
64
|
+
enum: [
|
|
65
|
+
'application/xml',
|
|
66
|
+
'text/plain',
|
|
67
|
+
'application/x-www-form-urlencoded',
|
|
68
|
+
'multipart/form-data',
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
});
|
|
75
|
+
//# sourceMappingURL=RequestActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ResourceCountActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { RequestActionDefinition } from './RequestActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from '../utils/extendJSONSchema.js';
|
|
3
|
+
export const ResourceCountActionDefinition = extendJSONSchema(RequestActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type', 'resource'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['resource.count'],
|
|
10
|
+
description: 'Count the number of resources a similar `resource.query` action would return.',
|
|
11
|
+
},
|
|
12
|
+
resource: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
description: 'The type of the resource to count.',
|
|
15
|
+
},
|
|
16
|
+
own: {
|
|
17
|
+
type: 'boolean',
|
|
18
|
+
description: 'If only the resources created by the authenticated app member should be included',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
}, ['url', 'method']);
|
|
22
|
+
//# sourceMappingURL=ResourceCountActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ResourceCreateActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RequestActionDefinition } from './RequestActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from '../utils/extendJSONSchema.js';
|
|
3
|
+
export const ResourceCreateActionDefinition = extendJSONSchema(RequestActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type', 'resource'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['resource.create'],
|
|
10
|
+
description: 'Create a resource.',
|
|
11
|
+
},
|
|
12
|
+
resource: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
description: 'The type of the resource to create.',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
}, ['url', 'method']);
|
|
18
|
+
//# sourceMappingURL=ResourceCreateActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ResourceDeleteActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RequestActionDefinition } from './RequestActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from '../utils/extendJSONSchema.js';
|
|
3
|
+
export const ResourceDeleteActionDefinition = extendJSONSchema(RequestActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type', 'resource'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['resource.delete'],
|
|
10
|
+
description: 'Delete a resource.',
|
|
11
|
+
},
|
|
12
|
+
resource: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
description: 'The type of the resource to delete.',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
}, ['url', 'method']);
|
|
18
|
+
//# sourceMappingURL=ResourceDeleteActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ResourceDeleteAllActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RequestActionDefinition } from './RequestActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from '../utils/extendJSONSchema.js';
|
|
3
|
+
export const ResourceDeleteAllActionDefinition = extendJSONSchema(RequestActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type', 'resource'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['resource.delete.all'],
|
|
10
|
+
description: `Delete all instances of a resource.
|
|
11
|
+
> **Warning!**
|
|
12
|
+
>
|
|
13
|
+
> Use this action with caution to avoid losing precious data!`,
|
|
14
|
+
},
|
|
15
|
+
resource: {
|
|
16
|
+
type: 'string',
|
|
17
|
+
description: 'The type of the resource to delete.',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
}, ['url', 'method']);
|
|
21
|
+
//# sourceMappingURL=ResourceDeleteAllActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ResourceDeleteBulkActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RequestActionDefinition } from './RequestActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from '../utils/extendJSONSchema.js';
|
|
3
|
+
export const ResourceDeleteBulkActionDefinition = extendJSONSchema(RequestActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type', 'resource'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['resource.delete.bulk'],
|
|
10
|
+
description: 'Delete several instances of a resource.',
|
|
11
|
+
},
|
|
12
|
+
resource: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
description: 'The type of the resource to delete.',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
}, ['url', 'method']);
|
|
18
|
+
//# sourceMappingURL=ResourceDeleteBulkActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ResourceGetActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { RequestActionDefinition } from './RequestActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from '../utils/extendJSONSchema.js';
|
|
3
|
+
export const ResourceGetActionDefinition = extendJSONSchema(RequestActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type', 'resource'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['resource.get'],
|
|
10
|
+
description: 'Get a single resource.',
|
|
11
|
+
},
|
|
12
|
+
resource: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
description: 'The type of the resource to get.',
|
|
15
|
+
},
|
|
16
|
+
view: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
description: 'The view to use for the resource.',
|
|
19
|
+
},
|
|
20
|
+
id: {
|
|
21
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
}, ['url', 'method']);
|
|
25
|
+
//# sourceMappingURL=ResourceGetActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ResourceHistoryGetActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RequestActionDefinition } from './RequestActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from '../utils/extendJSONSchema.js';
|
|
3
|
+
export const ResourceHistoryGetActionDefinition = extendJSONSchema(RequestActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type', 'resource'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['resource.history.get'],
|
|
10
|
+
description: 'Get the complete history of a resource.',
|
|
11
|
+
},
|
|
12
|
+
resource: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
description: 'The type of the resource to get.',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
}, ['url']);
|
|
18
|
+
//# sourceMappingURL=ResourceHistoryGetActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ResourcePatchActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RequestActionDefinition } from './RequestActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from '../utils/extendJSONSchema.js';
|
|
3
|
+
export const ResourcePatchActionDefinition = extendJSONSchema(RequestActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type', 'resource'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['resource.patch'],
|
|
10
|
+
description: 'Patch a resource.',
|
|
11
|
+
},
|
|
12
|
+
resource: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
description: 'The type of the resource to patch.',
|
|
15
|
+
},
|
|
16
|
+
id: {
|
|
17
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
}, ['url', 'method']);
|
|
21
|
+
//# sourceMappingURL=ResourcePatchActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ResourceQueryActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { RequestActionDefinition } from './RequestActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from '../utils/extendJSONSchema.js';
|
|
3
|
+
export const ResourceQueryActionDefinition = extendJSONSchema(RequestActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type', 'resource'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['resource.query'],
|
|
10
|
+
description: 'Query a list of resources.',
|
|
11
|
+
},
|
|
12
|
+
resource: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
description: 'The type of the resource to query.',
|
|
15
|
+
},
|
|
16
|
+
view: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
description: 'The view to use for the resource.',
|
|
19
|
+
},
|
|
20
|
+
own: {
|
|
21
|
+
type: 'boolean',
|
|
22
|
+
description: 'If only the resources created by the authenticated app member should be included',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
}, ['url', 'method']);
|
|
26
|
+
//# sourceMappingURL=ResourceQueryActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ResourceSubscriptionStatusActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseActionDefinition } from './BaseActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from '../utils/extendJSONSchema.js';
|
|
3
|
+
export const ResourceSubscriptionStatusActionDefinition = extendJSONSchema(BaseActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type', 'resource'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['resource.subscription.status'],
|
|
10
|
+
description: 'Get the status of whether or not the user is subscriped to notifications for resource modifications.',
|
|
11
|
+
},
|
|
12
|
+
resource: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
description: 'The type of the resource to get the subscription state for.',
|
|
15
|
+
},
|
|
16
|
+
action: {
|
|
17
|
+
enum: ['create', 'delete', 'update'],
|
|
18
|
+
description: 'The resource action type to get the subscription state for.',
|
|
19
|
+
default: 'update',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=ResourceSubscriptionStatusActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ResourceSubscriptionSubscribeActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseActionDefinition } from './BaseActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from '../utils/extendJSONSchema.js';
|
|
3
|
+
export const ResourceSubscriptionSubscribeActionDefinition = extendJSONSchema(BaseActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type', 'resource'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['resource.subscription.subscribe'],
|
|
10
|
+
description: 'Subscribe to notifications on resource modifications.',
|
|
11
|
+
},
|
|
12
|
+
resource: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
description: 'The type of the resource to subscribe to.',
|
|
15
|
+
},
|
|
16
|
+
action: {
|
|
17
|
+
enum: ['create', 'delete', 'update'],
|
|
18
|
+
description: 'The resource action type to subscribe to.',
|
|
19
|
+
default: 'update',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=ResourceSubscriptionSubscribeActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ResourceSubscriptionToggleActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseActionDefinition } from './BaseActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from '../utils/extendJSONSchema.js';
|
|
3
|
+
export const ResourceSubscriptionToggleActionDefinition = extendJSONSchema(BaseActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type', 'resource'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['resource.subscription.toggle'],
|
|
10
|
+
description: 'Toggle whether or not to receive notifications on resource modifications.',
|
|
11
|
+
},
|
|
12
|
+
resource: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
description: 'The type of the resource to toggle the subscription state for.',
|
|
15
|
+
},
|
|
16
|
+
action: {
|
|
17
|
+
enum: ['create', 'delete', 'update'],
|
|
18
|
+
description: 'The resource action type to toggle the subscription state for.',
|
|
19
|
+
default: 'update',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=ResourceSubscriptionToggleActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ResourceSubscriptionUnsubscribeActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseActionDefinition } from './BaseActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from '../utils/extendJSONSchema.js';
|
|
3
|
+
export const ResourceSubscriptionUnsubscribeActionDefinition = extendJSONSchema(BaseActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type', 'resource'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['resource.subscription.unsubscribe'],
|
|
10
|
+
description: 'Unsubscribe from notifications on resource modifications.',
|
|
11
|
+
},
|
|
12
|
+
resource: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
description: 'The type of the resource to unsubscribe from.',
|
|
15
|
+
},
|
|
16
|
+
action: {
|
|
17
|
+
enum: ['create', 'delete', 'update'],
|
|
18
|
+
description: 'The resource action type to unsubscribe from.',
|
|
19
|
+
default: 'update',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=ResourceSubscriptionUnsubscribeActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ResourceUpdateActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RequestActionDefinition } from './RequestActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from '../utils/extendJSONSchema.js';
|
|
3
|
+
export const ResourceUpdateActionDefinition = extendJSONSchema(RequestActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type', 'resource'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['resource.update'],
|
|
10
|
+
description: 'Update a resource.',
|
|
11
|
+
},
|
|
12
|
+
resource: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
description: 'The type of the resource to update.',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
}, ['url', 'method']);
|
|
18
|
+
//# sourceMappingURL=ResourceUpdateActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ResourceUpdatePositionsActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RequestActionDefinition } from './RequestActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from '../utils/extendJSONSchema.js';
|
|
3
|
+
export const ResourceUpdatePositionsActionDefinition = extendJSONSchema(RequestActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type', 'resource'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['resource.update.positions'],
|
|
10
|
+
description: 'Update the position of a resource.',
|
|
11
|
+
},
|
|
12
|
+
resource: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
description: 'The type of the resource to update.',
|
|
15
|
+
},
|
|
16
|
+
id: {
|
|
17
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
}, ['url', 'method']);
|
|
21
|
+
//# sourceMappingURL=ResourceUpdatePositionsActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ShareActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { BaseActionDefinition } from './BaseActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from '../utils/extendJSONSchema.js';
|
|
3
|
+
export const ShareActionDefinition = extendJSONSchema(BaseActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['share'],
|
|
10
|
+
description: `The \`share\` action can be used to display a prompt that allows the user to share something with others, primarily via social media.
|
|
11
|
+
|
|
12
|
+
Depending on whether the user’s browser supports a native share function it will either display a
|
|
13
|
+
native dialog for sharing links, or display a more limited fallback in a dialog.
|
|
14
|
+
`,
|
|
15
|
+
},
|
|
16
|
+
url: {
|
|
17
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
18
|
+
description: 'The url that is being shared.',
|
|
19
|
+
},
|
|
20
|
+
title: {
|
|
21
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
22
|
+
description: 'The title that should be shared.',
|
|
23
|
+
},
|
|
24
|
+
text: {
|
|
25
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
26
|
+
description: 'The main body that should be shared.',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
//# sourceMappingURL=ShareActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StaticActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseActionDefinition } from './BaseActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from '../utils/extendJSONSchema.js';
|
|
3
|
+
export const StaticActionDefinition = extendJSONSchema(BaseActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type', 'value'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['static'],
|
|
10
|
+
description: `The \`static\` action returns static data defined in the action definition.
|
|
11
|
+
|
|
12
|
+
This is useful for example for stubbing data.
|
|
13
|
+
`,
|
|
14
|
+
},
|
|
15
|
+
value: {
|
|
16
|
+
description: 'The static value to return.',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=StaticActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StorageAppendActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { BaseActionDefinition } from './BaseActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from '../utils/extendJSONSchema.js';
|
|
3
|
+
export const StorageAppendActionDefinition = extendJSONSchema(BaseActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type', 'key', 'value'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['storage.append'],
|
|
10
|
+
description: `Append data to an existing array in storage.
|
|
11
|
+
If the storage entry is a single object, it turns it into an array to append the data on.
|
|
12
|
+
|
|
13
|
+
For example:
|
|
14
|
+
\`\`\`yaml
|
|
15
|
+
type: storage.append
|
|
16
|
+
key: temp
|
|
17
|
+
value: { root }
|
|
18
|
+
storage: localStorage
|
|
19
|
+
remapBefore:
|
|
20
|
+
object.from:
|
|
21
|
+
text:
|
|
22
|
+
This is a new data item
|
|
23
|
+
value:
|
|
24
|
+
1
|
|
25
|
+
\`\`\`
|
|
26
|
+
`,
|
|
27
|
+
},
|
|
28
|
+
key: {
|
|
29
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
30
|
+
description: 'The key of the storage entry.',
|
|
31
|
+
},
|
|
32
|
+
value: {
|
|
33
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
34
|
+
description: 'The data to write on top of the storage entry.',
|
|
35
|
+
},
|
|
36
|
+
storage: {
|
|
37
|
+
enum: ['indexedDB', 'localStorage', 'sessionStorage', 'appStorage'],
|
|
38
|
+
description: 'The mechanism used to store the data.',
|
|
39
|
+
default: 'indexedDB',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
//# sourceMappingURL=StorageAppendActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StorageDeleteActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { BaseActionDefinition } from './BaseActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from '../utils/extendJSONSchema.js';
|
|
3
|
+
export const StorageDeleteActionDefinition = extendJSONSchema(BaseActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type', 'key'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['storage.delete'],
|
|
10
|
+
description: `Delete the item that is stored at the specified key.
|
|
11
|
+
|
|
12
|
+
For example:
|
|
13
|
+
\`\`\`yaml
|
|
14
|
+
type: storage.delete
|
|
15
|
+
key: temp
|
|
16
|
+
storage: localStorage
|
|
17
|
+
\`\`\`
|
|
18
|
+
`,
|
|
19
|
+
},
|
|
20
|
+
key: {
|
|
21
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
22
|
+
description: 'The key of the storage entry to remove.',
|
|
23
|
+
},
|
|
24
|
+
storage: {
|
|
25
|
+
enum: ['indexedDB', 'localStorage', 'sessionStorage', 'appStorage'],
|
|
26
|
+
description: 'The mechanism used to remove the data from.',
|
|
27
|
+
default: 'indexedDB',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=StorageDeleteActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StorageReadActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { BaseActionDefinition } from './BaseActionDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from '../utils/extendJSONSchema.js';
|
|
3
|
+
export const StorageReadActionDefinition = extendJSONSchema(BaseActionDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
required: ['type', 'key'],
|
|
7
|
+
properties: {
|
|
8
|
+
type: {
|
|
9
|
+
enum: ['storage.read'],
|
|
10
|
+
description: `Read data from the app’s local storage.
|
|
11
|
+
|
|
12
|
+
For example:
|
|
13
|
+
\`\`\`yaml
|
|
14
|
+
type: storage.read
|
|
15
|
+
key: temp
|
|
16
|
+
storage: localStorage
|
|
17
|
+
\`\`\`
|
|
18
|
+
|
|
19
|
+
`,
|
|
20
|
+
},
|
|
21
|
+
key: {
|
|
22
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
23
|
+
description: 'The key of the storage entry.',
|
|
24
|
+
},
|
|
25
|
+
storage: {
|
|
26
|
+
enum: ['indexedDB', 'localStorage', 'sessionStorage', 'appStorage'],
|
|
27
|
+
description: 'The mechanism used to read the data from.',
|
|
28
|
+
default: 'indexedDB',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
//# sourceMappingURL=StorageReadActionDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StorageSubtractActionDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|