@appsemble/utils 0.33.5 → 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/README.md +3 -3
- package/api/components/schemas/App.js +5 -1
- package/api/components/schemas/BlockVersion.js +6 -1
- package/api/components/schemas/index.d.ts +0 -118
- package/api/components/schemas/index.js +0 -118
- package/api/paths/appTemplates.js +12 -3
- package/appMessages.d.ts +2 -2
- package/appMessages.js +1 -1
- package/authorization.d.ts +1 -11
- package/authorization.js +1 -163
- package/constants/index.d.ts +0 -2
- package/constants/index.js +0 -2
- package/formatRequestAction.d.ts +1 -1
- package/index.d.ts +2 -14
- package/index.js +2 -14
- package/miscellaneous.d.ts +5 -13
- package/miscellaneous.js +6 -33
- package/package.json +3 -2
- package/theme.d.ts +1 -1
- package/theme.js +1 -1
- package/types.d.ts +1 -1
- package/validateAppMessages.d.ts +2 -1
- package/validateAppMessages.js +2 -2
- package/allActions.d.ts +0 -3
- package/allActions.js +0 -11
- package/api/components/schemas/ActionDefinition.d.ts +0 -2
- package/api/components/schemas/ActionDefinition.js +0 -95
- package/api/components/schemas/AnalyticsActionDefinition.d.ts +0 -1
- package/api/components/schemas/AnalyticsActionDefinition.js +0 -25
- package/api/components/schemas/AppDefinition.d.ts +0 -2
- package/api/components/schemas/AppDefinition.js +0 -126
- package/api/components/schemas/AppLayoutDefinition.d.ts +0 -2
- package/api/components/schemas/AppLayoutDefinition.js +0 -46
- package/api/components/schemas/AppMemberCurrentPatchActionDefinition.d.ts +0 -1
- package/api/components/schemas/AppMemberCurrentPatchActionDefinition.js +0 -30
- package/api/components/schemas/AppMemberDeleteActionDefinition.d.ts +0 -1
- package/api/components/schemas/AppMemberDeleteActionDefinition.js +0 -20
- package/api/components/schemas/AppMemberInviteActionDefinition.d.ts +0 -1
- package/api/components/schemas/AppMemberInviteActionDefinition.js +0 -24
- package/api/components/schemas/AppMemberLoginActionDefinition.d.ts +0 -1
- package/api/components/schemas/AppMemberLoginActionDefinition.js +0 -24
- package/api/components/schemas/AppMemberLogoutActionDefinition.d.ts +0 -1
- package/api/components/schemas/AppMemberLogoutActionDefinition.js +0 -14
- package/api/components/schemas/AppMemberPropertiesPatchActionDefinition.d.ts +0 -1
- package/api/components/schemas/AppMemberPropertiesPatchActionDefinition.js +0 -26
- package/api/components/schemas/AppMemberPropertyDefinition.d.ts +0 -2
- package/api/components/schemas/AppMemberPropertyDefinition.js +0 -49
- package/api/components/schemas/AppMemberQueryActionDefinition.d.ts +0 -1
- package/api/components/schemas/AppMemberQueryActionDefinition.js +0 -24
- package/api/components/schemas/AppMemberRegisterActionDefinition.d.ts +0 -1
- package/api/components/schemas/AppMemberRegisterActionDefinition.js +0 -43
- package/api/components/schemas/AppMemberRoleUpdateActionDefinition.d.ts +0 -1
- package/api/components/schemas/AppMemberRoleUpdateActionDefinition.js +0 -27
- package/api/components/schemas/AppMembersDefinition.d.ts +0 -2
- package/api/components/schemas/AppMembersDefinition.js +0 -17
- package/api/components/schemas/ArrayRemapperDefinition.d.ts +0 -2
- package/api/components/schemas/ArrayRemapperDefinition.js +0 -22
- package/api/components/schemas/BaseActionDefinition.d.ts +0 -2
- package/api/components/schemas/BaseActionDefinition.js +0 -10
- package/api/components/schemas/BaseJSONSchema.d.ts +0 -2
- package/api/components/schemas/BaseJSONSchema.js +0 -24
- package/api/components/schemas/BasePageDefinition.d.ts +0 -2
- package/api/components/schemas/BasePageDefinition.js +0 -92
- package/api/components/schemas/BlockDefinition.d.ts +0 -2
- package/api/components/schemas/BlockDefinition.js +0 -94
- package/api/components/schemas/ConditionActionDefinition.d.ts +0 -1
- package/api/components/schemas/ConditionActionDefinition.js +0 -30
- package/api/components/schemas/ContainerDefinition.d.ts +0 -2
- package/api/components/schemas/ContainerDefinition.js +0 -52
- package/api/components/schemas/ContainerPageDefinition.d.ts +0 -1
- package/api/components/schemas/ContainerPageDefinition.js +0 -56
- package/api/components/schemas/ControllerActionDefinition.d.ts +0 -1
- package/api/components/schemas/ControllerActionDefinition.js +0 -18
- package/api/components/schemas/ControllerDefinition.d.ts +0 -2
- package/api/components/schemas/ControllerDefinition.js +0 -17
- package/api/components/schemas/CronDefinition.d.ts +0 -2
- package/api/components/schemas/CronDefinition.js +0 -20
- package/api/components/schemas/CsvParseActionDefinition.d.ts +0 -1
- package/api/components/schemas/CsvParseActionDefinition.js +0 -22
- package/api/components/schemas/CustomFontDefinition.d.ts +0 -2
- package/api/components/schemas/CustomFontDefinition.js +0 -20
- package/api/components/schemas/DialogActionDefinition.d.ts +0 -1
- package/api/components/schemas/DialogActionDefinition.js +0 -40
- package/api/components/schemas/DialogErrorActionDefinition.d.ts +0 -1
- package/api/components/schemas/DialogErrorActionDefinition.js +0 -17
- package/api/components/schemas/DialogOkActionDefinition.d.ts +0 -1
- package/api/components/schemas/DialogOkActionDefinition.js +0 -17
- package/api/components/schemas/DownloadActionDefinition.d.ts +0 -1
- package/api/components/schemas/DownloadActionDefinition.js +0 -19
- package/api/components/schemas/EachActionDefinition.d.ts +0 -1
- package/api/components/schemas/EachActionDefinition.js +0 -26
- package/api/components/schemas/EmailActionDefinition.d.ts +0 -1
- package/api/components/schemas/EmailActionDefinition.js +0 -54
- package/api/components/schemas/EventActionDefinition.d.ts +0 -1
- package/api/components/schemas/EventActionDefinition.js +0 -27
- package/api/components/schemas/EventsDefinition.d.ts +0 -2
- package/api/components/schemas/EventsDefinition.js +0 -29
- package/api/components/schemas/FilterParametersDefinition.d.ts +0 -2
- package/api/components/schemas/FilterParametersDefinition.js +0 -15
- package/api/components/schemas/FlowBackActionDefinition.d.ts +0 -1
- package/api/components/schemas/FlowBackActionDefinition.js +0 -16
- package/api/components/schemas/FlowCancelActionDefinition.d.ts +0 -1
- package/api/components/schemas/FlowCancelActionDefinition.js +0 -14
- package/api/components/schemas/FlowFinishActionDefinition.d.ts +0 -1
- package/api/components/schemas/FlowFinishActionDefinition.js +0 -16
- package/api/components/schemas/FlowNextActionDefinition.d.ts +0 -1
- package/api/components/schemas/FlowNextActionDefinition.js +0 -17
- package/api/components/schemas/FlowPageActionsDefinition.d.ts +0 -2
- package/api/components/schemas/FlowPageActionsDefinition.js +0 -23
- package/api/components/schemas/FlowPageDefinition.d.ts +0 -1
- package/api/components/schemas/FlowPageDefinition.js +0 -37
- package/api/components/schemas/FlowToActionDefinition.d.ts +0 -1
- package/api/components/schemas/FlowToActionDefinition.js +0 -21
- package/api/components/schemas/GoogleFontDefinition.d.ts +0 -2
- package/api/components/schemas/GoogleFontDefinition.js +0 -22
- package/api/components/schemas/GroupMemberDeleteActionDefinition.d.ts +0 -1
- package/api/components/schemas/GroupMemberDeleteActionDefinition.js +0 -18
- package/api/components/schemas/GroupMemberInviteActionDefinition.d.ts +0 -1
- package/api/components/schemas/GroupMemberInviteActionDefinition.js +0 -26
- package/api/components/schemas/GroupMemberQueryActionDefinition.d.ts +0 -1
- package/api/components/schemas/GroupMemberQueryActionDefinition.js +0 -18
- package/api/components/schemas/GroupMemberRoleUpdateActionDefinition.d.ts +0 -1
- package/api/components/schemas/GroupMemberRoleUpdateActionDefinition.js +0 -22
- package/api/components/schemas/GroupQueryActionDefinition.d.ts +0 -1
- package/api/components/schemas/GroupQueryActionDefinition.js +0 -14
- package/api/components/schemas/JSONPointer.d.ts +0 -1
- package/api/components/schemas/JSONPointer.js +0 -20
- package/api/components/schemas/JSONSchema.d.ts +0 -2
- package/api/components/schemas/JSONSchema.js +0 -20
- package/api/components/schemas/JSONSchemaAnyOf.d.ts +0 -1
- package/api/components/schemas/JSONSchemaAnyOf.js +0 -26
- package/api/components/schemas/JSONSchemaArray.d.ts +0 -1
- package/api/components/schemas/JSONSchemaArray.js +0 -47
- package/api/components/schemas/JSONSchemaBoolean.d.ts +0 -1
- package/api/components/schemas/JSONSchemaBoolean.js +0 -37
- package/api/components/schemas/JSONSchemaConst.d.ts +0 -1
- package/api/components/schemas/JSONSchemaConst.js +0 -16
- package/api/components/schemas/JSONSchemaEnum.d.ts +0 -1
- package/api/components/schemas/JSONSchemaEnum.js +0 -36
- package/api/components/schemas/JSONSchemaInteger.d.ts +0 -1
- package/api/components/schemas/JSONSchemaInteger.js +0 -55
- package/api/components/schemas/JSONSchemaMultiType.d.ts +0 -1
- package/api/components/schemas/JSONSchemaMultiType.js +0 -48
- package/api/components/schemas/JSONSchemaNot.d.ts +0 -1
- package/api/components/schemas/JSONSchemaNot.js +0 -23
- package/api/components/schemas/JSONSchemaNull.d.ts +0 -1
- package/api/components/schemas/JSONSchemaNull.js +0 -16
- package/api/components/schemas/JSONSchemaNumber.d.ts +0 -1
- package/api/components/schemas/JSONSchemaNumber.js +0 -63
- package/api/components/schemas/JSONSchemaObject.d.ts +0 -1
- package/api/components/schemas/JSONSchemaObject.js +0 -74
- package/api/components/schemas/JSONSchemaOneOf.d.ts +0 -1
- package/api/components/schemas/JSONSchemaOneOf.js +0 -24
- package/api/components/schemas/JSONSchemaRemapper.d.ts +0 -1
- package/api/components/schemas/JSONSchemaRemapper.js +0 -19
- package/api/components/schemas/JSONSchemaRoot.d.ts +0 -1
- package/api/components/schemas/JSONSchemaRoot.js +0 -21
- package/api/components/schemas/JSONSchemaString.d.ts +0 -1
- package/api/components/schemas/JSONSchemaString.js +0 -107
- package/api/components/schemas/LinkActionDefinition.d.ts +0 -1
- package/api/components/schemas/LinkActionDefinition.js +0 -29
- package/api/components/schemas/LinkBackActionDefinition.d.ts +0 -1
- package/api/components/schemas/LinkBackActionDefinition.js +0 -14
- package/api/components/schemas/LinkNextActionDefinition.d.ts +0 -1
- package/api/components/schemas/LinkNextActionDefinition.js +0 -14
- package/api/components/schemas/LogActionDefinition.d.ts +0 -1
- package/api/components/schemas/LogActionDefinition.js +0 -22
- package/api/components/schemas/LoopPageActionsDefinition.d.ts +0 -2
- package/api/components/schemas/LoopPageActionsDefinition.js +0 -24
- package/api/components/schemas/LoopPageDefinition.d.ts +0 -1
- package/api/components/schemas/LoopPageDefinition.js +0 -32
- package/api/components/schemas/MatchActionDefinition.d.ts +0 -1
- package/api/components/schemas/MatchActionDefinition.js +0 -35
- package/api/components/schemas/MessageActionDefinition.d.ts +0 -1
- package/api/components/schemas/MessageActionDefinition.js +0 -40
- package/api/components/schemas/NoopActionDefinition.d.ts +0 -1
- package/api/components/schemas/NoopActionDefinition.js +0 -17
- package/api/components/schemas/NotificationHookDataDefinition.d.ts +0 -2
- package/api/components/schemas/NotificationHookDataDefinition.js +0 -24
- package/api/components/schemas/NotificationHookDefinition.d.ts +0 -2
- package/api/components/schemas/NotificationHookDefinition.js +0 -32
- package/api/components/schemas/NotifyActionDefinition.d.ts +0 -1
- package/api/components/schemas/NotifyActionDefinition.js +0 -32
- package/api/components/schemas/ObjectRemapperDefinition.d.ts +0 -2
- package/api/components/schemas/ObjectRemapperDefinition.js +0 -17
- package/api/components/schemas/PageActionsDefinition.d.ts +0 -2
- package/api/components/schemas/PageActionsDefinition.js +0 -12
- package/api/components/schemas/PageDefinition.d.ts +0 -1
- package/api/components/schemas/PageDefinition.js +0 -26
- package/api/components/schemas/RemapperDefinition.d.ts +0 -2
- package/api/components/schemas/RemapperDefinition.js +0 -27
- package/api/components/schemas/RequestActionDefinition.d.ts +0 -1
- package/api/components/schemas/RequestActionDefinition.js +0 -75
- package/api/components/schemas/ResourceCountActionDefinition.d.ts +0 -1
- package/api/components/schemas/ResourceCountActionDefinition.js +0 -22
- package/api/components/schemas/ResourceCreateActionDefinition.d.ts +0 -1
- package/api/components/schemas/ResourceCreateActionDefinition.js +0 -18
- package/api/components/schemas/ResourceDefinition.d.ts +0 -2
- package/api/components/schemas/ResourceDefinition.js +0 -263
- package/api/components/schemas/ResourceDeleteActionDefinition.d.ts +0 -1
- package/api/components/schemas/ResourceDeleteActionDefinition.js +0 -18
- package/api/components/schemas/ResourceDeleteAllActionDefinition.d.ts +0 -1
- package/api/components/schemas/ResourceDeleteAllActionDefinition.js +0 -21
- package/api/components/schemas/ResourceDeleteBulkActionDefinition.d.ts +0 -1
- package/api/components/schemas/ResourceDeleteBulkActionDefinition.js +0 -18
- package/api/components/schemas/ResourceGetActionDefinition.d.ts +0 -1
- package/api/components/schemas/ResourceGetActionDefinition.js +0 -25
- package/api/components/schemas/ResourceHistoryDefinition.d.ts +0 -2
- package/api/components/schemas/ResourceHistoryDefinition.js +0 -14
- package/api/components/schemas/ResourceHistoryGetActionDefinition.d.ts +0 -1
- package/api/components/schemas/ResourceHistoryGetActionDefinition.js +0 -18
- package/api/components/schemas/ResourceHooksDefinition.d.ts +0 -2
- package/api/components/schemas/ResourceHooksDefinition.js +0 -10
- package/api/components/schemas/ResourcePatchActionDefinition.d.ts +0 -1
- package/api/components/schemas/ResourcePatchActionDefinition.js +0 -21
- package/api/components/schemas/ResourceQueryActionDefinition.d.ts +0 -1
- package/api/components/schemas/ResourceQueryActionDefinition.js +0 -26
- package/api/components/schemas/ResourceSubscriptionStatusActionDefinition.d.ts +0 -1
- package/api/components/schemas/ResourceSubscriptionStatusActionDefinition.js +0 -23
- package/api/components/schemas/ResourceSubscriptionSubscribeActionDefinition.d.ts +0 -1
- package/api/components/schemas/ResourceSubscriptionSubscribeActionDefinition.js +0 -23
- package/api/components/schemas/ResourceSubscriptionToggleActionDefinition.d.ts +0 -1
- package/api/components/schemas/ResourceSubscriptionToggleActionDefinition.js +0 -23
- package/api/components/schemas/ResourceSubscriptionUnsubscribeActionDefinition.d.ts +0 -1
- package/api/components/schemas/ResourceSubscriptionUnsubscribeActionDefinition.js +0 -23
- package/api/components/schemas/ResourceUpdateActionDefinition.d.ts +0 -1
- package/api/components/schemas/ResourceUpdateActionDefinition.js +0 -18
- package/api/components/schemas/ResourceUpdatePositionsActionDefinition.d.ts +0 -1
- package/api/components/schemas/ResourceUpdatePositionsActionDefinition.js +0 -21
- package/api/components/schemas/ResourceViewDefinition.d.ts +0 -2
- package/api/components/schemas/ResourceViewDefinition.js +0 -24
- package/api/components/schemas/SecurityCronDefinition.d.ts +0 -2
- package/api/components/schemas/SecurityCronDefinition.js +0 -26
- package/api/components/schemas/SecurityDefaultDefinition.d.ts +0 -2
- package/api/components/schemas/SecurityDefaultDefinition.js +0 -34
- package/api/components/schemas/SecurityDefinition.d.ts +0 -2
- package/api/components/schemas/SecurityDefinition.js +0 -17
- package/api/components/schemas/SecurityGuestDefinition.d.ts +0 -2
- package/api/components/schemas/SecurityGuestDefinition.js +0 -26
- package/api/components/schemas/SecurityRoleDefinition.d.ts +0 -2
- package/api/components/schemas/SecurityRoleDefinition.js +0 -35
- package/api/components/schemas/ShareActionDefinition.d.ts +0 -1
- package/api/components/schemas/ShareActionDefinition.js +0 -30
- package/api/components/schemas/StaticActionDefinition.d.ts +0 -1
- package/api/components/schemas/StaticActionDefinition.js +0 -20
- package/api/components/schemas/StorageAppendActionDefinition.d.ts +0 -1
- package/api/components/schemas/StorageAppendActionDefinition.js +0 -43
- package/api/components/schemas/StorageDeleteActionDefinition.d.ts +0 -1
- package/api/components/schemas/StorageDeleteActionDefinition.js +0 -31
- package/api/components/schemas/StorageReadActionDefinition.d.ts +0 -1
- package/api/components/schemas/StorageReadActionDefinition.js +0 -32
- package/api/components/schemas/StorageSubtractActionDefinition.d.ts +0 -1
- package/api/components/schemas/StorageSubtractActionDefinition.js +0 -35
- package/api/components/schemas/StorageUpdateActionDefinition.d.ts +0 -1
- package/api/components/schemas/StorageUpdateActionDefinition.js +0 -46
- package/api/components/schemas/StorageWriteActionDefinition.d.ts +0 -1
- package/api/components/schemas/StorageWriteActionDefinition.js +0 -46
- package/api/components/schemas/SubPage.d.ts +0 -2
- package/api/components/schemas/SubPage.js +0 -36
- package/api/components/schemas/TabsPageDefinition.d.ts +0 -1
- package/api/components/schemas/TabsPageDefinition.js +0 -46
- package/api/components/schemas/Theme.d.ts +0 -2
- package/api/components/schemas/Theme.js +0 -80
- package/api/components/schemas/ThrowActionDefinition.d.ts +0 -1
- package/api/components/schemas/ThrowActionDefinition.js +0 -17
- package/api/components/schemas/WebhookDefinition.d.ts +0 -2
- package/api/components/schemas/WebhookDefinition.js +0 -17
- package/api/components/schemas/utils.d.ts +0 -13
- package/api/components/schemas/utils.js +0 -34
- package/appMembers.d.ts +0 -1
- package/appMembers.js +0 -9
- package/blockUtils.d.ts +0 -31
- package/blockUtils.js +0 -65
- package/constants/baseTheme.d.ts +0 -2
- package/constants/baseTheme.js +0 -16
- package/constants/fonts.d.ts +0 -6
- package/constants/fonts.js +0 -1607
- package/examples.d.ts +0 -23
- package/examples.js +0 -975
- package/findPageByName.d.ts +0 -2
- package/findPageByName.js +0 -15
- package/has.d.ts +0 -8
- package/has.js +0 -11
- package/ics.d.ts +0 -3
- package/ics.js +0 -41
- package/iterApp.d.ts +0 -64
- package/iterApp.js +0 -150
- package/jsonschema.d.ts +0 -54
- package/jsonschema.js +0 -185
- package/reference-schemas/actions/appMember.d.ts +0 -2
- package/reference-schemas/actions/appMember.js +0 -21
- package/reference-schemas/actions/flow.d.ts +0 -2
- package/reference-schemas/actions/flow.js +0 -13
- package/reference-schemas/actions/group.d.ts +0 -2
- package/reference-schemas/actions/group.js +0 -13
- package/reference-schemas/actions/index.d.ts +0 -7
- package/reference-schemas/actions/index.js +0 -8
- package/reference-schemas/actions/link.d.ts +0 -2
- package/reference-schemas/actions/link.js +0 -9
- package/reference-schemas/actions/miscellaneous.d.ts +0 -2
- package/reference-schemas/actions/miscellaneous.js +0 -43
- package/reference-schemas/actions/resources.d.ts +0 -2
- package/reference-schemas/actions/resources.js +0 -19
- package/reference-schemas/actions/storage.d.ts +0 -2
- package/reference-schemas/actions/storage.js +0 -15
- package/reference-schemas/remappers/arrays.d.ts +0 -2
- package/reference-schemas/remappers/arrays.js +0 -297
- package/reference-schemas/remappers/conditionals.d.ts +0 -2
- package/reference-schemas/remappers/conditionals.js +0 -167
- package/reference-schemas/remappers/config.d.ts +0 -2
- package/reference-schemas/remappers/config.js +0 -13
- package/reference-schemas/remappers/data.d.ts +0 -2
- package/reference-schemas/remappers/data.js +0 -394
- package/reference-schemas/remappers/dates.d.ts +0 -2
- package/reference-schemas/remappers/dates.js +0 -94
- package/reference-schemas/remappers/history.d.ts +0 -2
- package/reference-schemas/remappers/history.js +0 -246
- package/reference-schemas/remappers/index.d.ts +0 -12
- package/reference-schemas/remappers/index.js +0 -13
- package/reference-schemas/remappers/numbers.d.ts +0 -2
- package/reference-schemas/remappers/numbers.js +0 -30
- package/reference-schemas/remappers/objects.d.ts +0 -2
- package/reference-schemas/remappers/objects.js +0 -127
- package/reference-schemas/remappers/odata.d.ts +0 -2
- package/reference-schemas/remappers/odata.js +0 -95
- package/reference-schemas/remappers/randoms.d.ts +0 -2
- package/reference-schemas/remappers/randoms.js +0 -82
- package/reference-schemas/remappers/strings.d.ts +0 -2
- package/reference-schemas/remappers/strings.js +0 -93
- package/reference-schemas/remappers/unsorted.d.ts +0 -2
- package/reference-schemas/remappers/unsorted.js +0 -276
- package/remap.d.ts +0 -74
- package/remap.js +0 -692
- package/serverActions.d.ts +0 -2
- package/serverActions.js +0 -21
- package/string.d.ts +0 -23
- package/string.js +0 -30
- package/validation.d.ts +0 -25
- package/validation.js +0 -1231
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { AnalyticsActionDefinition } from '../../api/components/schemas/AnalyticsActionDefinition.js';
|
|
2
|
-
import { ConditionActionDefinition } from '../../api/components/schemas/ConditionActionDefinition.js';
|
|
3
|
-
import { ControllerActionDefinition } from '../../api/components/schemas/ControllerActionDefinition.js';
|
|
4
|
-
import { CsvParseActionDefinition } from '../../api/components/schemas/CsvParseActionDefinition.js';
|
|
5
|
-
import { DialogActionDefinition } from '../../api/components/schemas/DialogActionDefinition.js';
|
|
6
|
-
import { DialogErrorActionDefinition } from '../../api/components/schemas/DialogErrorActionDefinition.js';
|
|
7
|
-
import { DialogOkActionDefinition } from '../../api/components/schemas/DialogOkActionDefinition.js';
|
|
8
|
-
import { DownloadActionDefinition } from '../../api/components/schemas/DownloadActionDefinition.js';
|
|
9
|
-
import { EachActionDefinition } from '../../api/components/schemas/EachActionDefinition.js';
|
|
10
|
-
import { EmailActionDefinition } from '../../api/components/schemas/EmailActionDefinition.js';
|
|
11
|
-
import { EventActionDefinition } from '../../api/components/schemas/EventActionDefinition.js';
|
|
12
|
-
import { LogActionDefinition } from '../../api/components/schemas/LogActionDefinition.js';
|
|
13
|
-
import { MatchActionDefinition } from '../../api/components/schemas/MatchActionDefinition.js';
|
|
14
|
-
import { MessageActionDefinition } from '../../api/components/schemas/MessageActionDefinition.js';
|
|
15
|
-
import { NoopActionDefinition } from '../../api/components/schemas/NoopActionDefinition.js';
|
|
16
|
-
import { NotifyActionDefinition } from '../../api/components/schemas/NotifyActionDefinition.js';
|
|
17
|
-
import { RequestActionDefinition } from '../../api/components/schemas/RequestActionDefinition.js';
|
|
18
|
-
import { ShareActionDefinition } from '../../api/components/schemas/ShareActionDefinition.js';
|
|
19
|
-
import { StaticActionDefinition } from '../../api/components/schemas/StaticActionDefinition.js';
|
|
20
|
-
import { ThrowActionDefinition } from '../../api/components/schemas/ThrowActionDefinition.js';
|
|
21
|
-
export const miscellaneousActions = {
|
|
22
|
-
analytics: AnalyticsActionDefinition,
|
|
23
|
-
condition: ConditionActionDefinition,
|
|
24
|
-
controller: ControllerActionDefinition,
|
|
25
|
-
'csv.parse': CsvParseActionDefinition,
|
|
26
|
-
download: DownloadActionDefinition,
|
|
27
|
-
dialog: DialogActionDefinition,
|
|
28
|
-
'dialog.ok': DialogOkActionDefinition,
|
|
29
|
-
'dialog.error': DialogErrorActionDefinition,
|
|
30
|
-
each: EachActionDefinition,
|
|
31
|
-
event: EventActionDefinition,
|
|
32
|
-
email: EmailActionDefinition,
|
|
33
|
-
log: LogActionDefinition,
|
|
34
|
-
match: MatchActionDefinition,
|
|
35
|
-
message: MessageActionDefinition,
|
|
36
|
-
noop: NoopActionDefinition,
|
|
37
|
-
notify: NotifyActionDefinition,
|
|
38
|
-
request: RequestActionDefinition,
|
|
39
|
-
share: ShareActionDefinition,
|
|
40
|
-
static: StaticActionDefinition,
|
|
41
|
-
throw: ThrowActionDefinition,
|
|
42
|
-
};
|
|
43
|
-
//# sourceMappingURL=miscellaneous.js.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ResourceCountActionDefinition, ResourceCreateActionDefinition, ResourceDeleteActionDefinition, ResourceDeleteAllActionDefinition, ResourceDeleteBulkActionDefinition, ResourceGetActionDefinition, ResourceHistoryGetActionDefinition, ResourcePatchActionDefinition, ResourceQueryActionDefinition, ResourceSubscriptionStatusActionDefinition, ResourceSubscriptionSubscribeActionDefinition, ResourceSubscriptionToggleActionDefinition, ResourceSubscriptionUnsubscribeActionDefinition, ResourceUpdateActionDefinition, ResourceUpdatePositionsActionDefinition, } from '../../api/components/schemas/index.js';
|
|
2
|
-
export const resourceActions = {
|
|
3
|
-
'resource.get': ResourceGetActionDefinition,
|
|
4
|
-
'resource.history.get': ResourceHistoryGetActionDefinition,
|
|
5
|
-
'resource.update.positions': ResourceUpdatePositionsActionDefinition,
|
|
6
|
-
'resource.query': ResourceQueryActionDefinition,
|
|
7
|
-
'resource.count': ResourceCountActionDefinition,
|
|
8
|
-
'resource.create': ResourceCreateActionDefinition,
|
|
9
|
-
'resource.update': ResourceUpdateActionDefinition,
|
|
10
|
-
'resource.patch': ResourcePatchActionDefinition,
|
|
11
|
-
'resource.delete': ResourceDeleteActionDefinition,
|
|
12
|
-
'resource.delete.all': ResourceDeleteAllActionDefinition,
|
|
13
|
-
'resource.delete.bulk': ResourceDeleteBulkActionDefinition,
|
|
14
|
-
'resource.subscription.subscribe': ResourceSubscriptionSubscribeActionDefinition,
|
|
15
|
-
'resource.subscription.unsubscribe': ResourceSubscriptionUnsubscribeActionDefinition,
|
|
16
|
-
'resource.subscription.toggle': ResourceSubscriptionToggleActionDefinition,
|
|
17
|
-
'resource.subscription.status': ResourceSubscriptionStatusActionDefinition,
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=resources.js.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { StorageAppendActionDefinition } from '../../api/components/schemas/StorageAppendActionDefinition.js';
|
|
2
|
-
import { StorageDeleteActionDefinition } from '../../api/components/schemas/StorageDeleteActionDefinition.js';
|
|
3
|
-
import { StorageReadActionDefinition } from '../../api/components/schemas/StorageReadActionDefinition.js';
|
|
4
|
-
import { StorageSubtractActionDefinition } from '../../api/components/schemas/StorageSubtractActionDefinition.js';
|
|
5
|
-
import { StorageUpdateActionDefinition } from '../../api/components/schemas/StorageUpdateActionDefinition.js';
|
|
6
|
-
import { StorageWriteActionDefinition } from '../../api/components/schemas/StorageWriteActionDefinition.js';
|
|
7
|
-
export const storageActions = {
|
|
8
|
-
'storage.read': StorageReadActionDefinition,
|
|
9
|
-
'storage.write': StorageWriteActionDefinition,
|
|
10
|
-
'storage.append': StorageAppendActionDefinition,
|
|
11
|
-
'storage.subtract': StorageSubtractActionDefinition,
|
|
12
|
-
'storage.update': StorageUpdateActionDefinition,
|
|
13
|
-
'storage.delete': StorageDeleteActionDefinition,
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=storage.js.map
|
|
@@ -1,297 +0,0 @@
|
|
|
1
|
-
import { schemaExample } from '../../examples.js';
|
|
2
|
-
export const arrayRemappers = {
|
|
3
|
-
'array.map': {
|
|
4
|
-
$ref: '#/components/schemas/RemapperDefinition',
|
|
5
|
-
description: `
|
|
6
|
-
The remapper goes through the given array and applies the given remappers on each individual item.
|
|
7
|
-
This can be very handy when sorting arrays by certain data. The remapper always returns an array.
|
|
8
|
-
Output can be an empty array if the supplied data isn’t an array.
|
|
9
|
-
|
|
10
|
-
For example, if you want to sort through a list of people and only get their occupations you can do
|
|
11
|
-
the following:
|
|
12
|
-
|
|
13
|
-
${schemaExample('array.map', { input: 'pretty' })}
|
|
14
|
-
|
|
15
|
-
Another great use for \`array.map\` is to combine it with the \`if\` remapper and sort your arrays on
|
|
16
|
-
specific values.
|
|
17
|
-
|
|
18
|
-
Using the same input data from the previous example, look at how you can change the code to get
|
|
19
|
-
people from a specific occupation:
|
|
20
|
-
|
|
21
|
-
${schemaExample('array.map.1', { input: 'pretty', exclude: ['input'] })}
|
|
22
|
-
|
|
23
|
-
Because \`array.map\` returns an array, every item has to return something. This is why we have to
|
|
24
|
-
return the full object with the data we want in the \`then\` section. It’s also why we return \`null\`.
|
|
25
|
-
This results in an array consisting of \`null\` values and objects with actual data in them. To solve
|
|
26
|
-
this problem, we use the \`null.strip\` remapper to remove any null values which results in a clean
|
|
27
|
-
array.
|
|
28
|
-
`,
|
|
29
|
-
},
|
|
30
|
-
'array.unique': {
|
|
31
|
-
$ref: '#/components/schemas/RemapperDefinition',
|
|
32
|
-
description: `
|
|
33
|
-
Filters out unique values from an array. The value Remapper is applied to each entry in the array
|
|
34
|
-
using its result to determine uniqueness.
|
|
35
|
-
|
|
36
|
-
If the value Remapper results in undefined or null, the entire entry is used for uniqueness.
|
|
37
|
-
|
|
38
|
-
If the input is not an array, the input is returned without any modifications.
|
|
39
|
-
|
|
40
|
-
${schemaExample('array.unique')}
|
|
41
|
-
|
|
42
|
-
You can also check for more complex values in arrays. The remapper accepts remappers as well, so you
|
|
43
|
-
can also use entire objects to check for unique values.
|
|
44
|
-
|
|
45
|
-
For this example, we have the following extended data with some duplicate values:
|
|
46
|
-
|
|
47
|
-
\`\`\`json
|
|
48
|
-
[
|
|
49
|
-
{
|
|
50
|
-
"name": "Peter",
|
|
51
|
-
"occupation": "Delivery driver",
|
|
52
|
-
"age": 19
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"name": "Peter",
|
|
56
|
-
"occupation": "Photographer",
|
|
57
|
-
"age": 19
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"name": "Otto",
|
|
61
|
-
"occupation": "Scientist",
|
|
62
|
-
"age": 50
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"name": "Harry",
|
|
66
|
-
"occupation": "CEO",
|
|
67
|
-
"age": 20
|
|
68
|
-
}
|
|
69
|
-
]
|
|
70
|
-
\`\`\`
|
|
71
|
-
|
|
72
|
-
We can be fairly sure in this list of people the first two Peters are the same person but with a
|
|
73
|
-
different occupation. To get more complex unique values from here, we can do the following:
|
|
74
|
-
|
|
75
|
-
\`\`\`yaml
|
|
76
|
-
array.unique:
|
|
77
|
-
object.from:
|
|
78
|
-
name: { prop: name }
|
|
79
|
-
age: { prop: age }
|
|
80
|
-
\`\`\`
|
|
81
|
-
|
|
82
|
-
This then checks the array for unique values in both the \`name\` and \`age\` fields. The result of this
|
|
83
|
-
remapper is a filtered list:
|
|
84
|
-
|
|
85
|
-
\`\`\`json
|
|
86
|
-
[
|
|
87
|
-
{
|
|
88
|
-
"name": "Peter",
|
|
89
|
-
"occupation": "Delivery driver",
|
|
90
|
-
"age": 19
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"name": "Otto",
|
|
94
|
-
"occupation": "Scientist",
|
|
95
|
-
"age": 50
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"name": "Harry",
|
|
99
|
-
"occupation": "CEO",
|
|
100
|
-
"age": 20
|
|
101
|
-
}
|
|
102
|
-
]
|
|
103
|
-
\`\`\`
|
|
104
|
-
`,
|
|
105
|
-
},
|
|
106
|
-
'array.filter': {
|
|
107
|
-
$ref: '#/components/schemas/RemapperDefinition',
|
|
108
|
-
description: `
|
|
109
|
-
Filters out values based on the input conditions provided.
|
|
110
|
-
|
|
111
|
-
For example:
|
|
112
|
-
|
|
113
|
-
${schemaExample('array.filter')}
|
|
114
|
-
|
|
115
|
-
Example of how it can be used to filter a number array.
|
|
116
|
-
|
|
117
|
-
Input:
|
|
118
|
-
|
|
119
|
-
\`\`\`json
|
|
120
|
-
[1,2,1,3,4,1,5]
|
|
121
|
-
\`\`\`
|
|
122
|
-
|
|
123
|
-
\`\`\`yaml
|
|
124
|
-
array.filter:
|
|
125
|
-
equals:
|
|
126
|
-
- array: item
|
|
127
|
-
- 1
|
|
128
|
-
\`\`\`
|
|
129
|
-
|
|
130
|
-
Result:
|
|
131
|
-
|
|
132
|
-
\`\`\`json
|
|
133
|
-
[1,1,1]
|
|
134
|
-
\`\`\`
|
|
135
|
-
`,
|
|
136
|
-
},
|
|
137
|
-
'array.find': {
|
|
138
|
-
$ref: '#/components/schemas/RemapperDefinition',
|
|
139
|
-
description: `
|
|
140
|
-
Returns a single object or value from an array based on the given condition.
|
|
141
|
-
|
|
142
|
-
For example:
|
|
143
|
-
|
|
144
|
-
${schemaExample('array.find')}
|
|
145
|
-
`,
|
|
146
|
-
},
|
|
147
|
-
'array.from': {
|
|
148
|
-
type: 'array',
|
|
149
|
-
items: {
|
|
150
|
-
$ref: '#/components/schemas/RemapperDefinition',
|
|
151
|
-
},
|
|
152
|
-
description: `
|
|
153
|
-
Creates a new array based on a provided array of remappers. This array can also consist of static
|
|
154
|
-
values.
|
|
155
|
-
|
|
156
|
-
For example:
|
|
157
|
-
|
|
158
|
-
${schemaExample('array.from', { exclude: ['input'] })}
|
|
159
|
-
|
|
160
|
-
This remapper can also be used to convert given data into an array.
|
|
161
|
-
|
|
162
|
-
Input:
|
|
163
|
-
|
|
164
|
-
\`\`\`json
|
|
165
|
-
{
|
|
166
|
-
"name": "Peter",
|
|
167
|
-
"occupation": "Delivery driver"
|
|
168
|
-
}
|
|
169
|
-
\`\`\`
|
|
170
|
-
|
|
171
|
-
\`\`\`yaml
|
|
172
|
-
array.from:
|
|
173
|
-
- root: null # Takes the data passed to this remapper, explained more in the 'Data' page
|
|
174
|
-
\`\`\`
|
|
175
|
-
|
|
176
|
-
Result:
|
|
177
|
-
|
|
178
|
-
\`\`\`json
|
|
179
|
-
[
|
|
180
|
-
{
|
|
181
|
-
"name": "Peter",
|
|
182
|
-
"occupation": "Delivery driver"
|
|
183
|
-
}
|
|
184
|
-
]
|
|
185
|
-
\`\`\`
|
|
186
|
-
`,
|
|
187
|
-
},
|
|
188
|
-
'array.append': {
|
|
189
|
-
type: 'array',
|
|
190
|
-
items: {
|
|
191
|
-
$ref: '#/components/schemas/RemapperDefinition',
|
|
192
|
-
},
|
|
193
|
-
description: `
|
|
194
|
-
Append new values to the end of an array. If the input is not an array an empty array is returned.
|
|
195
|
-
|
|
196
|
-
Using the array from the previous example, we can add a new object on top of it using this remapper:
|
|
197
|
-
|
|
198
|
-
${schemaExample('array.append', { result: 'pretty', exclude: ['input'] })}
|
|
199
|
-
|
|
200
|
-
Extra example:
|
|
201
|
-
|
|
202
|
-
array remapper can also be used in combination with different remappers as in the current example comes object remapper:
|
|
203
|
-
|
|
204
|
-
Example object:
|
|
205
|
-
\`\`\`json
|
|
206
|
-
{
|
|
207
|
-
"names": ["Bart", "Bas", "Sam"]
|
|
208
|
-
}
|
|
209
|
-
\`\`\`
|
|
210
|
-
|
|
211
|
-
Combination of object and array remapper:
|
|
212
|
-
|
|
213
|
-
\`\`\`yaml
|
|
214
|
-
object.assign:
|
|
215
|
-
names:
|
|
216
|
-
- { prop: Applicants }
|
|
217
|
-
- array.append:
|
|
218
|
-
- Kevin
|
|
219
|
-
\`\`\`
|
|
220
|
-
|
|
221
|
-
Result:
|
|
222
|
-
\`\`\`json
|
|
223
|
-
{
|
|
224
|
-
"names": ["Bart", "Bas", "Sam", "Kevin"]
|
|
225
|
-
}
|
|
226
|
-
\`\`\`
|
|
227
|
-
\
|
|
228
|
-
`,
|
|
229
|
-
},
|
|
230
|
-
'array.omit': {
|
|
231
|
-
type: 'array',
|
|
232
|
-
items: {
|
|
233
|
-
$ref: '#/components/schemas/RemapperDefinition',
|
|
234
|
-
},
|
|
235
|
-
description: `
|
|
236
|
-
Remove values from an array. The input is expected to be the index(es) of the items to be deleted.
|
|
237
|
-
Accepts an array of static or remapper values.
|
|
238
|
-
|
|
239
|
-
With the previous example we added a new person to the list of people, so now we can remove that
|
|
240
|
-
person. We already know the index of this person in the array is \`3\`, so it’s easy:
|
|
241
|
-
|
|
242
|
-
${schemaExample('array.omit', { result: 'pretty', exclude: ['input'] })}
|
|
243
|
-
|
|
244
|
-
However, usually we don’t know the exact index of the item we want to delete. Because the remapper
|
|
245
|
-
accepts remappers as input we can get the desired item’s ID from another source as well. Take the
|
|
246
|
-
following example:
|
|
247
|
-
|
|
248
|
-
In this example we assume the data from the previous example is passed to this table block using a
|
|
249
|
-
data loader’s emitting event called “people”. When the user clicks on one of the people in the
|
|
250
|
-
table, it gets the list of people again. Using the index of this person, and the \`array.omit\`
|
|
251
|
-
remapper, the person gets removed from the list.
|
|
252
|
-
|
|
253
|
-
\`\`\`yaml
|
|
254
|
-
type: table
|
|
255
|
-
version: 0.20.38
|
|
256
|
-
events:
|
|
257
|
-
listen:
|
|
258
|
-
data: people
|
|
259
|
-
parameters:
|
|
260
|
-
fields:
|
|
261
|
-
- label: Name
|
|
262
|
-
value: { prop: name }
|
|
263
|
-
onClick: removePerson
|
|
264
|
-
- label: Occupation
|
|
265
|
-
value: { prop: occupation }
|
|
266
|
-
actions:
|
|
267
|
-
removePerson:
|
|
268
|
-
type: resource.query
|
|
269
|
-
resource: citizensNYC
|
|
270
|
-
remapAfter:
|
|
271
|
-
array.omit:
|
|
272
|
-
- context: index # This gets the index of the item in the table, explained more in the 'Data' page.
|
|
273
|
-
onSuccess:
|
|
274
|
-
type: resource.update
|
|
275
|
-
resource: citizensNYC
|
|
276
|
-
\`\`\`
|
|
277
|
-
`,
|
|
278
|
-
},
|
|
279
|
-
'array.flatten': {
|
|
280
|
-
$ref: '#/components/schemas/RemapperDefinition',
|
|
281
|
-
description: `
|
|
282
|
-
Flatten an array. Accepts an array of static or remapper values.
|
|
283
|
-
|
|
284
|
-
Say for example that each person has some pets. We could get an array of all pets like so:
|
|
285
|
-
|
|
286
|
-
${schemaExample('array.flatten', { input: 'pretty', exclude: ['remapper'] })}
|
|
287
|
-
`,
|
|
288
|
-
},
|
|
289
|
-
'array.contains': {
|
|
290
|
-
$ref: '#/components/schemas/RemapperDefinition',
|
|
291
|
-
description: `
|
|
292
|
-
Checks if the input array includes the provided item.
|
|
293
|
-
${schemaExample('array.contains')}
|
|
294
|
-
`,
|
|
295
|
-
},
|
|
296
|
-
};
|
|
297
|
-
//# sourceMappingURL=arrays.js.map
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import { schemaExample } from '../../examples.js';
|
|
2
|
-
export const conditionalRemappers = {
|
|
3
|
-
if: {
|
|
4
|
-
type: 'object',
|
|
5
|
-
description: `Check if condition results in a truthy value.
|
|
6
|
-
|
|
7
|
-
Returns value of \`then\` if condition is truthy, otherwise it returns the value of \`else\`.
|
|
8
|
-
|
|
9
|
-
For example:
|
|
10
|
-
|
|
11
|
-
${schemaExample('if.then')}
|
|
12
|
-
|
|
13
|
-
${schemaExample('if.else', { exclude: ['remapper'] })}
|
|
14
|
-
`,
|
|
15
|
-
additionalProperties: false,
|
|
16
|
-
required: ['condition', 'then', 'else'],
|
|
17
|
-
properties: {
|
|
18
|
-
condition: {
|
|
19
|
-
$ref: '#/components/schemas/RemapperDefinition',
|
|
20
|
-
description: 'The condition to check.',
|
|
21
|
-
},
|
|
22
|
-
then: {
|
|
23
|
-
$ref: '#/components/schemas/RemapperDefinition',
|
|
24
|
-
description: 'This remapper is used if the condition returns true.',
|
|
25
|
-
},
|
|
26
|
-
else: {
|
|
27
|
-
$ref: '#/components/schemas/RemapperDefinition',
|
|
28
|
-
description: 'This remapper is used if the condition returns false.',
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
equals: {
|
|
33
|
-
type: 'array',
|
|
34
|
-
items: {
|
|
35
|
-
$ref: '#/components/schemas/RemapperDefinition',
|
|
36
|
-
},
|
|
37
|
-
description: `Compare all computed remapper values against each other.
|
|
38
|
-
|
|
39
|
-
Returns \`true\` if all entries are equal, otherwise \`false\`.
|
|
40
|
-
|
|
41
|
-
In the following example, if the \`inputValue\` and \`expectedValue\` are of the same value, the
|
|
42
|
-
condition will return \`true\` and the \`then\` remapper will fire.
|
|
43
|
-
|
|
44
|
-
${schemaExample('equals')}
|
|
45
|
-
`,
|
|
46
|
-
},
|
|
47
|
-
gt: {
|
|
48
|
-
type: 'array',
|
|
49
|
-
description: `**(gt = Greater than)**
|
|
50
|
-
|
|
51
|
-
Compare the first computed remapper value with the second computed remapper value.
|
|
52
|
-
|
|
53
|
-
Returns \`true\` if the first entry is greater than the second entry.
|
|
54
|
-
|
|
55
|
-
For example, if \`stock\` is more than 5 here, it returns \`true\`.
|
|
56
|
-
|
|
57
|
-
${schemaExample('gt')}
|
|
58
|
-
`,
|
|
59
|
-
minItems: 2,
|
|
60
|
-
maxItems: 2,
|
|
61
|
-
items: {
|
|
62
|
-
$ref: '#/components/schemas/RemapperDefinition',
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
lt: {
|
|
66
|
-
type: 'array',
|
|
67
|
-
description: `**(lt = Lesser than)
|
|
68
|
-
|
|
69
|
-
Compare the first computed remapper value with the second computed remapper value.
|
|
70
|
-
|
|
71
|
-
Returns \`true\` if the first entry is lesser than the second entry.
|
|
72
|
-
|
|
73
|
-
For example, if \`stock\` is less than 5 here, it returns \`true\`.
|
|
74
|
-
|
|
75
|
-
${schemaExample('gt')}
|
|
76
|
-
`,
|
|
77
|
-
minItems: 2,
|
|
78
|
-
maxItems: 2,
|
|
79
|
-
items: {
|
|
80
|
-
$ref: '#/components/schemas/RemapperDefinition',
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
not: {
|
|
84
|
-
type: 'array',
|
|
85
|
-
items: {
|
|
86
|
-
$ref: '#/components/schemas/RemapperDefinition',
|
|
87
|
-
},
|
|
88
|
-
description: `Compare all computed remapper values against the first.
|
|
89
|
-
|
|
90
|
-
Returns \`false\` if all entries are equal to the first entry, otherwise \`true\`.
|
|
91
|
-
|
|
92
|
-
If only one remapper or none is passed, the remapper value gets computed and then inverted.
|
|
93
|
-
|
|
94
|
-
If \`number\` in the following example is something other than 4, the condition returns \`true\`.
|
|
95
|
-
|
|
96
|
-
${schemaExample('not')}
|
|
97
|
-
`,
|
|
98
|
-
},
|
|
99
|
-
match: {
|
|
100
|
-
type: 'array',
|
|
101
|
-
description: `Check if any case results in a truthy value.
|
|
102
|
-
|
|
103
|
-
Returns the value of the first case where the condition equals true, otherwise returns null.
|
|
104
|
-
|
|
105
|
-
In the following example, let's say the \`Gem\` is a "Ruby". The match remapper then returns
|
|
106
|
-
\`value: 75\`.
|
|
107
|
-
|
|
108
|
-
${schemaExample('match')}
|
|
109
|
-
`,
|
|
110
|
-
items: {
|
|
111
|
-
type: 'object',
|
|
112
|
-
additionalProperties: false,
|
|
113
|
-
required: ['case', 'value'],
|
|
114
|
-
description: '',
|
|
115
|
-
properties: {
|
|
116
|
-
case: {
|
|
117
|
-
$ref: '#/components/schemas/RemapperDefinition',
|
|
118
|
-
description: 'The condition to check.',
|
|
119
|
-
},
|
|
120
|
-
value: {
|
|
121
|
-
$ref: '#/components/schemas/RemapperDefinition',
|
|
122
|
-
description: 'This remapper is used if the case is true',
|
|
123
|
-
},
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
|
-
},
|
|
127
|
-
and: {
|
|
128
|
-
type: 'array',
|
|
129
|
-
items: {
|
|
130
|
-
$ref: '#/components/schemas/RemapperDefinition',
|
|
131
|
-
},
|
|
132
|
-
description: `Compare all computed remapper values against each other.
|
|
133
|
-
|
|
134
|
-
Returns \`true\` if all entries are equal to \`true\`, otherwise \`false\`.
|
|
135
|
-
|
|
136
|
-
If only one remapper or none is passed, the remapper value gets computed.
|
|
137
|
-
|
|
138
|
-
${schemaExample('and')}
|
|
139
|
-
`,
|
|
140
|
-
},
|
|
141
|
-
or: {
|
|
142
|
-
type: 'array',
|
|
143
|
-
items: {
|
|
144
|
-
$ref: '#/components/schemas/RemapperDefinition',
|
|
145
|
-
},
|
|
146
|
-
description: `Compare all computed remapper values against each other.
|
|
147
|
-
|
|
148
|
-
Returns \`false\` if all entries are equal to \`false\`, otherwise \`true\`.
|
|
149
|
-
|
|
150
|
-
If only one remapper or none is passed, the remapper value gets computed.
|
|
151
|
-
|
|
152
|
-
${schemaExample('or')}
|
|
153
|
-
`,
|
|
154
|
-
},
|
|
155
|
-
defined: {
|
|
156
|
-
$ref: '#/components/schemas/RemapperDefinition',
|
|
157
|
-
description: `Check if a value is defined. Returns \`true\` if defined, \`false\` if not.
|
|
158
|
-
|
|
159
|
-
Considers falsy values like \`0\`, \`""\` and \`false\` as defined.
|
|
160
|
-
|
|
161
|
-
The \`null\` and \`undefined\` values are considered as not defined.
|
|
162
|
-
|
|
163
|
-
${schemaExample('defined')}
|
|
164
|
-
`,
|
|
165
|
-
},
|
|
166
|
-
};
|
|
167
|
-
//# sourceMappingURL=conditionals.js.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { schemaExample } from '../../examples.js';
|
|
2
|
-
export const configRemappers = {
|
|
3
|
-
variable: {
|
|
4
|
-
type: 'string',
|
|
5
|
-
description: `Get a predefined app variable by name
|
|
6
|
-
|
|
7
|
-
For example:
|
|
8
|
-
|
|
9
|
-
${schemaExample('variable', { exclude: ['input'] })}
|
|
10
|
-
`,
|
|
11
|
-
},
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=config.js.map
|