@appsemble/utils 0.20.28 → 0.20.29
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 +4 -4
- package/api/components/schemas/AppDefinition.js +1 -0
- package/api/components/schemas/LoopPageActionsDefinition.d.ts +2 -0
- package/api/components/schemas/LoopPageActionsDefinition.js +24 -0
- package/api/components/schemas/LoopPageDefinition.d.ts +1 -0
- package/api/components/schemas/LoopPageDefinition.js +38 -0
- package/api/components/schemas/ObjectRemapperDefinition.js +4 -0
- package/api/components/schemas/index.d.ts +2 -0
- package/api/components/schemas/index.js +2 -0
- package/appMessages.js +4 -1
- package/iterApp.js +3 -0
- package/package.json +2 -2
- package/remap.d.ts +3 -0
- package/remap.js +3 -0
- package/validation.js +7 -7
- package/validation.test.js +1 -1
- package/api/components/index.js.map +0 -1
- package/api/components/index.ts +0 -15
- package/api/components/parameters/$filter.js.map +0 -1
- package/api/components/parameters/$filter.ts +0 -12
- package/api/components/parameters/$orderby.js.map +0 -1
- package/api/components/parameters/$orderby.ts +0 -12
- package/api/components/parameters/$select.js.map +0 -1
- package/api/components/parameters/$select.ts +0 -15
- package/api/components/parameters/$team.js.map +0 -1
- package/api/components/parameters/$team.ts +0 -11
- package/api/components/parameters/$top.js.map +0 -1
- package/api/components/parameters/$top.ts +0 -9
- package/api/components/parameters/appId.js.map +0 -1
- package/api/components/parameters/appId.ts +0 -9
- package/api/components/parameters/appOAuth2SecretId.js.map +0 -1
- package/api/components/parameters/appOAuth2SecretId.ts +0 -9
- package/api/components/parameters/appSamlSecretId.js.map +0 -1
- package/api/components/parameters/appSamlSecretId.ts +0 -12
- package/api/components/parameters/assetId.js.map +0 -1
- package/api/components/parameters/assetId.ts +0 -9
- package/api/components/parameters/blockId.js.map +0 -1
- package/api/components/parameters/blockId.ts +0 -15
- package/api/components/parameters/blockVersion.js.map +0 -1
- package/api/components/parameters/blockVersion.ts +0 -9
- package/api/components/parameters/endpoint.js.map +0 -1
- package/api/components/parameters/endpoint.ts +0 -9
- package/api/components/parameters/index.js.map +0 -1
- package/api/components/parameters/index.ts +0 -18
- package/api/components/parameters/language.js.map +0 -1
- package/api/components/parameters/language.ts +0 -9
- package/api/components/parameters/organizationId.js.map +0 -1
- package/api/components/parameters/organizationId.ts +0 -9
- package/api/components/parameters/resourceId.js.map +0 -1
- package/api/components/parameters/resourceId.ts +0 -9
- package/api/components/parameters/resourceType.js.map +0 -1
- package/api/components/parameters/resourceType.ts +0 -11
- package/api/components/parameters/screenshotId.js.map +0 -1
- package/api/components/parameters/screenshotId.ts +0 -9
- package/api/components/parameters/view.js.map +0 -1
- package/api/components/parameters/view.ts +0 -8
- package/api/components/requestBodies/index.js.map +0 -1
- package/api/components/requestBodies/index.ts +0 -3
- package/api/components/requestBodies/oauth2Consent.js.map +0 -1
- package/api/components/requestBodies/oauth2Consent.ts +0 -31
- package/api/components/requestBodies/resource.js.map +0 -1
- package/api/components/requestBodies/resource.ts +0 -31
- package/api/components/requestBodies/user.js.map +0 -1
- package/api/components/requestBodies/user.ts +0 -12
- package/api/components/responses/app.js.map +0 -1
- package/api/components/responses/app.ts +0 -12
- package/api/components/responses/blockVersion.js.map +0 -1
- package/api/components/responses/blockVersion.ts +0 -12
- package/api/components/responses/default.js.map +0 -1
- package/api/components/responses/default.ts +0 -10
- package/api/components/responses/index.js.map +0 -1
- package/api/components/responses/index.ts +0 -8
- package/api/components/responses/invite.js.map +0 -1
- package/api/components/responses/invite.ts +0 -12
- package/api/components/responses/oauth2AuthorizationCode.js.map +0 -1
- package/api/components/responses/oauth2AuthorizationCode.ts +0 -12
- package/api/components/responses/organization.js.map +0 -1
- package/api/components/responses/organization.ts +0 -12
- package/api/components/responses/resource.js.map +0 -1
- package/api/components/responses/resource.ts +0 -17
- package/api/components/responses/subscriptions.js.map +0 -1
- package/api/components/responses/subscriptions.ts +0 -16
- package/api/components/schemas/ActionDefinition.js.map +0 -1
- package/api/components/schemas/ActionDefinition.ts +0 -82
- package/api/components/schemas/AnalyticsActionDefinition.js.map +0 -1
- package/api/components/schemas/AnalyticsActionDefinition.ts +0 -25
- package/api/components/schemas/App.js.map +0 -1
- package/api/components/schemas/App.ts +0 -107
- package/api/components/schemas/AppAccount.js.map +0 -1
- package/api/components/schemas/AppAccount.ts +0 -39
- package/api/components/schemas/AppDefinition.js.map +0 -1
- package/api/components/schemas/AppDefinition.ts +0 -112
- package/api/components/schemas/AppLayoutDefinition.js.map +0 -1
- package/api/components/schemas/AppLayoutDefinition.ts +0 -39
- package/api/components/schemas/AppMessages.js.map +0 -1
- package/api/components/schemas/AppMessages.ts +0 -17
- package/api/components/schemas/AppOAuth2Secret.js.map +0 -1
- package/api/components/schemas/AppOAuth2Secret.ts +0 -65
- package/api/components/schemas/AppsembleMessages.js.map +0 -1
- package/api/components/schemas/AppsembleMessages.ts +0 -41
- package/api/components/schemas/Asset.js.map +0 -1
- package/api/components/schemas/Asset.ts +0 -33
- package/api/components/schemas/BaseActionDefinition.js.map +0 -1
- package/api/components/schemas/BaseActionDefinition.ts +0 -11
- package/api/components/schemas/BaseJSONSchema.js.map +0 -1
- package/api/components/schemas/BaseJSONSchema.ts +0 -25
- package/api/components/schemas/BasePageDefinition.js.map +0 -1
- package/api/components/schemas/BasePageDefinition.ts +0 -89
- package/api/components/schemas/BlockDefinition.js.map +0 -1
- package/api/components/schemas/BlockDefinition.ts +0 -86
- package/api/components/schemas/BlockVersion.js.map +0 -1
- package/api/components/schemas/BlockVersion.ts +0 -162
- package/api/components/schemas/ConditionActionDefinition.js.map +0 -1
- package/api/components/schemas/ConditionActionDefinition.ts +0 -30
- package/api/components/schemas/CronDefinition.js.map +0 -1
- package/api/components/schemas/CronDefinition.ts +0 -21
- package/api/components/schemas/CustomFontDefinition.js.map +0 -1
- package/api/components/schemas/CustomFontDefinition.ts +0 -21
- package/api/components/schemas/DialogActionDefinition.js.map +0 -1
- package/api/components/schemas/DialogActionDefinition.ts +0 -42
- package/api/components/schemas/DialogErrorActionDefinition.js.map +0 -1
- package/api/components/schemas/DialogErrorActionDefinition.ts +0 -17
- package/api/components/schemas/DialogOkActionDefinition.js.map +0 -1
- package/api/components/schemas/DialogOkActionDefinition.ts +0 -17
- package/api/components/schemas/DownloadActionDefinition.js.map +0 -1
- package/api/components/schemas/DownloadActionDefinition.ts +0 -19
- package/api/components/schemas/EachActionDefinition.js.map +0 -1
- package/api/components/schemas/EachActionDefinition.ts +0 -22
- package/api/components/schemas/EmailActionDefinition.js.map +0 -1
- package/api/components/schemas/EmailActionDefinition.ts +0 -58
- package/api/components/schemas/Error.js.map +0 -1
- package/api/components/schemas/Error.ts +0 -25
- package/api/components/schemas/EventActionDefinition.js.map +0 -1
- package/api/components/schemas/EventActionDefinition.ts +0 -28
- package/api/components/schemas/EventsDefinition.js.map +0 -1
- package/api/components/schemas/EventsDefinition.ts +0 -30
- package/api/components/schemas/FlowBackActionDefinition.js.map +0 -1
- package/api/components/schemas/FlowBackActionDefinition.ts +0 -16
- package/api/components/schemas/FlowFinishActionDefinition.js.map +0 -1
- package/api/components/schemas/FlowFinishActionDefinition.ts +0 -16
- package/api/components/schemas/FlowNextActionDefinition.js.map +0 -1
- package/api/components/schemas/FlowNextActionDefinition.ts +0 -17
- package/api/components/schemas/FlowPageActionsDefinition.js.map +0 -1
- package/api/components/schemas/FlowPageActionsDefinition.ts +0 -20
- package/api/components/schemas/FlowPageDefinition.js.map +0 -1
- package/api/components/schemas/FlowPageDefinition.ts +0 -37
- package/api/components/schemas/FlowToActionDefinition.js.map +0 -1
- package/api/components/schemas/FlowToActionDefinition.ts +0 -21
- package/api/components/schemas/GoogleFontDefinition.js.map +0 -1
- package/api/components/schemas/GoogleFontDefinition.ts +0 -24
- package/api/components/schemas/Health.js.map +0 -1
- package/api/components/schemas/Health.ts +0 -14
- package/api/components/schemas/JSONPointer.js.map +0 -1
- package/api/components/schemas/JSONPointer.ts +0 -20
- package/api/components/schemas/JSONSchema.js.map +0 -1
- package/api/components/schemas/JSONSchema.ts +0 -21
- package/api/components/schemas/JSONSchemaAnyOf.js.map +0 -1
- package/api/components/schemas/JSONSchemaAnyOf.ts +0 -27
- package/api/components/schemas/JSONSchemaArray.js.map +0 -1
- package/api/components/schemas/JSONSchemaArray.ts +0 -47
- package/api/components/schemas/JSONSchemaBoolean.js.map +0 -1
- package/api/components/schemas/JSONSchemaBoolean.ts +0 -37
- package/api/components/schemas/JSONSchemaConst.js.map +0 -1
- package/api/components/schemas/JSONSchemaConst.ts +0 -16
- package/api/components/schemas/JSONSchemaEnum.js.map +0 -1
- package/api/components/schemas/JSONSchemaEnum.ts +0 -36
- package/api/components/schemas/JSONSchemaInteger.js.map +0 -1
- package/api/components/schemas/JSONSchemaInteger.ts +0 -55
- package/api/components/schemas/JSONSchemaMultiType.js.map +0 -1
- package/api/components/schemas/JSONSchemaMultiType.ts +0 -48
- package/api/components/schemas/JSONSchemaNot.js.map +0 -1
- package/api/components/schemas/JSONSchemaNot.ts +0 -23
- package/api/components/schemas/JSONSchemaNull.js.map +0 -1
- package/api/components/schemas/JSONSchemaNull.ts +0 -16
- package/api/components/schemas/JSONSchemaNumber.js.map +0 -1
- package/api/components/schemas/JSONSchemaNumber.ts +0 -66
- package/api/components/schemas/JSONSchemaObject.js.map +0 -1
- package/api/components/schemas/JSONSchemaObject.ts +0 -74
- package/api/components/schemas/JSONSchemaOneOf.js.map +0 -1
- package/api/components/schemas/JSONSchemaOneOf.ts +0 -25
- package/api/components/schemas/JSONSchemaRemapper.js.map +0 -1
- package/api/components/schemas/JSONSchemaRemapper.ts +0 -19
- package/api/components/schemas/JSONSchemaRoot.js.map +0 -1
- package/api/components/schemas/JSONSchemaRoot.ts +0 -23
- package/api/components/schemas/JSONSchemaString.js.map +0 -1
- package/api/components/schemas/JSONSchemaString.ts +0 -116
- package/api/components/schemas/LinkActionDefinition.js.map +0 -1
- package/api/components/schemas/LinkActionDefinition.ts +0 -28
- package/api/components/schemas/LinkBackActionDefinition.js.map +0 -1
- package/api/components/schemas/LinkBackActionDefinition.ts +0 -14
- package/api/components/schemas/LinkNextActionDefinition.js.map +0 -1
- package/api/components/schemas/LinkNextActionDefinition.ts +0 -14
- package/api/components/schemas/LogActionDefinition.js.map +0 -1
- package/api/components/schemas/LogActionDefinition.ts +0 -22
- package/api/components/schemas/Member.js.map +0 -1
- package/api/components/schemas/Member.ts +0 -31
- package/api/components/schemas/MessageActionDefinition.js.map +0 -1
- package/api/components/schemas/MessageActionDefinition.ts +0 -36
- package/api/components/schemas/NoopActionDefinition.js.map +0 -1
- package/api/components/schemas/NoopActionDefinition.ts +0 -17
- package/api/components/schemas/NotificationHookDataDefinition.js.map +0 -1
- package/api/components/schemas/NotificationHookDataDefinition.ts +0 -25
- package/api/components/schemas/NotificationHookDefinition.js.map +0 -1
- package/api/components/schemas/NotificationHookDefinition.ts +0 -33
- package/api/components/schemas/OAuth2AuthorizationCode.js.map +0 -1
- package/api/components/schemas/OAuth2AuthorizationCode.ts +0 -15
- package/api/components/schemas/OAuth2ClientCredentials.js.map +0 -1
- package/api/components/schemas/OAuth2ClientCredentials.ts +0 -39
- package/api/components/schemas/ObjectRemapperDefinition.js.map +0 -1
- package/api/components/schemas/ObjectRemapperDefinition.ts +0 -453
- package/api/components/schemas/Organization.js.map +0 -1
- package/api/components/schemas/Organization.ts +0 -40
- package/api/components/schemas/PageDefinition.js.map +0 -1
- package/api/components/schemas/PageDefinition.ts +0 -23
- package/api/components/schemas/Rating.js.map +0 -1
- package/api/components/schemas/Rating.ts +0 -25
- package/api/components/schemas/RemapperDefinition.js.map +0 -1
- package/api/components/schemas/RemapperDefinition.ts +0 -35
- package/api/components/schemas/RequestActionDefinition.js.map +0 -1
- package/api/components/schemas/RequestActionDefinition.ts +0 -60
- package/api/components/schemas/Resource.js.map +0 -1
- package/api/components/schemas/Resource.ts +0 -20
- package/api/components/schemas/ResourceCountActionDefinition.js.map +0 -1
- package/api/components/schemas/ResourceCountActionDefinition.ts +0 -23
- package/api/components/schemas/ResourceCreateActionDefinition.js.map +0 -1
- package/api/components/schemas/ResourceCreateActionDefinition.ts +0 -22
- package/api/components/schemas/ResourceDefinition.js.map +0 -1
- package/api/components/schemas/ResourceDefinition.ts +0 -229
- package/api/components/schemas/ResourceDeleteActionDefinition.js.map +0 -1
- package/api/components/schemas/ResourceDeleteActionDefinition.ts +0 -22
- package/api/components/schemas/ResourceGetActionDefinition.js.map +0 -1
- package/api/components/schemas/ResourceGetActionDefinition.ts +0 -26
- package/api/components/schemas/ResourceHistoryDefinition.js.map +0 -1
- package/api/components/schemas/ResourceHistoryDefinition.ts +0 -15
- package/api/components/schemas/ResourceHooksDefinition.js.map +0 -1
- package/api/components/schemas/ResourceHooksDefinition.ts +0 -11
- package/api/components/schemas/ResourceQueryActionDefinition.js.map +0 -1
- package/api/components/schemas/ResourceQueryActionDefinition.ts +0 -26
- package/api/components/schemas/ResourceSubscription.js.map +0 -1
- package/api/components/schemas/ResourceSubscription.ts +0 -42
- package/api/components/schemas/ResourceSubscriptionStatusActionDefinition.js.map +0 -1
- package/api/components/schemas/ResourceSubscriptionStatusActionDefinition.ts +0 -23
- package/api/components/schemas/ResourceSubscriptionSubscribeActionDefinition.js.map +0 -1
- package/api/components/schemas/ResourceSubscriptionSubscribeActionDefinition.ts +0 -25
- package/api/components/schemas/ResourceSubscriptionToggleActionDefinition.js.map +0 -1
- package/api/components/schemas/ResourceSubscriptionToggleActionDefinition.ts +0 -22
- package/api/components/schemas/ResourceSubscriptionUnsubscribeActionDefinition.js.map +0 -1
- package/api/components/schemas/ResourceSubscriptionUnsubscribeActionDefinition.ts +0 -25
- package/api/components/schemas/ResourceUpdateActionDefinition.js.map +0 -1
- package/api/components/schemas/ResourceUpdateActionDefinition.ts +0 -22
- package/api/components/schemas/ResourceViewDefinition.js.map +0 -1
- package/api/components/schemas/ResourceViewDefinition.ts +0 -26
- package/api/components/schemas/SSLSecret.js.map +0 -1
- package/api/components/schemas/SSLSecret.ts +0 -17
- package/api/components/schemas/SSOConfiguration.js.map +0 -1
- package/api/components/schemas/SSOConfiguration.ts +0 -22
- package/api/components/schemas/SecurityDefaultDefinition.js.map +0 -1
- package/api/components/schemas/SecurityDefaultDefinition.ts +0 -29
- package/api/components/schemas/SecurityDefinition.js.map +0 -1
- package/api/components/schemas/SecurityDefinition.ts +0 -21
- package/api/components/schemas/SecurityRoleDefinition.js.map +0 -1
- package/api/components/schemas/SecurityRoleDefinition.ts +0 -29
- package/api/components/schemas/ShareActionDefinition.js.map +0 -1
- package/api/components/schemas/ShareActionDefinition.ts +0 -30
- package/api/components/schemas/StaticActionDefinition.js.map +0 -1
- package/api/components/schemas/StaticActionDefinition.ts +0 -20
- package/api/components/schemas/StorageAppendActionDefinition.js.map +0 -1
- package/api/components/schemas/StorageAppendActionDefinition.ts +0 -43
- package/api/components/schemas/StorageDeleteActionDefinition.js.map +0 -1
- package/api/components/schemas/StorageDeleteActionDefinition.ts +0 -31
- package/api/components/schemas/StorageReadActionDefinition.js.map +0 -1
- package/api/components/schemas/StorageReadActionDefinition.ts +0 -32
- package/api/components/schemas/StorageSubtractActionDefinition.js.map +0 -1
- package/api/components/schemas/StorageSubtractActionDefinition.ts +0 -35
- package/api/components/schemas/StorageUpdateActionDefinition.js.map +0 -1
- package/api/components/schemas/StorageUpdateActionDefinition.ts +0 -46
- package/api/components/schemas/StorageWriteActionDefinition.js.map +0 -1
- package/api/components/schemas/StorageWriteActionDefinition.ts +0 -42
- package/api/components/schemas/SubPage.js.map +0 -1
- package/api/components/schemas/SubPage.ts +0 -24
- package/api/components/schemas/TabsPageDefinition.js.map +0 -1
- package/api/components/schemas/TabsPageDefinition.ts +0 -22
- package/api/components/schemas/TeamInviteActionDefinition.js.map +0 -1
- package/api/components/schemas/TeamInviteActionDefinition.ts +0 -27
- package/api/components/schemas/TeamJoinActionDefinition.js.map +0 -1
- package/api/components/schemas/TeamJoinActionDefinition.ts +0 -14
- package/api/components/schemas/TeamListActionDefinition.js.map +0 -1
- package/api/components/schemas/TeamListActionDefinition.ts +0 -14
- package/api/components/schemas/TeamsDefinition.js.map +0 -1
- package/api/components/schemas/TeamsDefinition.ts +0 -30
- package/api/components/schemas/Theme.js.map +0 -1
- package/api/components/schemas/Theme.ts +0 -82
- package/api/components/schemas/ThrowActionDefinition.js.map +0 -1
- package/api/components/schemas/ThrowActionDefinition.ts +0 -17
- package/api/components/schemas/User.js.map +0 -1
- package/api/components/schemas/User.ts +0 -30
- package/api/components/schemas/UserEmail.js.map +0 -1
- package/api/components/schemas/UserEmail.ts +0 -24
- package/api/components/schemas/UserLoginActionDefinition.js.map +0 -1
- package/api/components/schemas/UserLoginActionDefinition.ts +0 -22
- package/api/components/schemas/UserRegisterActionDefinition.js.map +0 -1
- package/api/components/schemas/UserRegisterActionDefinition.ts +0 -33
- package/api/components/schemas/UserUpdateActionDefinition.js.map +0 -1
- package/api/components/schemas/UserUpdateActionDefinition.ts +0 -33
- package/api/components/schemas/index.js.map +0 -1
- package/api/components/schemas/index.ts +0 -108
- package/api/components/schemas/utils.js.map +0 -1
- package/api/components/schemas/utils.ts +0 -43
- package/api/components/securitySchemes/app.js.map +0 -1
- package/api/components/securitySchemes/app.ts +0 -33
- package/api/components/securitySchemes/basic.js.map +0 -1
- package/api/components/securitySchemes/basic.ts +0 -7
- package/api/components/securitySchemes/cli.js.map +0 -1
- package/api/components/securitySchemes/cli.test.js.map +0 -1
- package/api/components/securitySchemes/cli.test.ts +0 -6
- package/api/components/securitySchemes/cli.ts +0 -25
- package/api/components/securitySchemes/index.js.map +0 -1
- package/api/components/securitySchemes/index.ts +0 -4
- package/api/components/securitySchemes/studio.js.map +0 -1
- package/api/components/securitySchemes/studio.ts +0 -8
- package/api/index.js.map +0 -1
- package/api/index.test.js.map +0 -1
- package/api/index.test.ts +0 -196
- package/api/index.ts +0 -44
- package/api/paths/action.js.map +0 -1
- package/api/paths/action.ts +0 -55
- package/api/paths/appMessages.js.map +0 -1
- package/api/paths/appMessages.ts +0 -104
- package/api/paths/appOAuth2Secrets.js.map +0 -1
- package/api/paths/appOAuth2Secrets.ts +0 -152
- package/api/paths/appSSLSecrets.js.map +0 -1
- package/api/paths/appSSLSecrets.ts +0 -40
- package/api/paths/appSamlSecrets.js.map +0 -1
- package/api/paths/appSamlSecrets.ts +0 -85
- package/api/paths/apps.js.map +0 -1
- package/api/paths/apps.ts +0 -1394
- package/api/paths/appsembleMessages.js.map +0 -1
- package/api/paths/appsembleMessages.ts +0 -49
- package/api/paths/assets.js.map +0 -1
- package/api/paths/assets.ts +0 -139
- package/api/paths/blocks.js.map +0 -1
- package/api/paths/blocks.ts +0 -184
- package/api/paths/emails.js.map +0 -1
- package/api/paths/emails.ts +0 -164
- package/api/paths/health.js.map +0 -1
- package/api/paths/health.ts +0 -75
- package/api/paths/index.js.map +0 -1
- package/api/paths/index.ts +0 -45
- package/api/paths/invite.js.map +0 -1
- package/api/paths/invite.ts +0 -26
- package/api/paths/oauth2ClientCredentials.js.map +0 -1
- package/api/paths/oauth2ClientCredentials.ts +0 -79
- package/api/paths/oauth2Login.js.map +0 -1
- package/api/paths/oauth2Login.ts +0 -120
- package/api/paths/oauth2Provider.js.map +0 -1
- package/api/paths/oauth2Provider.ts +0 -73
- package/api/paths/organizations.js.map +0 -1
- package/api/paths/organizations.ts +0 -471
- package/api/paths/resourceHistory.js.map +0 -1
- package/api/paths/resourceHistory.ts +0 -32
- package/api/paths/resources.js.map +0 -1
- package/api/paths/resources.ts +0 -305
- package/api/paths/saml.js.map +0 -1
- package/api/paths/saml.ts +0 -127
- package/api/paths/templates.js.map +0 -1
- package/api/paths/templates.ts +0 -85
- package/api/paths/user.js.map +0 -1
- package/api/paths/user.ts +0 -481
- package/api/schema-tests/AppDefinition/invalid/additional-property.yaml +0 -11
- package/api/schema-tests/AppDefinition/invalid/empty-pages.yaml +0 -4
- package/api/schema-tests/AppDefinition/invalid/missing-default-page.yaml +0 -7
- package/api/schema-tests/AppDefinition/invalid/missing-name.yaml +0 -7
- package/api/schema-tests/AppDefinition/invalid/missing-pages.yaml +0 -2
- package/api/schema-tests/AppDefinition/valid/all-properties.yaml +0 -114
- package/api/schema-tests/AppDefinition/valid/minimal.yaml +0 -9
- package/api/schema-tests/FlowPageDefinition/invalid/missing-subPages.yaml +0 -2
- package/api/schema-tests/FlowPageDefinition/valid/flow.yaml +0 -15
- package/api/schema-tests/PageDefinition/invalid/additional-properties.yaml +0 -5
- package/api/schema-tests/PageDefinition/invalid/missing-blocks.yaml +0 -1
- package/api/schema-tests/PageDefinition/invalid/missing-name.yaml +0 -3
- package/api/schema-tests/PageDefinition/valid/all-properties.yaml +0 -15
- package/api/schema-tests/PageDefinition/valid/minimal.yaml +0 -5
- package/api/schema-tests/TabsPageDefinition/invalid/missing-subPages.yaml +0 -2
- package/api/schema-tests/TabsPageDefinition/valid/tabs.yaml +0 -7
- package/api/tags/app.js.map +0 -1
- package/api/tags/app.ts +0 -6
- package/api/tags/appMember.js.map +0 -1
- package/api/tags/appMember.ts +0 -6
- package/api/tags/asset.js.map +0 -1
- package/api/tags/asset.ts +0 -6
- package/api/tags/auth.js.map +0 -1
- package/api/tags/auth.ts +0 -6
- package/api/tags/index.js.map +0 -1
- package/api/tags/index.ts +0 -9
- package/api/tags/language.js.map +0 -1
- package/api/tags/language.ts +0 -6
- package/api/tags/organization.js.map +0 -1
- package/api/tags/organization.ts +0 -6
- package/api/tags/resource.js.map +0 -1
- package/api/tags/resource.ts +0 -6
- package/api/tags/template.js.map +0 -1
- package/api/tags/template.ts +0 -6
- package/api/tags/user.js.map +0 -1
- package/api/tags/user.ts +0 -6
- package/appMessages.js.map +0 -1
- package/appMessages.test.js.map +0 -1
- package/appMessages.test.ts +0 -432
- package/appMessages.ts +0 -145
- package/appSecurity.js.map +0 -1
- package/appSecurity.test.js.map +0 -1
- package/appSecurity.test.ts +0 -141
- package/appSecurity.ts +0 -48
- package/blockUtils.js.map +0 -1
- package/blockUtils.test.js.map +0 -1
- package/blockUtils.test.ts +0 -94
- package/blockUtils.ts +0 -76
- package/changed/added/.gitkeep +0 -0
- package/changed/changed/.gitkeep +0 -0
- package/changed/deprecated/.gitkeep +0 -0
- package/changed/fixed/.gitkeep +0 -0
- package/changed/removed/.gitkeep +0 -0
- package/changed/security/.gitkeep +0 -0
- package/checkAppRole.js.map +0 -1
- package/checkAppRole.ts +0 -49
- package/compare.js.map +0 -1
- package/compare.ts +0 -10
- package/constants/Permission.js.map +0 -1
- package/constants/Permission.ts +0 -95
- package/constants/asciiLogo.js.map +0 -1
- package/constants/asciiLogo.ts +0 -8
- package/constants/baseTheme.js.map +0 -1
- package/constants/baseTheme.ts +0 -17
- package/constants/date.js.map +0 -1
- package/constants/date.ts +0 -20
- package/constants/fonts.js.map +0 -1
- package/constants/fonts.ts +0 -1291
- package/constants/index.js.map +0 -1
- package/constants/index.ts +0 -9
- package/constants/locale.js.map +0 -1
- package/constants/locale.ts +0 -4
- package/constants/patterns.js.map +0 -1
- package/constants/patterns.test.js.map +0 -1
- package/constants/patterns.test.ts +0 -100
- package/constants/patterns.ts +0 -48
- package/constants/roles.js.map +0 -1
- package/constants/roles.ts +0 -49
- package/constants/scopes.js.map +0 -1
- package/constants/scopes.ts +0 -13
- package/convertToCsv.js.map +0 -1
- package/convertToCsv.test.js.map +0 -1
- package/convertToCsv.test.ts +0 -73
- package/convertToCsv.ts +0 -65
- package/formatRequestAction.js.map +0 -1
- package/formatRequestAction.ts +0 -16
- package/has.js.map +0 -1
- package/has.test.js.map +0 -1
- package/has.test.ts +0 -19
- package/has.ts +0 -10
- package/i18n.js.map +0 -1
- package/i18n.test.js.map +0 -1
- package/i18n.test.ts +0 -81
- package/i18n.ts +0 -55
- package/ics.js.map +0 -1
- package/ics.ts +0 -44
- package/index.js.map +0 -1
- package/index.ts +0 -29
- package/intl-messageformat.js.map +0 -1
- package/intl-messageformat.ts +0 -6
- package/iterApp.js.map +0 -1
- package/iterApp.test.js.map +0 -1
- package/iterApp.test.ts +0 -512
- package/iterApp.ts +0 -174
- package/jest.config.js +0 -3
- package/jsonschema.js.map +0 -1
- package/jsonschema.test.js.map +0 -1
- package/jsonschema.test.ts +0 -320
- package/jsonschema.ts +0 -222
- package/langmap.js.map +0 -1
- package/langmap.ts +0 -23
- package/mapValues.js.map +0 -1
- package/mapValues.test.js.map +0 -1
- package/mapValues.test.ts +0 -15
- package/mapValues.ts +0 -10
- package/miscellaneous.js.map +0 -1
- package/miscellaneous.test.js.map +0 -1
- package/miscellaneous.test.ts +0 -82
- package/miscellaneous.ts +0 -71
- package/noop.js.map +0 -1
- package/noop.ts +0 -5
- package/normalize.js.map +0 -1
- package/normalize.test.js.map +0 -1
- package/normalize.test.ts +0 -24
- package/normalize.ts +0 -23
- package/objectCache.js.map +0 -1
- package/objectCache.test.js.map +0 -1
- package/objectCache.test.ts +0 -19
- package/objectCache.ts +0 -22
- package/pem.js.map +0 -1
- package/pem.ts +0 -11
- package/prefix.js.map +0 -1
- package/prefix.test.js.map +0 -1
- package/prefix.test.ts +0 -11
- package/prefix.ts +0 -10
- package/remap.js.map +0 -1
- package/remap.test.js.map +0 -1
- package/remap.test.ts +0 -1039
- package/remap.ts +0 -455
- package/string.js.map +0 -1
- package/string.test.js.map +0 -1
- package/string.test.ts +0 -29
- package/string.ts +0 -31
- package/theme.js.map +0 -1
- package/theme.test.js.map +0 -1
- package/theme.test.ts +0 -99
- package/theme.ts +0 -38
- package/tsconfig.json +0 -6
- package/types.js.map +0 -1
- package/types.ts +0 -6
- package/validateStyle.js.map +0 -1
- package/validateStyle.test.js.map +0 -1
- package/validateStyle.test.ts +0 -14
- package/validateStyle.ts +0 -19
- package/validation.js.map +0 -1
- package/validation.test.js.map +0 -1
- package/validation.test.ts +0 -1915
- package/validation.ts +0 -767
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
#  Appsemble Utilities
|
|
2
2
|
|
|
3
3
|
> Internal utility functions used across multiple Appsemble projects.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@appsemble/utils)
|
|
6
|
-
[](https://gitlab.com/appsemble/appsemble/-/releases/0.20.29)
|
|
7
|
+
[](https://codecov.io/gl/appsemble/appsemble)
|
|
8
8
|
[](https://prettier.io)
|
|
9
9
|
|
|
10
10
|
## Installation
|
|
@@ -21,5 +21,5 @@ not guaranteed.
|
|
|
21
21
|
|
|
22
22
|
## License
|
|
23
23
|
|
|
24
|
-
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.20.
|
|
24
|
+
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.20.29/LICENSE.md) ©
|
|
25
25
|
[Appsemble](https://appsemble.com)
|
|
@@ -87,6 +87,7 @@ The most basic resource has a \`schema\` property and defines the minimal securi
|
|
|
87
87
|
{ $ref: '#/components/schemas/PageDefinition' },
|
|
88
88
|
{ $ref: '#/components/schemas/TabsPageDefinition' },
|
|
89
89
|
{ $ref: '#/components/schemas/FlowPageDefinition' },
|
|
90
|
+
{ $ref: '#/components/schemas/LoopPageDefinition' },
|
|
90
91
|
],
|
|
91
92
|
},
|
|
92
93
|
},
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export const LoopPageActionsDefinition = {
|
|
2
|
+
type: 'object',
|
|
3
|
+
description: 'These actions are fired on a loop page.',
|
|
4
|
+
required: ['onLoad'],
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
properties: {
|
|
7
|
+
onLoad: {
|
|
8
|
+
$ref: '#/components/schemas/ActionDefinition',
|
|
9
|
+
description: 'This action is used to define the data to pass onto the loop type array',
|
|
10
|
+
},
|
|
11
|
+
onFlowCancel: {
|
|
12
|
+
$ref: '#/components/schemas/ActionDefinition',
|
|
13
|
+
description: 'This action gets triggered when `flow.cancel` gets called.',
|
|
14
|
+
},
|
|
15
|
+
onFlowFinish: {
|
|
16
|
+
$ref: '#/components/schemas/ActionDefinition',
|
|
17
|
+
description: `This action gets triggered when a flow is finished.
|
|
18
|
+
|
|
19
|
+
A flow is finished when \`flow.finish\` gets called, or when \`flow.next\` gets called on the final
|
|
20
|
+
subpage. This action has a special property in which the cumulative input data from each previous subpage gets sent, instead of the individual block that triggered this action.`,
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=LoopPageActionsDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LoopPageDefinition: import("openapi-types").OpenAPIV3.SchemaObject;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { BasePageDefinition } from './BasePageDefinition.js';
|
|
2
|
+
import { extendJSONSchema } from './utils.js';
|
|
3
|
+
export const LoopPageDefinition = extendJSONSchema(BasePageDefinition, {
|
|
4
|
+
type: 'object',
|
|
5
|
+
description: `This describes what a loop page will look like in the app.
|
|
6
|
+
|
|
7
|
+
!!
|
|
8
|
+
This feature is still under development and is very unstable
|
|
9
|
+
!!
|
|
10
|
+
|
|
11
|
+
`,
|
|
12
|
+
required: ['type', 'foreach', 'actions'],
|
|
13
|
+
additionalProperties: false,
|
|
14
|
+
properties: {
|
|
15
|
+
type: {
|
|
16
|
+
enum: ['loop'],
|
|
17
|
+
},
|
|
18
|
+
actions: {
|
|
19
|
+
$ref: '#/components/schemas/LoopPageActionsDefinition',
|
|
20
|
+
},
|
|
21
|
+
foreach: {
|
|
22
|
+
$ref: '#/components/schemas/SubPage',
|
|
23
|
+
},
|
|
24
|
+
progress: {
|
|
25
|
+
description: 'The method that should be used to display the status of flow pages.',
|
|
26
|
+
enum: ['corner-dots', 'hidden'],
|
|
27
|
+
},
|
|
28
|
+
retainFlowData: {
|
|
29
|
+
type: 'boolean',
|
|
30
|
+
description: `Whether to retain the flow data when navigating away to another page outside the flow.
|
|
31
|
+
|
|
32
|
+
By default the flow page retains it's data after navigating once. Set to false to clear it.
|
|
33
|
+
`,
|
|
34
|
+
default: true,
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=LoopPageDefinition.js.map
|
|
@@ -99,6 +99,10 @@ If the input is not an array an empty array is returned.`,
|
|
|
99
99
|
Returns \`true\` if all entries are equal, otherwise \`false\`.
|
|
100
100
|
`,
|
|
101
101
|
},
|
|
102
|
+
step: {
|
|
103
|
+
type: 'string',
|
|
104
|
+
description: 'Get flow page step current data',
|
|
105
|
+
},
|
|
102
106
|
gt: {
|
|
103
107
|
type: 'array',
|
|
104
108
|
description: `Compare the first computed remapper value with the second computed remapper value.
|
|
@@ -106,3 +106,5 @@ export * from './UserEmail.js';
|
|
|
106
106
|
export * from './UserLoginActionDefinition.js';
|
|
107
107
|
export * from './UserRegisterActionDefinition.js';
|
|
108
108
|
export * from './UserUpdateActionDefinition.js';
|
|
109
|
+
export * from './LoopPageDefinition.js';
|
|
110
|
+
export * from './LoopPageActionsDefinition.js';
|
|
@@ -106,4 +106,6 @@ export * from './UserEmail.js';
|
|
|
106
106
|
export * from './UserLoginActionDefinition.js';
|
|
107
107
|
export * from './UserRegisterActionDefinition.js';
|
|
108
108
|
export * from './UserUpdateActionDefinition.js';
|
|
109
|
+
export * from './LoopPageDefinition.js';
|
|
110
|
+
export * from './LoopPageActionsDefinition.js';
|
|
109
111
|
//# sourceMappingURL=index.js.map
|
package/appMessages.js
CHANGED
|
@@ -90,7 +90,7 @@ export function extractAppMessages(app, onBlock) {
|
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
onPage(page) {
|
|
93
|
-
var _a, _b;
|
|
93
|
+
var _a, _b, _c;
|
|
94
94
|
const prefix = `pages.${normalize(page.name)}`;
|
|
95
95
|
messages.app[prefix] = page.name;
|
|
96
96
|
if (page.type === 'tabs') {
|
|
@@ -103,6 +103,9 @@ export function extractAppMessages(app, onBlock) {
|
|
|
103
103
|
messages.app[`${prefix}.steps.${index}`] = (_b = step.name) !== null && _b !== void 0 ? _b : '';
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
+
if (page.type === 'loop') {
|
|
107
|
+
messages.app[`${prefix}.step`] = (_c = page.foreach.name) !== null && _c !== void 0 ? _c : '';
|
|
108
|
+
}
|
|
106
109
|
},
|
|
107
110
|
});
|
|
108
111
|
return messages;
|
package/iterApp.js
CHANGED
|
@@ -94,6 +94,9 @@ export function iterPage(page, callbacks, prefix = []) {
|
|
|
94
94
|
? page.steps.some((step, index) => iterBlockList(step.blocks, callbacks, [...prefix, 'steps', index, 'blocks']))
|
|
95
95
|
: page.tabs.some((tab, index) => iterBlockList(tab.blocks, callbacks, [...prefix, 'tabs', index, 'blocks']))));
|
|
96
96
|
}
|
|
97
|
+
if (page.type === 'loop') {
|
|
98
|
+
return iterBlockList(page.foreach.blocks, callbacks, [...prefix, 'blocks']);
|
|
99
|
+
}
|
|
97
100
|
return iterBlockList(page.blocks, callbacks, [...prefix, 'blocks']);
|
|
98
101
|
}
|
|
99
102
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appsemble/utils",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.29",
|
|
4
4
|
"description": "Utility functions used in Appsemble internally",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"app",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"test": "NODE_OPTIONS=--experimental-vm-modules jest"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@appsemble/types": "0.20.
|
|
34
|
+
"@appsemble/types": "0.20.29",
|
|
35
35
|
"axios": "^0.27.0",
|
|
36
36
|
"cron-parser": "^4.0.0",
|
|
37
37
|
"date-fns": "^2.0.0",
|
package/remap.d.ts
CHANGED
|
@@ -52,6 +52,9 @@ interface InternalContext extends RemapperContext {
|
|
|
52
52
|
index: number;
|
|
53
53
|
length: number;
|
|
54
54
|
};
|
|
55
|
+
stepRef?: {
|
|
56
|
+
current: Record<string, any>;
|
|
57
|
+
};
|
|
55
58
|
}
|
|
56
59
|
export declare function remap(remapper: Remapper, input: unknown, context: InternalContext | RemapperContext): unknown;
|
|
57
60
|
export {};
|
package/remap.js
CHANGED
|
@@ -88,6 +88,9 @@ const mapperImplementations = {
|
|
|
88
88
|
const values = mappers.map((mapper) => remap(mapper, input, context));
|
|
89
89
|
return values.every((value) => equal(values[0], value));
|
|
90
90
|
},
|
|
91
|
+
step(mapper, input, context) {
|
|
92
|
+
return context.stepRef.current[mapper];
|
|
93
|
+
},
|
|
91
94
|
gt: ([left, right], input, context) => remap(left, input, context) > remap(right, input, context),
|
|
92
95
|
lt: ([left, right], input, context) => remap(left, input, context) < remap(right, input, context),
|
|
93
96
|
ics(mappers, input, context) {
|
package/validation.js
CHANGED
|
@@ -426,11 +426,8 @@ function validateActions(definition, report) {
|
|
|
426
426
|
}
|
|
427
427
|
if (action.type.startsWith('flow.')) {
|
|
428
428
|
const page = (_f = definition.pages) === null || _f === void 0 ? void 0 : _f[Number(path[1])];
|
|
429
|
-
if (
|
|
430
|
-
report(action.type, 'flow actions can only be used on pages with the type ‘flow’', [
|
|
431
|
-
...path,
|
|
432
|
-
'type',
|
|
433
|
-
]);
|
|
429
|
+
if (page.type !== 'flow' && page.type !== 'loop') {
|
|
430
|
+
report(action.type, 'flow actions can only be used on pages with the type ‘flow’ or ‘loop’', [...path, 'type']);
|
|
434
431
|
return;
|
|
435
432
|
}
|
|
436
433
|
if (action.type === 'flow.cancel' && !((_g = page.actions) === null || _g === void 0 ? void 0 : _g.onFlowCancel)) {
|
|
@@ -451,13 +448,16 @@ function validateActions(definition, report) {
|
|
|
451
448
|
report(action.type, 'is not allowed on the first step in the flow', [...path, 'type']);
|
|
452
449
|
return;
|
|
453
450
|
}
|
|
454
|
-
if (
|
|
451
|
+
if (page.type === 'flow' &&
|
|
452
|
+
action.type === 'flow.next' &&
|
|
455
453
|
Number(path[3]) === page.steps.length - 1 &&
|
|
456
454
|
!((_j = page.actions) === null || _j === void 0 ? void 0 : _j.onFlowFinish)) {
|
|
457
455
|
report(action.type, 'was defined on the last step but ‘onFlowFinish’ page action wasn’t defined', [...path, 'type']);
|
|
458
456
|
return;
|
|
459
457
|
}
|
|
460
|
-
if (
|
|
458
|
+
if (page.type === 'flow' &&
|
|
459
|
+
action.type === 'flow.to' &&
|
|
460
|
+
!page.steps.some((step) => step.name === action.step)) {
|
|
461
461
|
report(action.type, 'refers to a step that doesn’t exist', [...path, 'step']);
|
|
462
462
|
return;
|
|
463
463
|
}
|
package/validation.test.js
CHANGED
|
@@ -1387,7 +1387,7 @@ describe('validateAppDefinition', () => {
|
|
|
1387
1387
|
]);
|
|
1388
1388
|
expect(result.valid).toBe(false);
|
|
1389
1389
|
expect(result.errors).toStrictEqual([
|
|
1390
|
-
new ValidationError('flow actions can only be used on pages with the type ‘flow’', 'flow.next', undefined, ['pages', 0, 'blocks', 0, 'actions', 'onWhatever', 'type']),
|
|
1390
|
+
new ValidationError('flow actions can only be used on pages with the type ‘flow’ or ‘loop’', 'flow.next', undefined, ['pages', 0, 'blocks', 0, 'actions', 'onWhatever', 'type']),
|
|
1391
1391
|
]);
|
|
1392
1392
|
});
|
|
1393
1393
|
it('should report an error if flow.back is used on the first step', async () => {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,eAAe,MAAM,4BAA4B,CAAC;AAE9D,MAAM,CAAC,MAAM,UAAU,GAA+B;IACpD,UAAU;IACV,aAAa;IACb,SAAS;IACT,OAAO;IACP,eAAe;CAChB,CAAC"}
|
package/api/components/index.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
|
|
3
|
-
import * as parameters from './parameters/index.js';
|
|
4
|
-
import * as requestBodies from './requestBodies/index.js';
|
|
5
|
-
import * as responses from './responses/index.js';
|
|
6
|
-
import * as schemas from './schemas/index.js';
|
|
7
|
-
import * as securitySchemes from './securitySchemes/index.js';
|
|
8
|
-
|
|
9
|
-
export const components: OpenAPIV3.ComponentsObject = {
|
|
10
|
-
parameters,
|
|
11
|
-
requestBodies,
|
|
12
|
-
responses,
|
|
13
|
-
schemas,
|
|
14
|
-
securitySchemes,
|
|
15
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"$filter.js","sourceRoot":"","sources":["$filter.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,OAAO,GAA8B;IAChD,IAAI,EAAE,SAAS;IACf,EAAE,EAAE,OAAO;IACX,WAAW,EAAE;;;;GAIZ;IACD,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;CAC3B,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
|
|
3
|
-
export const $filter: OpenAPIV3.ParameterObject = {
|
|
4
|
-
name: '$filter',
|
|
5
|
-
in: 'query',
|
|
6
|
-
description: `
|
|
7
|
-
An OData filter
|
|
8
|
-
|
|
9
|
-
http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionfilter
|
|
10
|
-
`,
|
|
11
|
-
schema: { type: 'string' },
|
|
12
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"$orderby.js","sourceRoot":"","sources":["$orderby.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAA8B;IACjD,IAAI,EAAE,UAAU;IAChB,EAAE,EAAE,OAAO;IACX,WAAW,EAAE;;;;GAIZ;IACD,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;CAC3B,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
|
|
3
|
-
export const $orderby: OpenAPIV3.ParameterObject = {
|
|
4
|
-
name: '$orderby',
|
|
5
|
-
in: 'query',
|
|
6
|
-
description: `
|
|
7
|
-
An OData filter
|
|
8
|
-
|
|
9
|
-
http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionfilter
|
|
10
|
-
`,
|
|
11
|
-
schema: { type: 'string' },
|
|
12
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"$select.js","sourceRoot":"","sources":["$select.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,OAAO,GAA8B;IAChD,IAAI,EAAE,SAAS;IACf,EAAE,EAAE,OAAO;IACX,WAAW,EAAE;;;;;;;GAOZ;IACD,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;CAC3B,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
|
|
3
|
-
export const $select: OpenAPIV3.ParameterObject = {
|
|
4
|
-
name: '$select',
|
|
5
|
-
in: 'query',
|
|
6
|
-
description: `
|
|
7
|
-
The OData \`$select\` query option.
|
|
8
|
-
|
|
9
|
-
This is a comma separated string of fields to select. Only filtering flat properties is
|
|
10
|
-
supported.
|
|
11
|
-
|
|
12
|
-
http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionselect
|
|
13
|
-
`,
|
|
14
|
-
schema: { type: 'string' },
|
|
15
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"$team.js","sourceRoot":"","sources":["$team.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEvD,MAAM,CAAC,MAAM,KAAK,GAA8B;IAC9C,IAAI,EAAE,OAAO;IACb,EAAE,EAAE,OAAO;IACX,WAAW,EACT,sFAAsF;IACxF,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE;CAC1C,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
|
|
3
|
-
import { TeamRole } from '../../../constants/index.js';
|
|
4
|
-
|
|
5
|
-
export const $team: OpenAPIV3.ParameterObject = {
|
|
6
|
-
name: '$team',
|
|
7
|
-
in: 'query',
|
|
8
|
-
description:
|
|
9
|
-
'A custom filter for filtering the query by teams the requesting user is a member of.',
|
|
10
|
-
schema: { enum: Object.values(TeamRole) },
|
|
11
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"$top.js","sourceRoot":"","sources":["$top.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,IAAI,GAA8B;IAC7C,IAAI,EAAE,MAAM;IACZ,EAAE,EAAE,OAAO;IACX,WAAW,EAAE,wCAAwC;IACrD,oFAAoF;IACpF,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;CAC3B,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
|
|
3
|
-
export const $top: OpenAPIV3.ParameterObject = {
|
|
4
|
-
name: '$top',
|
|
5
|
-
in: 'query',
|
|
6
|
-
description: 'Limit the number of entities returned.',
|
|
7
|
-
// XXX The type should be integer. This doesn’t work due to an upstream bug in Koas.
|
|
8
|
-
schema: { type: 'string' },
|
|
9
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"appId.js","sourceRoot":"","sources":["appId.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,KAAK,GAA8B;IAC9C,IAAI,EAAE,OAAO;IACb,EAAE,EAAE,MAAM;IACV,WAAW,EAAE,oDAAoD;IACjE,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,EAAE,IAAI,EAAE,wCAAwC,EAAE;CAC3D,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
|
|
3
|
-
export const appId: OpenAPIV3.ParameterObject = {
|
|
4
|
-
name: 'appId',
|
|
5
|
-
in: 'path',
|
|
6
|
-
description: 'The ID of the app on which to perform an operation',
|
|
7
|
-
required: true,
|
|
8
|
-
schema: { $ref: '#/components/schemas/App/properties/id' },
|
|
9
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"appOAuth2SecretId.js","sourceRoot":"","sources":["appOAuth2SecretId.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,iBAAiB,GAA8B;IAC1D,IAAI,EAAE,mBAAmB;IACzB,EAAE,EAAE,MAAM;IACV,WAAW,EAAE,kEAAkE;IAC/E,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,EAAE,IAAI,EAAE,oDAAoD,EAAE;CACvE,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
|
|
3
|
-
export const appOAuth2SecretId: OpenAPIV3.ParameterObject = {
|
|
4
|
-
name: 'appOAuth2SecretId',
|
|
5
|
-
in: 'path',
|
|
6
|
-
description: 'The ID of the app OAuth2 secret on which to perform an operation',
|
|
7
|
-
required: true,
|
|
8
|
-
schema: { $ref: '#/components/schemas/AppOAuth2Secret/properties/id' },
|
|
9
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"appSamlSecretId.js","sourceRoot":"","sources":["appSamlSecretId.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAA8B;IACxD,IAAI,EAAE,iBAAiB;IACvB,EAAE,EAAE,MAAM;IACV,WAAW,EAAE,gEAAgE;IAC7E,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE;QACN,IAAI,EAAE,QAAQ;QACd,4DAA4D;KAC7D;CACF,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
|
|
3
|
-
export const appSamlSecretId: OpenAPIV3.ParameterObject = {
|
|
4
|
-
name: 'appSamlSecretId',
|
|
5
|
-
in: 'path',
|
|
6
|
-
description: 'The ID of the app SAML secret on which to perform an operation',
|
|
7
|
-
required: true,
|
|
8
|
-
schema: {
|
|
9
|
-
type: 'string',
|
|
10
|
-
// $ref: '#/components/schemas/AppSamlSecret/properties/id'
|
|
11
|
-
},
|
|
12
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assetId.js","sourceRoot":"","sources":["assetId.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,OAAO,GAA8B;IAChD,IAAI,EAAE,SAAS;IACf,EAAE,EAAE,MAAM;IACV,WAAW,EAAE,sDAAsD;IACnE,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,EAAE,IAAI,EAAE,0CAA0C,EAAE;CAC7D,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
|
|
3
|
-
export const assetId: OpenAPIV3.ParameterObject = {
|
|
4
|
-
name: 'assetId',
|
|
5
|
-
in: 'path',
|
|
6
|
-
description: 'The ID of the asset on which to perform an operation',
|
|
7
|
-
required: true,
|
|
8
|
-
schema: { $ref: '#/components/schemas/Asset/properties/id' },
|
|
9
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blockId.js","sourceRoot":"","sources":["blockId.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD,MAAM,CAAC,MAAM,OAAO,GAA8B;IAChD,IAAI,EAAE,SAAS;IACf,EAAE,EAAE,MAAM;IACV,WAAW,EACT,2FAA2F;IAC7F,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE;QACN,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,UAAU,CAAC,MAAM;KAC3B;CACF,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
|
|
3
|
-
import { normalized } from '../../../constants/index.js';
|
|
4
|
-
|
|
5
|
-
export const blockId: OpenAPIV3.ParameterObject = {
|
|
6
|
-
name: 'blockId',
|
|
7
|
-
in: 'path',
|
|
8
|
-
description:
|
|
9
|
-
'The ID of the block on which to perform an operation, but without the organization scope.',
|
|
10
|
-
required: true,
|
|
11
|
-
schema: {
|
|
12
|
-
type: 'string',
|
|
13
|
-
pattern: normalized.source,
|
|
14
|
-
},
|
|
15
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blockVersion.js","sourceRoot":"","sources":["blockVersion.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAA8B;IACrD,IAAI,EAAE,cAAc;IACpB,EAAE,EAAE,MAAM;IACV,WAAW,EAAE,4DAA4D;IACzE,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,EAAE,IAAI,EAAE,sDAAsD,EAAE;CACzE,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
|
|
3
|
-
export const blockVersion: OpenAPIV3.ParameterObject = {
|
|
4
|
-
name: 'blockVersion',
|
|
5
|
-
in: 'path',
|
|
6
|
-
description: 'The version of the block on which to perform an operation.',
|
|
7
|
-
required: true,
|
|
8
|
-
schema: { $ref: '#/components/schemas/BlockVersion/properties/version' },
|
|
9
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"endpoint.js","sourceRoot":"","sources":["endpoint.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAA8B;IACjD,IAAI,EAAE,UAAU;IAChB,EAAE,EAAE,OAAO;IACX,WAAW,EAAE,2DAA2D;IACxE,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE;CAC1C,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
|
|
3
|
-
export const endpoint: OpenAPIV3.ParameterObject = {
|
|
4
|
-
name: 'endpoint',
|
|
5
|
-
in: 'query',
|
|
6
|
-
description: 'The URL of the endpoint associated with the subscription.',
|
|
7
|
-
required: true,
|
|
8
|
-
schema: { type: 'string', format: 'uri' },
|
|
9
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export * from './$filter.js';
|
|
2
|
-
export * from './$orderby.js';
|
|
3
|
-
export * from './$select.js';
|
|
4
|
-
export * from './$team.js';
|
|
5
|
-
export * from './$top.js';
|
|
6
|
-
export * from './appId.js';
|
|
7
|
-
export * from './appOAuth2SecretId.js';
|
|
8
|
-
export * from './appSamlSecretId.js';
|
|
9
|
-
export * from './assetId.js';
|
|
10
|
-
export * from './blockId.js';
|
|
11
|
-
export * from './blockVersion.js';
|
|
12
|
-
export * from './endpoint.js';
|
|
13
|
-
export * from './language.js';
|
|
14
|
-
export * from './organizationId.js';
|
|
15
|
-
export * from './resourceId.js';
|
|
16
|
-
export * from './resourceType.js';
|
|
17
|
-
export * from './screenshotId.js';
|
|
18
|
-
export * from './view.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"language.js","sourceRoot":"","sources":["language.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAA8B;IACjD,IAAI,EAAE,UAAU;IAChB,EAAE,EAAE,MAAM;IACV,WAAW,EAAE,+CAA+C;IAC5D,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;CAC3B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"organizationId.js","sourceRoot":"","sources":["organizationId.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAA8B;IACvD,IAAI,EAAE,gBAAgB;IACtB,EAAE,EAAE,MAAM;IACV,WAAW,EAAE,6DAA6D;IAC1E,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,EAAE,IAAI,EAAE,iDAAiD,EAAE;CACpE,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
|
|
3
|
-
export const organizationId: OpenAPIV3.ParameterObject = {
|
|
4
|
-
name: 'organizationId',
|
|
5
|
-
in: 'path',
|
|
6
|
-
description: 'The ID of the organization on which to perform an operation',
|
|
7
|
-
required: true,
|
|
8
|
-
schema: { $ref: '#/components/schemas/Organization/properties/id' },
|
|
9
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resourceId.js","sourceRoot":"","sources":["resourceId.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAA8B;IACnD,IAAI,EAAE,YAAY;IAClB,EAAE,EAAE,MAAM;IACV,WAAW,EAAE,yDAAyD;IACtE,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,EAAE,IAAI,EAAE,6CAA6C,EAAE;CAChE,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
|
|
3
|
-
export const resourceId: OpenAPIV3.ParameterObject = {
|
|
4
|
-
name: 'resourceId',
|
|
5
|
-
in: 'path',
|
|
6
|
-
description: 'The ID of the resource on which to perform an operation',
|
|
7
|
-
required: true,
|
|
8
|
-
schema: { $ref: '#/components/schemas/Resource/properties/id' },
|
|
9
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resourceType.js","sourceRoot":"","sources":["resourceType.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAA8B;IACrD,IAAI,EAAE,cAAc;IACpB,EAAE,EAAE,MAAM;IACV,WAAW,EAAE,2DAA2D;IACxE,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE;QACN,IAAI,EAAE,QAAQ;KACf;CACF,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
|
|
3
|
-
export const resourceType: OpenAPIV3.ParameterObject = {
|
|
4
|
-
name: 'resourceType',
|
|
5
|
-
in: 'path',
|
|
6
|
-
description: 'The type of the resource on which to perform an operation',
|
|
7
|
-
required: true,
|
|
8
|
-
schema: {
|
|
9
|
-
type: 'string',
|
|
10
|
-
},
|
|
11
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"screenshotId.js","sourceRoot":"","sources":["screenshotId.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAA8B;IACrD,IAAI,EAAE,cAAc;IACpB,EAAE,EAAE,MAAM;IACV,WAAW,EAAE,qCAAqC;IAClD,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;CAC3B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"view.js","sourceRoot":"","sources":["view.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,IAAI,GAA8B;IAC7C,IAAI,EAAE,MAAM;IACZ,EAAE,EAAE,OAAO;IACX,WAAW,EAAE,oCAAoC;IACjD,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;CAC3B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oauth2Consent.js","sourceRoot":"","sources":["oauth2Consent.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAgC;IACxD,WAAW,EAAE,+BAA+B;IAC5C,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACP,kBAAkB,EAAE;YAClB,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC;gBAC3C,WAAW,EAAE,wEAAwE;gBACrF,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,KAAK,EAAE;wBACL,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,6CAA6C;qBAC3D;oBACD,WAAW,EAAE;wBACX,IAAI,EAAE,QAAQ;wBACd,MAAM,EAAE,KAAK;wBACb,WAAW,EAAE,uCAAuC;qBACrD;oBACD,KAAK,EAAE;wBACL,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,wCAAwC;qBACtD;iBACF;aACF;SACF;KACF;CACF,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
|
|
3
|
-
export const oauth2Consent: OpenAPIV3.RequestBodyObject = {
|
|
4
|
-
description: 'The OAuth2 client credentials',
|
|
5
|
-
required: true,
|
|
6
|
-
content: {
|
|
7
|
-
'application/json': {
|
|
8
|
-
schema: {
|
|
9
|
-
type: 'object',
|
|
10
|
-
required: ['appId', 'redirectUri', 'scope'],
|
|
11
|
-
description: 'A representation of a user’s OAuth2 consent when logging in to an app.',
|
|
12
|
-
additionalProperties: false,
|
|
13
|
-
properties: {
|
|
14
|
-
appId: {
|
|
15
|
-
type: 'number',
|
|
16
|
-
description: 'The app ID to manage the OAuth2 consent for',
|
|
17
|
-
},
|
|
18
|
-
redirectUri: {
|
|
19
|
-
type: 'string',
|
|
20
|
-
format: 'uri',
|
|
21
|
-
description: 'The URI to redirect the user back to.',
|
|
22
|
-
},
|
|
23
|
-
scope: {
|
|
24
|
-
type: 'string',
|
|
25
|
-
description: 'The OAuth2 scope requested by the app.',
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
};
|