@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,263 @@
|
|
|
1
|
+
const query = {
|
|
2
|
+
type: 'object',
|
|
3
|
+
description: 'The query parameters to use in the request.',
|
|
4
|
+
additionalProperties: { type: 'string' },
|
|
5
|
+
};
|
|
6
|
+
const referenceActionTrigger = {
|
|
7
|
+
type: 'object',
|
|
8
|
+
additionalProperties: false,
|
|
9
|
+
description: 'Defines the type of trigger and the cascading strategy for it',
|
|
10
|
+
required: ['type'],
|
|
11
|
+
properties: {
|
|
12
|
+
type: {
|
|
13
|
+
enum: ['create', 'update', 'delete'],
|
|
14
|
+
},
|
|
15
|
+
cascade: {
|
|
16
|
+
description: `Defines the cascading strategy.
|
|
17
|
+
|
|
18
|
+
If 'update' is specified, the referencing property of the referencing resource is set to null.
|
|
19
|
+
|
|
20
|
+
If 'delete' is specified, the referencing resource is deleted.
|
|
21
|
+
|
|
22
|
+
If not specified, the referenced resource cannot be deleted
|
|
23
|
+
without deleting the referencing resource first.`,
|
|
24
|
+
enum: ['update', 'delete'],
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
const referenceAction = {
|
|
29
|
+
type: 'object',
|
|
30
|
+
additionalProperties: false,
|
|
31
|
+
description: 'Defines what happens when the specified action is executed on the referenced resource.',
|
|
32
|
+
properties: {
|
|
33
|
+
triggers: {
|
|
34
|
+
type: 'array',
|
|
35
|
+
items: referenceActionTrigger,
|
|
36
|
+
minItems: 1,
|
|
37
|
+
uniqueItems: true,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
export const ResourceDefinition = {
|
|
42
|
+
type: 'object',
|
|
43
|
+
additionalProperties: false,
|
|
44
|
+
description: 'A definition of how this resource works.',
|
|
45
|
+
required: ['schema'],
|
|
46
|
+
properties: {
|
|
47
|
+
expires: {
|
|
48
|
+
type: 'string',
|
|
49
|
+
description: `A time string representing when a resource should expire.
|
|
50
|
+
|
|
51
|
+
Example: 1d 8h 30m
|
|
52
|
+
`,
|
|
53
|
+
pattern: /^(\d+(y|yr|years))?\s*(\d+months)?\s*(\d+(w|wk|weeks))?\s*(\d+(d|days))?\s*(\d+(h|hr|hours))?\s*(\d+(m|min|minutes))?\s*(\d+(s|sec|seconds))?$/
|
|
54
|
+
.source,
|
|
55
|
+
},
|
|
56
|
+
clonable: {
|
|
57
|
+
type: 'boolean',
|
|
58
|
+
description: 'Whether the resource should be able to be transferred when cloning the app it belongs to',
|
|
59
|
+
},
|
|
60
|
+
schema: {
|
|
61
|
+
$ref: '#/components/schemas/JSONSchemaRoot',
|
|
62
|
+
description: 'JSON schema definitions that may be used by the app.',
|
|
63
|
+
},
|
|
64
|
+
references: {
|
|
65
|
+
type: 'object',
|
|
66
|
+
description: `References to other resources.
|
|
67
|
+
|
|
68
|
+
The key is the property that references the other resource. The value is an object describing the
|
|
69
|
+
name of the resource and how it should behave.
|
|
70
|
+
`,
|
|
71
|
+
minProperties: 1,
|
|
72
|
+
additionalProperties: {
|
|
73
|
+
type: 'object',
|
|
74
|
+
description: 'A reference to between two resource types.',
|
|
75
|
+
additionalProperties: false,
|
|
76
|
+
properties: {
|
|
77
|
+
resource: { type: 'string' },
|
|
78
|
+
create: referenceAction,
|
|
79
|
+
patch: referenceAction,
|
|
80
|
+
update: referenceAction,
|
|
81
|
+
delete: referenceAction,
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
positioning: {
|
|
86
|
+
type: 'boolean',
|
|
87
|
+
default: false,
|
|
88
|
+
description: 'Whether to enable position column for the instances of this resource. This is used for keeping an ordered list to enable custom sorting of the data using drag and drop features.',
|
|
89
|
+
},
|
|
90
|
+
enforceOrderingGroupByFields: {
|
|
91
|
+
type: 'array',
|
|
92
|
+
pattern: '^[a-zA-Z0-9]*$',
|
|
93
|
+
description: 'Group resources by fields when handling resource positions',
|
|
94
|
+
items: {
|
|
95
|
+
type: 'string',
|
|
96
|
+
},
|
|
97
|
+
minItems: 1,
|
|
98
|
+
},
|
|
99
|
+
url: {
|
|
100
|
+
type: 'string',
|
|
101
|
+
default: '/api/apps/{appId}/{resource}',
|
|
102
|
+
description: 'URL to use if not otherwise specified.',
|
|
103
|
+
},
|
|
104
|
+
id: {
|
|
105
|
+
type: 'string',
|
|
106
|
+
default: 'id',
|
|
107
|
+
description: 'Name of the field used when accessing singular entities.',
|
|
108
|
+
},
|
|
109
|
+
history: {
|
|
110
|
+
description: 'A definition of how versioning should happen for instances of this resource.',
|
|
111
|
+
default: false,
|
|
112
|
+
oneOf: [
|
|
113
|
+
{
|
|
114
|
+
type: 'boolean',
|
|
115
|
+
description: 'Setting this to `true` is the same as using an object with the property `data` set to `true`.',
|
|
116
|
+
},
|
|
117
|
+
{ $ref: '#/components/schemas/ResourceHistoryDefinition' },
|
|
118
|
+
],
|
|
119
|
+
},
|
|
120
|
+
query: {
|
|
121
|
+
type: 'object',
|
|
122
|
+
description: "Overrides for 'query' requests.",
|
|
123
|
+
additionalProperties: false,
|
|
124
|
+
properties: {
|
|
125
|
+
query,
|
|
126
|
+
method: {
|
|
127
|
+
type: 'string',
|
|
128
|
+
default: 'GET',
|
|
129
|
+
description: 'HTTP method to use for this type of request.',
|
|
130
|
+
},
|
|
131
|
+
url: {
|
|
132
|
+
type: 'string',
|
|
133
|
+
default: '/api/apps/{appId}/{resource}',
|
|
134
|
+
description: 'URL to use for this type of request.',
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
get: {
|
|
139
|
+
type: 'object',
|
|
140
|
+
description: "Overrides for 'get' requests.",
|
|
141
|
+
additionalProperties: false,
|
|
142
|
+
properties: {
|
|
143
|
+
query,
|
|
144
|
+
method: {
|
|
145
|
+
type: 'string',
|
|
146
|
+
default: 'GET',
|
|
147
|
+
description: 'HTTP method to use for this type of request.',
|
|
148
|
+
},
|
|
149
|
+
url: {
|
|
150
|
+
type: 'string',
|
|
151
|
+
default: '/api/apps/{appId}/{resource}/{id}',
|
|
152
|
+
description: 'URL to use for this type of request.',
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
count: {
|
|
157
|
+
type: 'object',
|
|
158
|
+
description: "Overrides for 'count' requests.",
|
|
159
|
+
additionalProperties: false,
|
|
160
|
+
properties: {
|
|
161
|
+
query,
|
|
162
|
+
method: {
|
|
163
|
+
type: 'string',
|
|
164
|
+
default: 'GET',
|
|
165
|
+
description: 'HTTP method to use for this type of request.',
|
|
166
|
+
},
|
|
167
|
+
url: {
|
|
168
|
+
type: 'string',
|
|
169
|
+
default: '/api/apps/{appId}/{resource}/$count',
|
|
170
|
+
description: 'URL to use for this type of request.',
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
create: {
|
|
175
|
+
type: 'object',
|
|
176
|
+
description: "Overrides for 'create' requests.",
|
|
177
|
+
additionalProperties: false,
|
|
178
|
+
properties: {
|
|
179
|
+
query,
|
|
180
|
+
method: {
|
|
181
|
+
type: 'string',
|
|
182
|
+
default: 'POST',
|
|
183
|
+
description: 'HTTP method to use for this type of request.',
|
|
184
|
+
},
|
|
185
|
+
url: {
|
|
186
|
+
type: 'string',
|
|
187
|
+
default: '/api/apps/{appId}/{resource}/{id}',
|
|
188
|
+
description: 'URL to use for this type of request.',
|
|
189
|
+
},
|
|
190
|
+
hooks: {
|
|
191
|
+
$ref: '#/components/schemas/ResourceHooksDefinition',
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
patch: {
|
|
196
|
+
type: 'object',
|
|
197
|
+
description: "Overrides for 'patch' requests.",
|
|
198
|
+
additionalProperties: false,
|
|
199
|
+
properties: {
|
|
200
|
+
query,
|
|
201
|
+
method: {
|
|
202
|
+
type: 'string',
|
|
203
|
+
default: 'PATCH',
|
|
204
|
+
description: 'HTTP method to use for this type of request.',
|
|
205
|
+
},
|
|
206
|
+
url: {
|
|
207
|
+
type: 'string',
|
|
208
|
+
default: '/api/apps/{appId}/{resource}/{id}',
|
|
209
|
+
description: 'URL to use for this type of request.',
|
|
210
|
+
},
|
|
211
|
+
hooks: {
|
|
212
|
+
$ref: '#/components/schemas/ResourceHooksDefinition',
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
update: {
|
|
217
|
+
type: 'object',
|
|
218
|
+
description: "Overrides for 'update' requests.",
|
|
219
|
+
additionalProperties: false,
|
|
220
|
+
properties: {
|
|
221
|
+
query,
|
|
222
|
+
method: {
|
|
223
|
+
type: 'string',
|
|
224
|
+
default: 'PUT',
|
|
225
|
+
description: 'HTTP method to use for this type of request.',
|
|
226
|
+
},
|
|
227
|
+
url: {
|
|
228
|
+
type: 'string',
|
|
229
|
+
default: '/api/apps/{appId}/{resource}/{id}',
|
|
230
|
+
description: 'URL to use for this type of request.',
|
|
231
|
+
},
|
|
232
|
+
hooks: {
|
|
233
|
+
$ref: '#/components/schemas/ResourceHooksDefinition',
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
},
|
|
237
|
+
delete: {
|
|
238
|
+
type: 'object',
|
|
239
|
+
description: "Overrides for 'delete' requests.",
|
|
240
|
+
additionalProperties: false,
|
|
241
|
+
properties: {
|
|
242
|
+
query,
|
|
243
|
+
method: {
|
|
244
|
+
type: 'string',
|
|
245
|
+
default: 'DELETE',
|
|
246
|
+
description: 'HTTP method to use for this type of request.',
|
|
247
|
+
},
|
|
248
|
+
url: {
|
|
249
|
+
type: 'string',
|
|
250
|
+
default: '/api/apps/{appId}/{resource}/{id}',
|
|
251
|
+
description: 'URL to use for this type of request.',
|
|
252
|
+
},
|
|
253
|
+
hooks: {
|
|
254
|
+
$ref: '#/components/schemas/ResourceHooksDefinition',
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
},
|
|
258
|
+
views: {
|
|
259
|
+
$ref: '#/components/schemas/ResourceViewDefinition',
|
|
260
|
+
},
|
|
261
|
+
},
|
|
262
|
+
};
|
|
263
|
+
//# sourceMappingURL=ResourceDefinition.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const ResourceHistoryDefinition = {
|
|
2
|
+
type: 'object',
|
|
3
|
+
additionalProperties: false,
|
|
4
|
+
description: 'A definition of how versioning works for instances of this resource',
|
|
5
|
+
required: ['data'],
|
|
6
|
+
properties: {
|
|
7
|
+
data: {
|
|
8
|
+
type: 'boolean',
|
|
9
|
+
default: true,
|
|
10
|
+
description: 'If set to `false`, edits are still tracked, but exactly what changed is lost.',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=ResourceHistoryDefinition.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const ResourceHooksDefinition = {
|
|
2
|
+
type: 'object',
|
|
3
|
+
description: 'Hooks that are triggered upon calling a resource action.',
|
|
4
|
+
additionalProperties: false,
|
|
5
|
+
minProperties: 1,
|
|
6
|
+
properties: {
|
|
7
|
+
notification: { $ref: '#/components/schemas/NotificationHookDefinition' },
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=ResourceHooksDefinition.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export const ResourceViewDefinition = {
|
|
2
|
+
type: 'object',
|
|
3
|
+
minProperties: 1,
|
|
4
|
+
description: 'Alternative views of a resource that are modified using remappers and support different sets of roles.',
|
|
5
|
+
additionalProperties: {
|
|
6
|
+
type: 'object',
|
|
7
|
+
additionalProperties: false,
|
|
8
|
+
description: 'A custom view for a resource.',
|
|
9
|
+
properties: {
|
|
10
|
+
roles: {
|
|
11
|
+
type: 'array',
|
|
12
|
+
description: 'The list of roles that are allowed to use this view.',
|
|
13
|
+
items: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
remap: {
|
|
18
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
19
|
+
description: 'The modified view.',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=ResourceViewDefinition.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export const SecurityCronDefinition = {
|
|
2
|
+
type: 'object',
|
|
3
|
+
description: 'This describes the permissions that unauthenticated users have.',
|
|
4
|
+
additionalProperties: false,
|
|
5
|
+
properties: {
|
|
6
|
+
inherits: {
|
|
7
|
+
type: 'array',
|
|
8
|
+
minItems: 1,
|
|
9
|
+
description: `The name of the role to inherit from.
|
|
10
|
+
|
|
11
|
+
Note that this role must exist.
|
|
12
|
+
`,
|
|
13
|
+
items: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
permissions: {
|
|
18
|
+
type: 'array',
|
|
19
|
+
description: 'Specific permissions within the app, which unauthenticated users should have',
|
|
20
|
+
items: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=SecurityCronDefinition.js.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export const SecurityDefaultDefinition = {
|
|
2
|
+
type: 'object',
|
|
3
|
+
required: ['role'],
|
|
4
|
+
description: 'The default role to apply to members.',
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
properties: {
|
|
7
|
+
policy: {
|
|
8
|
+
enum: ['everyone', 'organization', 'invite'],
|
|
9
|
+
default: 'everyone',
|
|
10
|
+
description: `How the \`default\` role gets applied to users.
|
|
11
|
+
|
|
12
|
+
The following values are allowed:
|
|
13
|
+
- \`everyone\`: Every authenticated user gets the default role.
|
|
14
|
+
- \`organization\`: Every authenticated user gets the default role if they are in the same organization as the app.
|
|
15
|
+
- \`invite\`: The app member has to be invited to the app with a specific role.
|
|
16
|
+
|
|
17
|
+
> **Important**: When [OAuth2](../guides/oauth2) or [SAML2.0](../guides/saml) is used in the
|
|
18
|
+
> app, you must set the policy to \`everyone\`. This will specifically allow every configured
|
|
19
|
+
> authentication method on the secrets page to be used as login method. If you do not want other
|
|
20
|
+
> Appsemble user accounts to be able to log in, you must \`disable\` the \`appsemble login\` options
|
|
21
|
+
> (including the Appsemble OAuth2 option) in the secrets page. If this option is enabled, any
|
|
22
|
+
> Appsemble user account is able to log in to the app and will receive the default role.
|
|
23
|
+
`,
|
|
24
|
+
},
|
|
25
|
+
role: {
|
|
26
|
+
type: 'string',
|
|
27
|
+
description: `The default role to apply to members.
|
|
28
|
+
|
|
29
|
+
This must match with one of the roles defined within the security definition.
|
|
30
|
+
`,
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=SecurityDefaultDefinition.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export const SecurityDefinition = {
|
|
2
|
+
type: 'object',
|
|
3
|
+
description: 'This describes how the app is secured.',
|
|
4
|
+
additionalProperties: false,
|
|
5
|
+
properties: {
|
|
6
|
+
default: { $ref: '#/components/schemas/SecurityDefaultDefinition' },
|
|
7
|
+
guest: { $ref: '#/components/schemas/SecurityGuestDefinition' },
|
|
8
|
+
cron: { $ref: '#/components/schemas/SecurityCronDefinition' },
|
|
9
|
+
roles: {
|
|
10
|
+
type: 'object',
|
|
11
|
+
description: 'This property defines the app roles that are available within the app.',
|
|
12
|
+
minProperties: 1,
|
|
13
|
+
additionalProperties: { $ref: '#/components/schemas/SecurityRoleDefinition' },
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=SecurityDefinition.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export const SecurityGuestDefinition = {
|
|
2
|
+
type: 'object',
|
|
3
|
+
description: 'This describes the permissions that unauthenticated users have.',
|
|
4
|
+
additionalProperties: false,
|
|
5
|
+
properties: {
|
|
6
|
+
inherits: {
|
|
7
|
+
type: 'array',
|
|
8
|
+
minItems: 1,
|
|
9
|
+
description: `The name of the role to inherit from.
|
|
10
|
+
|
|
11
|
+
Note that this role must exist.
|
|
12
|
+
`,
|
|
13
|
+
items: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
permissions: {
|
|
18
|
+
type: 'array',
|
|
19
|
+
description: 'Specific permissions within the app, which unauthenticated users should have',
|
|
20
|
+
items: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=SecurityGuestDefinition.js.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export const SecurityRoleDefinition = {
|
|
2
|
+
type: 'object',
|
|
3
|
+
description: 'This describes a security role.',
|
|
4
|
+
additionalProperties: false,
|
|
5
|
+
properties: {
|
|
6
|
+
description: {
|
|
7
|
+
type: 'string',
|
|
8
|
+
description: 'The description of the role.',
|
|
9
|
+
},
|
|
10
|
+
defaultPage: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
description: 'The default page to redirect users with this role to.',
|
|
13
|
+
},
|
|
14
|
+
inherits: {
|
|
15
|
+
type: 'array',
|
|
16
|
+
minItems: 1,
|
|
17
|
+
description: `The name of the role to inherit from.
|
|
18
|
+
|
|
19
|
+
Note that this role must exist and can not inherit itself via this field or the \`inherits\` field
|
|
20
|
+
of the referenced role.
|
|
21
|
+
`,
|
|
22
|
+
items: {
|
|
23
|
+
type: 'string',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
permissions: {
|
|
27
|
+
type: 'array',
|
|
28
|
+
description: 'Specific permissions within the app, which this role should have',
|
|
29
|
+
items: {
|
|
30
|
+
type: 'string',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=SecurityRoleDefinition.js.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export const SubPage = {
|
|
2
|
+
type: 'object',
|
|
3
|
+
description: 'This describes what a sub page will look like in the app.',
|
|
4
|
+
required: ['blocks'],
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
properties: {
|
|
7
|
+
name: {
|
|
8
|
+
$ref: '#/components/schemas/RemapperDefinition',
|
|
9
|
+
description: 'The name of the sub page.',
|
|
10
|
+
},
|
|
11
|
+
roles: {
|
|
12
|
+
type: 'array',
|
|
13
|
+
description: `The list of roles that are allowed to view this page.
|
|
14
|
+
|
|
15
|
+
If the user doesn’t have any of the roles in the list the page will be unavailable to them. An empty
|
|
16
|
+
list can be used to specify that users need to log in but do not need a specific role.
|
|
17
|
+
|
|
18
|
+
Users trying to visit a page without having the correct roles will be redirected to the first page
|
|
19
|
+
that they are allowed to view. If there aren’t any accessible pages, the user will be logged out and
|
|
20
|
+
instructed to contact the app owner to get permissions.
|
|
21
|
+
`,
|
|
22
|
+
items: {
|
|
23
|
+
type: 'string',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
blocks: {
|
|
27
|
+
type: 'array',
|
|
28
|
+
minItems: 1,
|
|
29
|
+
description: 'The blocks that make up a page.',
|
|
30
|
+
items: {
|
|
31
|
+
$ref: '#/components/schemas/BlockDefinition',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=SubPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TabsPageDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { BasePageDefinition } from './BasePageDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from './utils/extendJSONSchema.js';
|
|
3
|
+
export const TabsPageDefinition = extendJSONSchema(BasePageDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
description: 'Shows a set of subpages as tabs at the top of the page.',
|
|
6
|
+
oneOf: [
|
|
7
|
+
{
|
|
8
|
+
required: ['type', 'tabs'],
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
required: ['type', 'definition'],
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
additionalProperties: true,
|
|
15
|
+
properties: {
|
|
16
|
+
type: {
|
|
17
|
+
enum: ['tabs'],
|
|
18
|
+
},
|
|
19
|
+
tabs: {
|
|
20
|
+
type: 'array',
|
|
21
|
+
minItems: 1,
|
|
22
|
+
description: 'Each of the available tabs for the tabs page.',
|
|
23
|
+
items: {
|
|
24
|
+
$ref: '#/components/schemas/SubPage',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
definition: {
|
|
28
|
+
type: 'object',
|
|
29
|
+
additionalProperties: false,
|
|
30
|
+
description: 'Generate tabs dynamically',
|
|
31
|
+
required: ['events', 'foreach'],
|
|
32
|
+
properties: {
|
|
33
|
+
events: {
|
|
34
|
+
$ref: '#/components/schemas/EventsDefinition',
|
|
35
|
+
},
|
|
36
|
+
foreach: {
|
|
37
|
+
$ref: '#/components/schemas/SubPage',
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
actions: {
|
|
42
|
+
$ref: '#/components/schemas/PageActionsDefinition',
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
//# sourceMappingURL=TabsPageDefinition.js.map
|
package/schemas/Theme.js
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { baseTheme } from '../constants/baseTheme.js';
|
|
2
|
+
import { hexColor } from '../constants/patterns.js';
|
|
3
|
+
export const Theme = {
|
|
4
|
+
type: 'object',
|
|
5
|
+
description: 'A generic theme definition.',
|
|
6
|
+
additionalProperties: false,
|
|
7
|
+
minProperties: 1,
|
|
8
|
+
properties: {
|
|
9
|
+
themeColor: {
|
|
10
|
+
type: 'string',
|
|
11
|
+
pattern: hexColor.source,
|
|
12
|
+
default: baseTheme.themeColor,
|
|
13
|
+
description: `The generic theme color of the app.
|
|
14
|
+
|
|
15
|
+
This is used for example in the URL bar on Android.
|
|
16
|
+
`,
|
|
17
|
+
},
|
|
18
|
+
splashColor: {
|
|
19
|
+
type: 'string',
|
|
20
|
+
pattern: hexColor.source,
|
|
21
|
+
default: baseTheme.splashColor,
|
|
22
|
+
description: `The background color of the PWA splash screen.
|
|
23
|
+
|
|
24
|
+
This defaults to the theme color.
|
|
25
|
+
`,
|
|
26
|
+
},
|
|
27
|
+
primaryColor: {
|
|
28
|
+
type: 'string',
|
|
29
|
+
pattern: hexColor.source,
|
|
30
|
+
default: baseTheme.primaryColor,
|
|
31
|
+
description: `The primary color used within the app.
|
|
32
|
+
|
|
33
|
+
This is used in various elements like the navbar.
|
|
34
|
+
`,
|
|
35
|
+
},
|
|
36
|
+
linkColor: {
|
|
37
|
+
type: 'string',
|
|
38
|
+
pattern: hexColor.source,
|
|
39
|
+
default: baseTheme.linkColor,
|
|
40
|
+
description: 'The color used for links.',
|
|
41
|
+
},
|
|
42
|
+
infoColor: {
|
|
43
|
+
type: 'string',
|
|
44
|
+
pattern: hexColor.source,
|
|
45
|
+
default: baseTheme.infoColor,
|
|
46
|
+
description: 'The color used for informational messages.',
|
|
47
|
+
},
|
|
48
|
+
successColor: {
|
|
49
|
+
type: 'string',
|
|
50
|
+
pattern: hexColor.source,
|
|
51
|
+
default: baseTheme.successColor,
|
|
52
|
+
description: 'The color used for successful actions.',
|
|
53
|
+
},
|
|
54
|
+
warningColor: {
|
|
55
|
+
type: 'string',
|
|
56
|
+
pattern: hexColor.source,
|
|
57
|
+
default: baseTheme.warningColor,
|
|
58
|
+
description: 'The color used for warning messages.',
|
|
59
|
+
},
|
|
60
|
+
dangerColor: {
|
|
61
|
+
type: 'string',
|
|
62
|
+
pattern: hexColor.source,
|
|
63
|
+
default: baseTheme.dangerColor,
|
|
64
|
+
description: 'The color used for error messages.',
|
|
65
|
+
},
|
|
66
|
+
tileLayer: {
|
|
67
|
+
type: 'string',
|
|
68
|
+
format: 'uri',
|
|
69
|
+
default: baseTheme.tileLayer,
|
|
70
|
+
description: 'The tileLayer to use for Leaflet maps.',
|
|
71
|
+
},
|
|
72
|
+
font: {
|
|
73
|
+
description: 'The font to use in the app.',
|
|
74
|
+
anyOf: [
|
|
75
|
+
{ $ref: '#/components/schemas/CustomFontDefinition' },
|
|
76
|
+
{ $ref: '#/components/schemas/GoogleFontDefinition' },
|
|
77
|
+
],
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
//# sourceMappingURL=Theme.js.map
|