@nocobase/plugin-flow-engine 2.1.0-alpha.13 → 2.1.0-alpha.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai/ai-employees/nathan/index.js +1 -112
- package/dist/ai/ai-employees/nathan/prompt.md +132 -0
- package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/getContextApis.js +2 -2
- package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/getContextEnvs.js +2 -2
- package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/getContextVars.js +2 -2
- package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/lintAndTestJS.js +2 -2
- package/dist/client/index.js +1 -1
- package/dist/externalVersion.js +10 -13
- package/dist/node_modules/ses/package.json +1 -1
- package/dist/node_modules/zod/package.json +1 -1
- package/dist/server/flow-surfaces/action-scope.d.ts +37 -0
- package/dist/server/flow-surfaces/action-scope.js +146 -0
- package/dist/server/flow-surfaces/builder.d.ts +209 -0
- package/dist/server/flow-surfaces/builder.js +858 -0
- package/dist/server/flow-surfaces/catalog.d.ts +65 -0
- package/dist/server/flow-surfaces/catalog.js +2766 -0
- package/dist/server/flow-surfaces/chart-config.d.ts +121 -0
- package/dist/server/flow-surfaces/chart-config.js +1394 -0
- package/dist/server/flow-surfaces/compiler.d.ts +22 -0
- package/dist/server/flow-surfaces/compiler.js +1129 -0
- package/dist/server/flow-surfaces/configure-options.d.ts +23 -0
- package/dist/server/flow-surfaces/configure-options.js +671 -0
- package/dist/server/flow-surfaces/constants.d.ts +13 -0
- package/dist/server/flow-surfaces/constants.js +137 -0
- package/dist/server/flow-surfaces/context.d.ts +72 -0
- package/dist/server/flow-surfaces/context.js +556 -0
- package/dist/server/flow-surfaces/contract-guard.d.ts +19 -0
- package/dist/server/flow-surfaces/contract-guard.js +411 -0
- package/dist/server/flow-surfaces/errors.d.ts +47 -0
- package/dist/server/flow-surfaces/errors.js +145 -0
- package/dist/server/flow-surfaces/executor.d.ts +13 -0
- package/dist/server/flow-surfaces/executor.js +97 -0
- package/dist/server/flow-surfaces/field-semantics.d.ts +15 -0
- package/dist/server/flow-surfaces/field-semantics.js +80 -0
- package/dist/server/{flow-schema-registry → flow-surfaces}/index.d.ts +3 -2
- package/dist/server/flow-surfaces/index.js +352 -0
- package/dist/server/flow-surfaces/locator.d.ts +28 -0
- package/dist/server/flow-surfaces/locator.js +238 -0
- package/dist/server/flow-surfaces/placement.d.ts +33 -0
- package/dist/server/flow-surfaces/placement.js +192 -0
- package/dist/server/flow-surfaces/route-sync.d.ts +47 -0
- package/dist/server/flow-surfaces/route-sync.js +392 -0
- package/dist/server/flow-surfaces/service.d.ts +530 -0
- package/dist/server/flow-surfaces/service.js +7736 -0
- package/dist/server/flow-surfaces/support-matrix.d.ts +28 -0
- package/dist/server/flow-surfaces/support-matrix.js +246 -0
- package/dist/server/flow-surfaces/surface-context.d.ts +51 -0
- package/dist/server/flow-surfaces/surface-context.js +356 -0
- package/dist/server/flow-surfaces/types.d.ts +192 -0
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +6 -4
- package/dist/server/plugin.d.ts +0 -3
- package/dist/server/plugin.js +7 -36
- package/dist/server/repository.d.ts +9 -68
- package/dist/server/repository.js +106 -420
- package/dist/server/server.d.ts +0 -7
- package/dist/server/server.js +53 -23
- package/dist/server/variables/resolve.d.ts +21 -0
- package/dist/server/variables/resolve.js +79 -0
- package/dist/swagger/flow-surfaces.d.ts +3186 -0
- package/dist/swagger/flow-surfaces.js +4320 -0
- package/dist/swagger/index.d.ts +2837 -810
- package/dist/swagger/index.js +14 -696
- package/package.json +2 -4
- package/dist/node_modules/ajv/.runkit_example.js +0 -23
- package/dist/node_modules/ajv/LICENSE +0 -22
- package/dist/node_modules/ajv/dist/2019.d.ts +0 -19
- package/dist/node_modules/ajv/dist/2019.js +0 -61
- package/dist/node_modules/ajv/dist/2020.d.ts +0 -19
- package/dist/node_modules/ajv/dist/2020.js +0 -55
- package/dist/node_modules/ajv/dist/ajv.d.ts +0 -18
- package/dist/node_modules/ajv/dist/ajv.js +0 -7
- package/dist/node_modules/ajv/dist/compile/codegen/code.d.ts +0 -40
- package/dist/node_modules/ajv/dist/compile/codegen/code.js +0 -156
- package/dist/node_modules/ajv/dist/compile/codegen/index.d.ts +0 -79
- package/dist/node_modules/ajv/dist/compile/codegen/index.js +0 -697
- package/dist/node_modules/ajv/dist/compile/codegen/scope.d.ts +0 -79
- package/dist/node_modules/ajv/dist/compile/codegen/scope.js +0 -143
- package/dist/node_modules/ajv/dist/compile/errors.d.ts +0 -13
- package/dist/node_modules/ajv/dist/compile/errors.js +0 -123
- package/dist/node_modules/ajv/dist/compile/index.d.ts +0 -80
- package/dist/node_modules/ajv/dist/compile/index.js +0 -242
- package/dist/node_modules/ajv/dist/compile/jtd/parse.d.ts +0 -4
- package/dist/node_modules/ajv/dist/compile/jtd/parse.js +0 -350
- package/dist/node_modules/ajv/dist/compile/jtd/serialize.d.ts +0 -4
- package/dist/node_modules/ajv/dist/compile/jtd/serialize.js +0 -236
- package/dist/node_modules/ajv/dist/compile/jtd/types.d.ts +0 -6
- package/dist/node_modules/ajv/dist/compile/jtd/types.js +0 -14
- package/dist/node_modules/ajv/dist/compile/names.d.ts +0 -20
- package/dist/node_modules/ajv/dist/compile/names.js +0 -28
- package/dist/node_modules/ajv/dist/compile/ref_error.d.ts +0 -6
- package/dist/node_modules/ajv/dist/compile/ref_error.js +0 -12
- package/dist/node_modules/ajv/dist/compile/resolve.d.ts +0 -12
- package/dist/node_modules/ajv/dist/compile/resolve.js +0 -155
- package/dist/node_modules/ajv/dist/compile/rules.d.ts +0 -28
- package/dist/node_modules/ajv/dist/compile/rules.js +0 -26
- package/dist/node_modules/ajv/dist/compile/util.d.ts +0 -40
- package/dist/node_modules/ajv/dist/compile/util.js +0 -178
- package/dist/node_modules/ajv/dist/compile/validate/applicability.d.ts +0 -6
- package/dist/node_modules/ajv/dist/compile/validate/applicability.js +0 -19
- package/dist/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +0 -4
- package/dist/node_modules/ajv/dist/compile/validate/boolSchema.js +0 -50
- package/dist/node_modules/ajv/dist/compile/validate/dataType.d.ts +0 -17
- package/dist/node_modules/ajv/dist/compile/validate/dataType.js +0 -203
- package/dist/node_modules/ajv/dist/compile/validate/defaults.d.ts +0 -2
- package/dist/node_modules/ajv/dist/compile/validate/defaults.js +0 -35
- package/dist/node_modules/ajv/dist/compile/validate/index.d.ts +0 -42
- package/dist/node_modules/ajv/dist/compile/validate/index.js +0 -520
- package/dist/node_modules/ajv/dist/compile/validate/keyword.d.ts +0 -8
- package/dist/node_modules/ajv/dist/compile/validate/keyword.js +0 -124
- package/dist/node_modules/ajv/dist/compile/validate/subschema.d.ts +0 -47
- package/dist/node_modules/ajv/dist/compile/validate/subschema.js +0 -81
- package/dist/node_modules/ajv/dist/core.d.ts +0 -174
- package/dist/node_modules/ajv/dist/core.js +0 -618
- package/dist/node_modules/ajv/dist/jtd.d.ts +0 -47
- package/dist/node_modules/ajv/dist/jtd.js +0 -72
- package/dist/node_modules/ajv/dist/refs/data.json +0 -13
- package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +0 -2
- package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +0 -28
- package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +0 -53
- package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +0 -17
- package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +0 -57
- package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +0 -14
- package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +0 -37
- package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +0 -90
- package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +0 -39
- package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +0 -2
- package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +0 -30
- package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +0 -48
- package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +0 -17
- package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +0 -51
- package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
- package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +0 -37
- package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
- package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +0 -90
- package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +0 -55
- package/dist/node_modules/ajv/dist/refs/json-schema-draft-06.json +0 -137
- package/dist/node_modules/ajv/dist/refs/json-schema-draft-07.json +0 -151
- package/dist/node_modules/ajv/dist/refs/json-schema-secure.json +0 -88
- package/dist/node_modules/ajv/dist/refs/jtd-schema.d.ts +0 -3
- package/dist/node_modules/ajv/dist/refs/jtd-schema.js +0 -118
- package/dist/node_modules/ajv/dist/runtime/equal.d.ts +0 -6
- package/dist/node_modules/ajv/dist/runtime/equal.js +0 -7
- package/dist/node_modules/ajv/dist/runtime/parseJson.d.ts +0 -18
- package/dist/node_modules/ajv/dist/runtime/parseJson.js +0 -185
- package/dist/node_modules/ajv/dist/runtime/quote.d.ts +0 -5
- package/dist/node_modules/ajv/dist/runtime/quote.js +0 -30
- package/dist/node_modules/ajv/dist/runtime/re2.d.ts +0 -6
- package/dist/node_modules/ajv/dist/runtime/re2.js +0 -6
- package/dist/node_modules/ajv/dist/runtime/timestamp.d.ts +0 -5
- package/dist/node_modules/ajv/dist/runtime/timestamp.js +0 -42
- package/dist/node_modules/ajv/dist/runtime/ucs2length.d.ts +0 -5
- package/dist/node_modules/ajv/dist/runtime/ucs2length.js +0 -24
- package/dist/node_modules/ajv/dist/runtime/uri.d.ts +0 -6
- package/dist/node_modules/ajv/dist/runtime/uri.js +0 -6
- package/dist/node_modules/ajv/dist/runtime/validation_error.d.ts +0 -7
- package/dist/node_modules/ajv/dist/runtime/validation_error.js +0 -11
- package/dist/node_modules/ajv/dist/standalone/index.d.ts +0 -6
- package/dist/node_modules/ajv/dist/standalone/index.js +0 -90
- package/dist/node_modules/ajv/dist/standalone/instance.d.ts +0 -12
- package/dist/node_modules/ajv/dist/standalone/instance.js +0 -35
- package/dist/node_modules/ajv/dist/types/index.d.ts +0 -183
- package/dist/node_modules/ajv/dist/types/index.js +0 -3
- package/dist/node_modules/ajv/dist/types/json-schema.d.ts +0 -125
- package/dist/node_modules/ajv/dist/types/json-schema.js +0 -3
- package/dist/node_modules/ajv/dist/types/jtd-schema.d.ts +0 -174
- package/dist/node_modules/ajv/dist/types/jtd-schema.js +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +0 -8
- package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +0 -49
- package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +0 -6
- package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +0 -106
- package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.js +0 -23
- package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +0 -4
- package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +0 -12
- package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +0 -7
- package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.js +0 -95
- package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +0 -21
- package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +0 -85
- package/dist/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +0 -11
- package/dist/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +0 -6
- package/dist/node_modules/ajv/dist/vocabularies/applicator/if.js +0 -66
- package/dist/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +0 -13
- package/dist/node_modules/ajv/dist/vocabularies/applicator/index.js +0 -44
- package/dist/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +0 -5
- package/dist/node_modules/ajv/dist/vocabularies/applicator/items.js +0 -52
- package/dist/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +0 -6
- package/dist/node_modules/ajv/dist/vocabularies/applicator/items2020.js +0 -30
- package/dist/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +0 -4
- package/dist/node_modules/ajv/dist/vocabularies/applicator/not.js +0 -26
- package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +0 -6
- package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +0 -60
- package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +0 -75
- package/dist/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +0 -12
- package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.js +0 -54
- package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +0 -6
- package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +0 -38
- package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +0 -13
- package/dist/node_modules/ajv/dist/vocabularies/code.d.ts +0 -17
- package/dist/node_modules/ajv/dist/vocabularies/code.js +0 -131
- package/dist/node_modules/ajv/dist/vocabularies/core/id.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/core/id.js +0 -10
- package/dist/node_modules/ajv/dist/vocabularies/core/index.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/core/index.js +0 -16
- package/dist/node_modules/ajv/dist/vocabularies/core/ref.d.ts +0 -8
- package/dist/node_modules/ajv/dist/vocabularies/core/ref.js +0 -122
- package/dist/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +0 -5
- package/dist/node_modules/ajv/dist/vocabularies/discriminator/index.js +0 -104
- package/dist/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +0 -10
- package/dist/node_modules/ajv/dist/vocabularies/discriminator/types.js +0 -9
- package/dist/node_modules/ajv/dist/vocabularies/draft2020.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/draft2020.js +0 -23
- package/dist/node_modules/ajv/dist/vocabularies/draft7.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/draft7.js +0 -17
- package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +0 -5
- package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +0 -30
- package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +0 -5
- package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +0 -51
- package/dist/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/dynamic/index.js +0 -9
- package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +0 -16
- package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +0 -10
- package/dist/node_modules/ajv/dist/vocabularies/errors.d.ts +0 -9
- package/dist/node_modules/ajv/dist/vocabularies/errors.js +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/format/format.d.ts +0 -8
- package/dist/node_modules/ajv/dist/vocabularies/format/format.js +0 -92
- package/dist/node_modules/ajv/dist/vocabularies/format/index.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/format/index.js +0 -6
- package/dist/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +0 -6
- package/dist/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +0 -71
- package/dist/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +0 -5
- package/dist/node_modules/ajv/dist/vocabularies/jtd/elements.js +0 -24
- package/dist/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +0 -6
- package/dist/node_modules/ajv/dist/vocabularies/jtd/enum.js +0 -43
- package/dist/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +0 -9
- package/dist/node_modules/ajv/dist/vocabularies/jtd/error.js +0 -20
- package/dist/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +0 -10
- package/dist/node_modules/ajv/dist/vocabularies/jtd/index.js +0 -29
- package/dist/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +0 -5
- package/dist/node_modules/ajv/dist/vocabularies/jtd/metadata.js +0 -25
- package/dist/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +0 -4
- package/dist/node_modules/ajv/dist/vocabularies/jtd/nullable.js +0 -22
- package/dist/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +0 -15
- package/dist/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +0 -22
- package/dist/node_modules/ajv/dist/vocabularies/jtd/properties.js +0 -149
- package/dist/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +0 -4
- package/dist/node_modules/ajv/dist/vocabularies/jtd/ref.js +0 -67
- package/dist/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +0 -10
- package/dist/node_modules/ajv/dist/vocabularies/jtd/type.js +0 -69
- package/dist/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/jtd/union.js +0 -12
- package/dist/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +0 -5
- package/dist/node_modules/ajv/dist/vocabularies/jtd/values.js +0 -51
- package/dist/node_modules/ajv/dist/vocabularies/metadata.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/metadata.js +0 -18
- package/dist/node_modules/ajv/dist/vocabularies/next.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/next.js +0 -8
- package/dist/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/unevaluated/index.js +0 -7
- package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +0 -6
- package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +0 -40
- package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +0 -6
- package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +0 -65
- package/dist/node_modules/ajv/dist/vocabularies/validation/const.d.ts +0 -6
- package/dist/node_modules/ajv/dist/vocabularies/validation/const.js +0 -25
- package/dist/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +0 -5
- package/dist/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +0 -12
- package/dist/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +0 -8
- package/dist/node_modules/ajv/dist/vocabularies/validation/enum.js +0 -48
- package/dist/node_modules/ajv/dist/vocabularies/validation/index.d.ts +0 -16
- package/dist/node_modules/ajv/dist/vocabularies/validation/index.js +0 -33
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitContains.js +0 -15
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.js +0 -24
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.js +0 -27
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +0 -11
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +0 -27
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +0 -3
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +0 -24
- package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +0 -8
- package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +0 -26
- package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +0 -8
- package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.js +0 -33
- package/dist/node_modules/ajv/dist/vocabularies/validation/required.d.ts +0 -8
- package/dist/node_modules/ajv/dist/vocabularies/validation/required.js +0 -79
- package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +0 -9
- package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +0 -64
- package/dist/node_modules/ajv/lib/2019.ts +0 -81
- package/dist/node_modules/ajv/lib/2020.ts +0 -75
- package/dist/node_modules/ajv/lib/ajv.ts +0 -70
- package/dist/node_modules/ajv/lib/compile/codegen/code.ts +0 -169
- package/dist/node_modules/ajv/lib/compile/codegen/index.ts +0 -852
- package/dist/node_modules/ajv/lib/compile/codegen/scope.ts +0 -215
- package/dist/node_modules/ajv/lib/compile/errors.ts +0 -184
- package/dist/node_modules/ajv/lib/compile/index.ts +0 -324
- package/dist/node_modules/ajv/lib/compile/jtd/parse.ts +0 -411
- package/dist/node_modules/ajv/lib/compile/jtd/serialize.ts +0 -277
- package/dist/node_modules/ajv/lib/compile/jtd/types.ts +0 -16
- package/dist/node_modules/ajv/lib/compile/names.ts +0 -27
- package/dist/node_modules/ajv/lib/compile/ref_error.ts +0 -13
- package/dist/node_modules/ajv/lib/compile/resolve.ts +0 -149
- package/dist/node_modules/ajv/lib/compile/rules.ts +0 -50
- package/dist/node_modules/ajv/lib/compile/util.ts +0 -213
- package/dist/node_modules/ajv/lib/compile/validate/applicability.ts +0 -22
- package/dist/node_modules/ajv/lib/compile/validate/boolSchema.ts +0 -47
- package/dist/node_modules/ajv/lib/compile/validate/dataType.ts +0 -230
- package/dist/node_modules/ajv/lib/compile/validate/defaults.ts +0 -32
- package/dist/node_modules/ajv/lib/compile/validate/index.ts +0 -582
- package/dist/node_modules/ajv/lib/compile/validate/keyword.ts +0 -171
- package/dist/node_modules/ajv/lib/compile/validate/subschema.ts +0 -135
- package/dist/node_modules/ajv/lib/core.ts +0 -892
- package/dist/node_modules/ajv/lib/jtd.ts +0 -132
- package/dist/node_modules/ajv/lib/refs/data.json +0 -13
- package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +0 -28
- package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +0 -53
- package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +0 -17
- package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +0 -57
- package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +0 -14
- package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +0 -37
- package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +0 -90
- package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +0 -39
- package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +0 -30
- package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +0 -48
- package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +0 -17
- package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +0 -51
- package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
- package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +0 -37
- package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
- package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +0 -90
- package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +0 -55
- package/dist/node_modules/ajv/lib/refs/json-schema-draft-06.json +0 -137
- package/dist/node_modules/ajv/lib/refs/json-schema-draft-07.json +0 -151
- package/dist/node_modules/ajv/lib/refs/json-schema-secure.json +0 -88
- package/dist/node_modules/ajv/lib/refs/jtd-schema.ts +0 -130
- package/dist/node_modules/ajv/lib/runtime/equal.ts +0 -7
- package/dist/node_modules/ajv/lib/runtime/parseJson.ts +0 -177
- package/dist/node_modules/ajv/lib/runtime/quote.ts +0 -31
- package/dist/node_modules/ajv/lib/runtime/re2.ts +0 -6
- package/dist/node_modules/ajv/lib/runtime/timestamp.ts +0 -46
- package/dist/node_modules/ajv/lib/runtime/ucs2length.ts +0 -20
- package/dist/node_modules/ajv/lib/runtime/uri.ts +0 -6
- package/dist/node_modules/ajv/lib/runtime/validation_error.ts +0 -13
- package/dist/node_modules/ajv/lib/standalone/index.ts +0 -100
- package/dist/node_modules/ajv/lib/standalone/instance.ts +0 -36
- package/dist/node_modules/ajv/lib/types/index.ts +0 -244
- package/dist/node_modules/ajv/lib/types/json-schema.ts +0 -187
- package/dist/node_modules/ajv/lib/types/jtd-schema.ts +0 -273
- package/dist/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +0 -56
- package/dist/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +0 -118
- package/dist/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +0 -22
- package/dist/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +0 -14
- package/dist/node_modules/ajv/lib/vocabularies/applicator/contains.ts +0 -109
- package/dist/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +0 -112
- package/dist/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +0 -11
- package/dist/node_modules/ajv/lib/vocabularies/applicator/if.ts +0 -80
- package/dist/node_modules/ajv/lib/vocabularies/applicator/index.ts +0 -53
- package/dist/node_modules/ajv/lib/vocabularies/applicator/items.ts +0 -59
- package/dist/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +0 -36
- package/dist/node_modules/ajv/lib/vocabularies/applicator/not.ts +0 -38
- package/dist/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +0 -82
- package/dist/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +0 -91
- package/dist/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +0 -12
- package/dist/node_modules/ajv/lib/vocabularies/applicator/properties.ts +0 -57
- package/dist/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +0 -50
- package/dist/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +0 -13
- package/dist/node_modules/ajv/lib/vocabularies/code.ts +0 -168
- package/dist/node_modules/ajv/lib/vocabularies/core/id.ts +0 -10
- package/dist/node_modules/ajv/lib/vocabularies/core/index.ts +0 -16
- package/dist/node_modules/ajv/lib/vocabularies/core/ref.ts +0 -129
- package/dist/node_modules/ajv/lib/vocabularies/discriminator/index.ts +0 -113
- package/dist/node_modules/ajv/lib/vocabularies/discriminator/types.ts +0 -12
- package/dist/node_modules/ajv/lib/vocabularies/draft2020.ts +0 -23
- package/dist/node_modules/ajv/lib/vocabularies/draft7.ts +0 -17
- package/dist/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +0 -31
- package/dist/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +0 -51
- package/dist/node_modules/ajv/lib/vocabularies/dynamic/index.ts +0 -9
- package/dist/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +0 -14
- package/dist/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +0 -10
- package/dist/node_modules/ajv/lib/vocabularies/errors.ts +0 -18
- package/dist/node_modules/ajv/lib/vocabularies/format/format.ts +0 -120
- package/dist/node_modules/ajv/lib/vocabularies/format/index.ts +0 -6
- package/dist/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +0 -89
- package/dist/node_modules/ajv/lib/vocabularies/jtd/elements.ts +0 -32
- package/dist/node_modules/ajv/lib/vocabularies/jtd/enum.ts +0 -45
- package/dist/node_modules/ajv/lib/vocabularies/jtd/error.ts +0 -23
- package/dist/node_modules/ajv/lib/vocabularies/jtd/index.ts +0 -37
- package/dist/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +0 -24
- package/dist/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +0 -21
- package/dist/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +0 -15
- package/dist/node_modules/ajv/lib/vocabularies/jtd/properties.ts +0 -184
- package/dist/node_modules/ajv/lib/vocabularies/jtd/ref.ts +0 -76
- package/dist/node_modules/ajv/lib/vocabularies/jtd/type.ts +0 -75
- package/dist/node_modules/ajv/lib/vocabularies/jtd/union.ts +0 -12
- package/dist/node_modules/ajv/lib/vocabularies/jtd/values.ts +0 -58
- package/dist/node_modules/ajv/lib/vocabularies/metadata.ts +0 -17
- package/dist/node_modules/ajv/lib/vocabularies/next.ts +0 -8
- package/dist/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +0 -7
- package/dist/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +0 -47
- package/dist/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +0 -85
- package/dist/node_modules/ajv/lib/vocabularies/validation/const.ts +0 -28
- package/dist/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +0 -23
- package/dist/node_modules/ajv/lib/vocabularies/validation/enum.ts +0 -54
- package/dist/node_modules/ajv/lib/vocabularies/validation/index.ts +0 -49
- package/dist/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +0 -16
- package/dist/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +0 -26
- package/dist/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +0 -30
- package/dist/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +0 -42
- package/dist/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +0 -26
- package/dist/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +0 -34
- package/dist/node_modules/ajv/lib/vocabularies/validation/pattern.ts +0 -39
- package/dist/node_modules/ajv/lib/vocabularies/validation/required.ts +0 -98
- package/dist/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +0 -79
- package/dist/node_modules/ajv/package.json +0 -1
- package/dist/server/flow-models/action-handlers.d.ts +0 -26
- package/dist/server/flow-models/action-handlers.js +0 -209
- package/dist/server/flow-models/http-error-adapter.d.ts +0 -10
- package/dist/server/flow-models/http-error-adapter.js +0 -58
- package/dist/server/flow-models/mutate-executor.d.ts +0 -17
- package/dist/server/flow-models/mutate-executor.js +0 -309
- package/dist/server/flow-models/repository-internals/duplicate-helpers.d.ts +0 -12
- package/dist/server/flow-models/repository-internals/duplicate-helpers.js +0 -121
- package/dist/server/flow-models/repository-internals/ensure-lock.d.ts +0 -15
- package/dist/server/flow-models/repository-internals/ensure-lock.js +0 -117
- package/dist/server/flow-models/repository-internals/errors.d.ts +0 -21
- package/dist/server/flow-models/repository-internals/errors.js +0 -78
- package/dist/server/flow-models/schema-contribution-collector.d.ts +0 -28
- package/dist/server/flow-models/schema-contribution-collector.js +0 -238
- package/dist/server/flow-models/validation-facade.d.ts +0 -29
- package/dist/server/flow-models/validation-facade.js +0 -181
- package/dist/server/flow-schema-contributions/actions/aclCheck.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/aclCheck.js +0 -46
- package/dist/server/flow-schema-contributions/actions/aclCheckRefresh.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/aclCheckRefresh.js +0 -46
- package/dist/server/flow-schema-contributions/actions/actionLinkageRules.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/actionLinkageRules.js +0 -48
- package/dist/server/flow-schema-contributions/actions/confirm.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/confirm.js +0 -73
- package/dist/server/flow-schema-contributions/actions/customVariable.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/customVariable.js +0 -76
- package/dist/server/flow-schema-contributions/actions/dataScope.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/dataScope.js +0 -79
- package/dist/server/flow-schema-contributions/actions/detailsFieldLinkageRules.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/detailsFieldLinkageRules.js +0 -62
- package/dist/server/flow-schema-contributions/actions/fieldLinkageRules.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/fieldLinkageRules.js +0 -62
- package/dist/server/flow-schema-contributions/actions/filterFormDefaultValues.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/filterFormDefaultValues.js +0 -80
- package/dist/server/flow-schema-contributions/actions/formAssignRules.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/formAssignRules.js +0 -62
- package/dist/server/flow-schema-contributions/actions/index.d.ts +0 -31
- package/dist/server/flow-schema-contributions/actions/index.js +0 -117
- package/dist/server/flow-schema-contributions/actions/layout.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/layout.js +0 -68
- package/dist/server/flow-schema-contributions/actions/linkageRulesRefresh.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/linkageRulesRefresh.js +0 -50
- package/dist/server/flow-schema-contributions/actions/navigateToURL.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/navigateToURL.js +0 -82
- package/dist/server/flow-schema-contributions/actions/openView.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/openView.js +0 -68
- package/dist/server/flow-schema-contributions/actions/refreshTargetBlocks.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/refreshTargetBlocks.js +0 -56
- package/dist/server/flow-schema-contributions/actions/runjs.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/runjs.js +0 -55
- package/dist/server/flow-schema-contributions/actions/setTargetDataScope.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/setTargetDataScope.js +0 -59
- package/dist/server/flow-schema-contributions/actions/showMessage.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/showMessage.js +0 -69
- package/dist/server/flow-schema-contributions/actions/showNotification.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/showNotification.js +0 -76
- package/dist/server/flow-schema-contributions/actions/sortingRule.d.ts +0 -10
- package/dist/server/flow-schema-contributions/actions/sortingRule.js +0 -67
- package/dist/server/flow-schema-contributions/field-models.d.ts +0 -12
- package/dist/server/flow-schema-contributions/field-models.js +0 -693
- package/dist/server/flow-schema-contributions/index.d.ts +0 -13
- package/dist/server/flow-schema-contributions/index.js +0 -64
- package/dist/server/flow-schema-contributions/models/ActionBulkEditModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/ActionBulkEditModel.js +0 -382
- package/dist/server/flow-schema-contributions/models/ActionBulkUpdateModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/ActionBulkUpdateModel.js +0 -169
- package/dist/server/flow-schema-contributions/models/ActionCustomRequestModel.d.ts +0 -11
- package/dist/server/flow-schema-contributions/models/ActionCustomRequestModel.js +0 -115
- package/dist/server/flow-schema-contributions/models/ActionDuplicateModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/ActionDuplicateModel.js +0 -169
- package/dist/server/flow-schema-contributions/models/ActionExportModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/ActionExportModel.js +0 -141
- package/dist/server/flow-schema-contributions/models/ActionImportModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/ActionImportModel.js +0 -122
- package/dist/server/flow-schema-contributions/models/ActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/ActionModel.js +0 -202
- package/dist/server/flow-schema-contributions/models/AddChildActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/AddChildActionModel.js +0 -47
- package/dist/server/flow-schema-contributions/models/AddNewActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/AddNewActionModel.js +0 -93
- package/dist/server/flow-schema-contributions/models/AssignFormGridModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/AssignFormGridModel.js +0 -82
- package/dist/server/flow-schema-contributions/models/AssignFormItemModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/AssignFormItemModel.js +0 -80
- package/dist/server/flow-schema-contributions/models/AssignFormModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/AssignFormModel.js +0 -122
- package/dist/server/flow-schema-contributions/models/BasePageTabModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/BasePageTabModel.js +0 -71
- package/dist/server/flow-schema-contributions/models/BlockGridCardModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/BlockGridCardModel.js +0 -449
- package/dist/server/flow-schema-contributions/models/BlockGridModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/BlockGridModel.js +0 -81
- package/dist/server/flow-schema-contributions/models/BlockIframeModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/BlockIframeModel.js +0 -143
- package/dist/server/flow-schema-contributions/models/BlockListModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/BlockListModel.js +0 -435
- package/dist/server/flow-schema-contributions/models/BlockMarkdownModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/BlockMarkdownModel.js +0 -108
- package/dist/server/flow-schema-contributions/models/BlockWorkbenchModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/BlockWorkbenchModel.js +0 -173
- package/dist/server/flow-schema-contributions/models/BulkDeleteActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/BulkDeleteActionModel.js +0 -47
- package/dist/server/flow-schema-contributions/models/ChildPageModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/ChildPageModel.js +0 -106
- package/dist/server/flow-schema-contributions/models/ChildPageTabModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/ChildPageTabModel.js +0 -114
- package/dist/server/flow-schema-contributions/models/CommentsModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/CommentsModel.js +0 -255
- package/dist/server/flow-schema-contributions/models/CreateFormModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/CreateFormModel.js +0 -54
- package/dist/server/flow-schema-contributions/models/DataVisualizationModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/DataVisualizationModel.js +0 -240
- package/dist/server/flow-schema-contributions/models/DeleteActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/DeleteActionModel.js +0 -47
- package/dist/server/flow-schema-contributions/models/DetailsBlockModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/DetailsBlockModel.js +0 -179
- package/dist/server/flow-schema-contributions/models/DetailsGridModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/DetailsGridModel.js +0 -82
- package/dist/server/flow-schema-contributions/models/DetailsItemModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/DetailsItemModel.js +0 -77
- package/dist/server/flow-schema-contributions/models/EditActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/EditActionModel.js +0 -93
- package/dist/server/flow-schema-contributions/models/EditFormModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/EditFormModel.js +0 -103
- package/dist/server/flow-schema-contributions/models/ExpandCollapseActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/ExpandCollapseActionModel.js +0 -47
- package/dist/server/flow-schema-contributions/models/FieldAttachmentUrlModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FieldAttachmentUrlModel.js +0 -87
- package/dist/server/flow-schema-contributions/models/FieldCodeModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FieldCodeModel.js +0 -99
- package/dist/server/flow-schema-contributions/models/FieldFormulaModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FieldFormulaModel.js +0 -152
- package/dist/server/flow-schema-contributions/models/FieldMarkdownVditorModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FieldMarkdownVditorModel.js +0 -92
- package/dist/server/flow-schema-contributions/models/FieldSequenceModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FieldSequenceModel.js +0 -60
- package/dist/server/flow-schema-contributions/models/FieldSortModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FieldSortModel.js +0 -87
- package/dist/server/flow-schema-contributions/models/FileManagerModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FileManagerModel.js +0 -115
- package/dist/server/flow-schema-contributions/models/FilterActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FilterActionModel.js +0 -57
- package/dist/server/flow-schema-contributions/models/FilterFormBlockModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FilterFormBlockModel.js +0 -155
- package/dist/server/flow-schema-contributions/models/FilterFormCollapseActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FilterFormCollapseActionModel.js +0 -85
- package/dist/server/flow-schema-contributions/models/FilterFormCustomFieldModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FilterFormCustomFieldModel.js +0 -89
- package/dist/server/flow-schema-contributions/models/FilterFormGridModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FilterFormGridModel.js +0 -82
- package/dist/server/flow-schema-contributions/models/FilterFormItemModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FilterFormItemModel.js +0 -77
- package/dist/server/flow-schema-contributions/models/FilterFormJSActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FilterFormJSActionModel.js +0 -108
- package/dist/server/flow-schema-contributions/models/FilterFormResetActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FilterFormResetActionModel.js +0 -87
- package/dist/server/flow-schema-contributions/models/FilterFormSubmitActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FilterFormSubmitActionModel.js +0 -87
- package/dist/server/flow-schema-contributions/models/FormAssociationItemModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FormAssociationItemModel.js +0 -78
- package/dist/server/flow-schema-contributions/models/FormBlockModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FormBlockModel.js +0 -45
- package/dist/server/flow-schema-contributions/models/FormGridModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FormGridModel.js +0 -67
- package/dist/server/flow-schema-contributions/models/FormItemModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FormItemModel.js +0 -77
- package/dist/server/flow-schema-contributions/models/FormSubmitActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/FormSubmitActionModel.js +0 -87
- package/dist/server/flow-schema-contributions/models/JSActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/JSActionModel.js +0 -65
- package/dist/server/flow-schema-contributions/models/JSBlockModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/JSBlockModel.js +0 -90
- package/dist/server/flow-schema-contributions/models/JSCollectionActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/JSCollectionActionModel.js +0 -47
- package/dist/server/flow-schema-contributions/models/JSColumnModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/JSColumnModel.js +0 -100
- package/dist/server/flow-schema-contributions/models/JSFormActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/JSFormActionModel.js +0 -47
- package/dist/server/flow-schema-contributions/models/JSItemModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/JSItemModel.js +0 -87
- package/dist/server/flow-schema-contributions/models/JSRecordActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/JSRecordActionModel.js +0 -47
- package/dist/server/flow-schema-contributions/models/LinkActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/LinkActionModel.js +0 -47
- package/dist/server/flow-schema-contributions/models/MapModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/MapModel.js +0 -427
- package/dist/server/flow-schema-contributions/models/PageModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/PageModel.js +0 -159
- package/dist/server/flow-schema-contributions/models/PageTabModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/PageTabModel.js +0 -69
- package/dist/server/flow-schema-contributions/models/PopupActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/PopupActionModel.js +0 -92
- package/dist/server/flow-schema-contributions/models/PopupCollectionActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/PopupCollectionActionModel.js +0 -119
- package/dist/server/flow-schema-contributions/models/RefreshActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/RefreshActionModel.js +0 -47
- package/dist/server/flow-schema-contributions/models/RootPageModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/RootPageModel.js +0 -124
- package/dist/server/flow-schema-contributions/models/RootPageTabModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/RootPageTabModel.js +0 -69
- package/dist/server/flow-schema-contributions/models/RouteModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/RouteModel.js +0 -121
- package/dist/server/flow-schema-contributions/models/TableActionsColumnModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/TableActionsColumnModel.js +0 -93
- package/dist/server/flow-schema-contributions/models/TableBlockModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/TableBlockModel.js +0 -254
- package/dist/server/flow-schema-contributions/models/TableColumnModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/TableColumnModel.js +0 -77
- package/dist/server/flow-schema-contributions/models/TableCustomColumnModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/TableCustomColumnModel.js +0 -66
- package/dist/server/flow-schema-contributions/models/UiTemplatesModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/UiTemplatesModel.js +0 -130
- package/dist/server/flow-schema-contributions/models/UpdateRecordActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/UpdateRecordActionModel.js +0 -173
- package/dist/server/flow-schema-contributions/models/ViewActionModel.d.ts +0 -10
- package/dist/server/flow-schema-contributions/models/ViewActionModel.js +0 -123
- package/dist/server/flow-schema-contributions/models/index.d.ts +0 -71
- package/dist/server/flow-schema-contributions/models/index.js +0 -371
- package/dist/server/flow-schema-contributions/shared.d.ts +0 -501
- package/dist/server/flow-schema-contributions/shared.js +0 -1649
- package/dist/server/flow-schema-registry/FlowSchemaRegistry.d.ts +0 -154
- package/dist/server/flow-schema-registry/FlowSchemaRegistry.js +0 -1424
- package/dist/server/flow-schema-registry/flow-schema-registry/fieldBinding.d.ts +0 -32
- package/dist/server/flow-schema-registry/flow-schema-registry/fieldBinding.js +0 -159
- package/dist/server/flow-schema-registry/flow-schema-registry/modelPatches.d.ts +0 -16
- package/dist/server/flow-schema-registry/flow-schema-registry/modelPatches.js +0 -226
- package/dist/server/flow-schema-registry/flow-schema-registry/schemaInference.d.ts +0 -17
- package/dist/server/flow-schema-registry/flow-schema-registry/schemaInference.js +0 -204
- package/dist/server/flow-schema-registry/flow-schema-registry/utils.d.ts +0 -25
- package/dist/server/flow-schema-registry/flow-schema-registry/utils.js +0 -278
- package/dist/server/flow-schema-registry/index.js +0 -32
- package/dist/server/flow-schema-registry/types.d.ts +0 -244
- package/dist/server/flow-schema-service.d.ts +0 -87
- package/dist/server/flow-schema-service.js +0 -963
- /package/dist/server/{flow-schema-registry → flow-surfaces}/types.js +0 -0
|
@@ -0,0 +1,556 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
+
var __export = (target, all) => {
|
|
15
|
+
for (var name in all)
|
|
16
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
+
for (let key of __getOwnPropNames(from))
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
+
}
|
|
24
|
+
return to;
|
|
25
|
+
};
|
|
26
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
+
var context_exports = {};
|
|
28
|
+
__export(context_exports, {
|
|
29
|
+
buildFlowSurfaceContextResponse: () => buildFlowSurfaceContextResponse,
|
|
30
|
+
isBareFlowContextPath: () => isBareFlowContextPath
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(context_exports);
|
|
33
|
+
const RELATION_FIELD_TYPES = /* @__PURE__ */ new Set(["belongsTo", "hasOne", "hasMany", "belongsToMany", "belongsToArray"]);
|
|
34
|
+
const NUMERIC_FIELD_TYPES = /* @__PURE__ */ new Set(["integer", "float", "double", "decimal"]);
|
|
35
|
+
const BARE_FLOW_CONTEXT_PATH_RE = /^[A-Za-z_][A-Za-z0-9_-]*(\.[A-Za-z_][A-Za-z0-9_-]*)*$/;
|
|
36
|
+
function isBareFlowContextPath(path) {
|
|
37
|
+
return BARE_FLOW_CONTEXT_PATH_RE.test(path);
|
|
38
|
+
}
|
|
39
|
+
function getCollectionFields(collection) {
|
|
40
|
+
if (!collection) {
|
|
41
|
+
return [];
|
|
42
|
+
}
|
|
43
|
+
if (Array.isArray(collection.fields)) {
|
|
44
|
+
return collection.fields;
|
|
45
|
+
}
|
|
46
|
+
if (collection.fields instanceof Map) {
|
|
47
|
+
return Array.from(collection.fields.values());
|
|
48
|
+
}
|
|
49
|
+
if (collection.fields && typeof collection.fields === "object") {
|
|
50
|
+
return Object.values(collection.fields);
|
|
51
|
+
}
|
|
52
|
+
if (typeof collection.getFields === "function") {
|
|
53
|
+
return collection.getFields() || [];
|
|
54
|
+
}
|
|
55
|
+
return [];
|
|
56
|
+
}
|
|
57
|
+
function getCollectionCycleKey(collection) {
|
|
58
|
+
if (!collection) {
|
|
59
|
+
return void 0;
|
|
60
|
+
}
|
|
61
|
+
return `collection:${collection.dataSourceKey || "main"}:${collection.name || collection.title || "unknown"}`;
|
|
62
|
+
}
|
|
63
|
+
function getFieldType(field) {
|
|
64
|
+
const fieldType = field == null ? void 0 : field.type;
|
|
65
|
+
if (RELATION_FIELD_TYPES.has(fieldType)) {
|
|
66
|
+
return "object";
|
|
67
|
+
}
|
|
68
|
+
if (NUMERIC_FIELD_TYPES.has(fieldType)) {
|
|
69
|
+
return "number";
|
|
70
|
+
}
|
|
71
|
+
switch (fieldType) {
|
|
72
|
+
case "boolean":
|
|
73
|
+
return "boolean";
|
|
74
|
+
case "json":
|
|
75
|
+
return "object";
|
|
76
|
+
case "array":
|
|
77
|
+
return "array";
|
|
78
|
+
default:
|
|
79
|
+
return "string";
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
function getFieldTargetCollection(field) {
|
|
83
|
+
const targetCollection = typeof (field == null ? void 0 : field.targetCollection) === "function" ? field.targetCollection() : field == null ? void 0 : field.targetCollection;
|
|
84
|
+
return targetCollection && typeof targetCollection === "object" ? targetCollection : null;
|
|
85
|
+
}
|
|
86
|
+
function isAssociationField(field, targetCollection) {
|
|
87
|
+
if (typeof (field == null ? void 0 : field.isAssociationField) === "function") {
|
|
88
|
+
return !!field.isAssociationField();
|
|
89
|
+
}
|
|
90
|
+
return !!targetCollection || RELATION_FIELD_TYPES.has(field == null ? void 0 : field.type);
|
|
91
|
+
}
|
|
92
|
+
function createCollectionFieldSpec(field) {
|
|
93
|
+
const targetCollection = getFieldTargetCollection(field);
|
|
94
|
+
return {
|
|
95
|
+
title: (field == null ? void 0 : field.title) || (field == null ? void 0 : field.name),
|
|
96
|
+
type: getFieldType(field),
|
|
97
|
+
interface: field == null ? void 0 : field.interface,
|
|
98
|
+
...isAssociationField(field, targetCollection) && targetCollection ? {
|
|
99
|
+
cycleKey: getCollectionCycleKey(targetCollection),
|
|
100
|
+
properties: () => buildCollectionProperties(targetCollection)
|
|
101
|
+
} : {}
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
function buildCollectionProperties(collection) {
|
|
105
|
+
const properties = {};
|
|
106
|
+
for (const field of getCollectionFields(collection)) {
|
|
107
|
+
if (!(field == null ? void 0 : field.name)) {
|
|
108
|
+
continue;
|
|
109
|
+
}
|
|
110
|
+
properties[field.name] = createCollectionFieldSpec(field);
|
|
111
|
+
}
|
|
112
|
+
return properties;
|
|
113
|
+
}
|
|
114
|
+
function createCollectionSpec(collection, title) {
|
|
115
|
+
if (!collection) {
|
|
116
|
+
return null;
|
|
117
|
+
}
|
|
118
|
+
return {
|
|
119
|
+
title,
|
|
120
|
+
type: "object",
|
|
121
|
+
cycleKey: getCollectionCycleKey(collection),
|
|
122
|
+
properties: () => buildCollectionProperties(collection)
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
function createItemSpec(currentCollection, parentSpec) {
|
|
126
|
+
if (!currentCollection) {
|
|
127
|
+
return null;
|
|
128
|
+
}
|
|
129
|
+
return {
|
|
130
|
+
title: "Current item",
|
|
131
|
+
type: "object",
|
|
132
|
+
properties: () => {
|
|
133
|
+
const properties = {
|
|
134
|
+
index: {
|
|
135
|
+
title: "Index (starts from 0)",
|
|
136
|
+
type: "number"
|
|
137
|
+
},
|
|
138
|
+
length: {
|
|
139
|
+
title: "Total count",
|
|
140
|
+
type: "number"
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
const valueSpec = createCollectionSpec(currentCollection, "Attributes");
|
|
144
|
+
if (valueSpec) {
|
|
145
|
+
properties.value = valueSpec;
|
|
146
|
+
}
|
|
147
|
+
if (parentSpec) {
|
|
148
|
+
properties.parentItem = parentSpec;
|
|
149
|
+
}
|
|
150
|
+
return properties;
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
function buildItemChainSpec(collections, rootCollection) {
|
|
155
|
+
if (!collections.length) {
|
|
156
|
+
return null;
|
|
157
|
+
}
|
|
158
|
+
let parentSpec;
|
|
159
|
+
if (rootCollection) {
|
|
160
|
+
parentSpec = {
|
|
161
|
+
title: "Parent item",
|
|
162
|
+
type: "object",
|
|
163
|
+
properties: () => {
|
|
164
|
+
const properties = {
|
|
165
|
+
index: {
|
|
166
|
+
title: "Index (starts from 0)",
|
|
167
|
+
type: "number"
|
|
168
|
+
},
|
|
169
|
+
length: {
|
|
170
|
+
title: "Total count",
|
|
171
|
+
type: "number"
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
const valueSpec = createCollectionSpec(rootCollection, "Attributes");
|
|
175
|
+
if (valueSpec) {
|
|
176
|
+
properties.value = valueSpec;
|
|
177
|
+
}
|
|
178
|
+
return properties;
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
for (let index = collections.length - 1; index >= 0; index -= 1) {
|
|
183
|
+
const itemSpec = createItemSpec(collections[index], parentSpec);
|
|
184
|
+
if (!itemSpec) {
|
|
185
|
+
continue;
|
|
186
|
+
}
|
|
187
|
+
if (parentSpec) {
|
|
188
|
+
itemSpec.title = "Parent item";
|
|
189
|
+
}
|
|
190
|
+
parentSpec = itemSpec;
|
|
191
|
+
}
|
|
192
|
+
if (!parentSpec) {
|
|
193
|
+
return null;
|
|
194
|
+
}
|
|
195
|
+
parentSpec.title = "Current item";
|
|
196
|
+
return parentSpec;
|
|
197
|
+
}
|
|
198
|
+
function buildPopupChainSpec(levels) {
|
|
199
|
+
if (!levels.length) {
|
|
200
|
+
return null;
|
|
201
|
+
}
|
|
202
|
+
const currentLevel = levels[0] || {};
|
|
203
|
+
const parentLevel = levels[1] || null;
|
|
204
|
+
return {
|
|
205
|
+
title: "Current popup",
|
|
206
|
+
type: "object",
|
|
207
|
+
properties: () => {
|
|
208
|
+
const properties = {
|
|
209
|
+
uid: {
|
|
210
|
+
title: "Popup uid",
|
|
211
|
+
type: "string"
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
const recordSpec = createCollectionSpec(currentLevel.recordCollection, "Current popup record");
|
|
215
|
+
if (recordSpec) {
|
|
216
|
+
properties.record = recordSpec;
|
|
217
|
+
}
|
|
218
|
+
const sourceRecordSpec = createCollectionSpec(currentLevel.sourceRecordCollection, "Current popup parent record");
|
|
219
|
+
if (sourceRecordSpec) {
|
|
220
|
+
properties.sourceRecord = sourceRecordSpec;
|
|
221
|
+
}
|
|
222
|
+
if (parentLevel) {
|
|
223
|
+
properties.parent = {
|
|
224
|
+
title: "Parent popup",
|
|
225
|
+
type: "object",
|
|
226
|
+
properties: () => {
|
|
227
|
+
const parentProperties = {
|
|
228
|
+
uid: {
|
|
229
|
+
title: "Popup uid",
|
|
230
|
+
type: "string"
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
const parentRecordSpec = createCollectionSpec(parentLevel.recordCollection, "Popup record");
|
|
234
|
+
if (parentRecordSpec) {
|
|
235
|
+
parentProperties.record = parentRecordSpec;
|
|
236
|
+
}
|
|
237
|
+
return parentProperties;
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
return properties;
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
function buildChartQueryOutputsSpec(outputs) {
|
|
246
|
+
if (!outputs.length) {
|
|
247
|
+
return null;
|
|
248
|
+
}
|
|
249
|
+
return {
|
|
250
|
+
title: "Builder query outputs",
|
|
251
|
+
type: "object",
|
|
252
|
+
properties: () => Object.fromEntries(
|
|
253
|
+
outputs.map((output) => {
|
|
254
|
+
const fieldValue = Array.isArray(output.field) ? output.field.join(".") : output.field;
|
|
255
|
+
const descSegments = [
|
|
256
|
+
output.source === "sql" ? "SQL preview output" : output.kind === "measure" ? "Measure output" : output.kind === "dimension" ? "Dimension output" : "",
|
|
257
|
+
fieldValue ? `field=${fieldValue}` : "",
|
|
258
|
+
output.aggregation ? `aggregation=${output.aggregation}` : "",
|
|
259
|
+
output.format ? `format=${output.format}` : ""
|
|
260
|
+
].filter(Boolean);
|
|
261
|
+
return [
|
|
262
|
+
output.alias,
|
|
263
|
+
{
|
|
264
|
+
title: output.alias,
|
|
265
|
+
type: output.type || "string",
|
|
266
|
+
...descSegments.length ? { description: descSegments.join("; ") } : {}
|
|
267
|
+
}
|
|
268
|
+
];
|
|
269
|
+
})
|
|
270
|
+
)
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
function buildChartAliasesSpec(aliases) {
|
|
274
|
+
if (!aliases.length) {
|
|
275
|
+
return null;
|
|
276
|
+
}
|
|
277
|
+
return {
|
|
278
|
+
title: "Builder query aliases",
|
|
279
|
+
type: "object",
|
|
280
|
+
properties: () => Object.fromEntries(
|
|
281
|
+
aliases.map((alias) => [
|
|
282
|
+
alias,
|
|
283
|
+
{
|
|
284
|
+
title: alias,
|
|
285
|
+
type: "string",
|
|
286
|
+
description: "Builder query output alias that can be used by visual.mappings.*. Do not assume it is valid for query.sorting.field; aggregated measure outputs and custom measure aliases remain unsupported there."
|
|
287
|
+
}
|
|
288
|
+
])
|
|
289
|
+
)
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
function buildChartSupportedMappingsSpec(supportedMappings) {
|
|
293
|
+
if (!supportedMappings || !Object.keys(supportedMappings).length) {
|
|
294
|
+
return null;
|
|
295
|
+
}
|
|
296
|
+
return {
|
|
297
|
+
title: "Supported mappings by visual type",
|
|
298
|
+
type: "object",
|
|
299
|
+
properties: () => Object.fromEntries(
|
|
300
|
+
Object.entries(supportedMappings).map(([visualType, support]) => [
|
|
301
|
+
visualType,
|
|
302
|
+
{
|
|
303
|
+
title: visualType,
|
|
304
|
+
type: "object",
|
|
305
|
+
properties: () => Object.fromEntries(
|
|
306
|
+
(support.allowed || []).map((mappingKey) => [
|
|
307
|
+
mappingKey,
|
|
308
|
+
{
|
|
309
|
+
title: mappingKey,
|
|
310
|
+
type: "string",
|
|
311
|
+
description: (support.required || []).includes(mappingKey) ? "Required mapping key" : "Optional mapping key"
|
|
312
|
+
}
|
|
313
|
+
])
|
|
314
|
+
)
|
|
315
|
+
}
|
|
316
|
+
])
|
|
317
|
+
)
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
function buildChartSupportedStylesSpec(supportedStyles) {
|
|
321
|
+
if (!supportedStyles || !Object.keys(supportedStyles).length) {
|
|
322
|
+
return null;
|
|
323
|
+
}
|
|
324
|
+
return {
|
|
325
|
+
title: "Supported style keys by visual type",
|
|
326
|
+
type: "object",
|
|
327
|
+
properties: () => Object.fromEntries(
|
|
328
|
+
Object.entries(supportedStyles).map(([visualType, styles]) => [
|
|
329
|
+
visualType,
|
|
330
|
+
{
|
|
331
|
+
title: visualType,
|
|
332
|
+
type: "object",
|
|
333
|
+
properties: () => Object.fromEntries(
|
|
334
|
+
Object.entries(styles || {}).map(([styleKey, support]) => {
|
|
335
|
+
var _a;
|
|
336
|
+
return [
|
|
337
|
+
styleKey,
|
|
338
|
+
{
|
|
339
|
+
title: styleKey,
|
|
340
|
+
type: support.type,
|
|
341
|
+
...support.description ? { description: support.description } : {},
|
|
342
|
+
...((_a = support.enumValues) == null ? void 0 : _a.length) ? { enumValues: [...support.enumValues] } : {},
|
|
343
|
+
...typeof support.min !== "undefined" ? { min: support.min } : {},
|
|
344
|
+
...typeof support.max !== "undefined" ? { max: support.max } : {}
|
|
345
|
+
}
|
|
346
|
+
];
|
|
347
|
+
})
|
|
348
|
+
)
|
|
349
|
+
}
|
|
350
|
+
])
|
|
351
|
+
)
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
function buildChartSupportedVisualTypesSpec(types) {
|
|
355
|
+
if (!types.length) {
|
|
356
|
+
return null;
|
|
357
|
+
}
|
|
358
|
+
return {
|
|
359
|
+
title: "Supported visual types",
|
|
360
|
+
type: "object",
|
|
361
|
+
properties: () => Object.fromEntries(
|
|
362
|
+
types.map((type) => [
|
|
363
|
+
type,
|
|
364
|
+
{
|
|
365
|
+
title: type,
|
|
366
|
+
type: "string",
|
|
367
|
+
description: "Supported chart visual.type value"
|
|
368
|
+
}
|
|
369
|
+
])
|
|
370
|
+
)
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
function buildChartHintListSpec(title, hints) {
|
|
374
|
+
if (!hints.length) {
|
|
375
|
+
return null;
|
|
376
|
+
}
|
|
377
|
+
return {
|
|
378
|
+
title,
|
|
379
|
+
type: "object",
|
|
380
|
+
properties: () => Object.fromEntries(
|
|
381
|
+
hints.map((hint) => [
|
|
382
|
+
hint.key,
|
|
383
|
+
{
|
|
384
|
+
title: hint.title,
|
|
385
|
+
type: "string",
|
|
386
|
+
description: hint.description
|
|
387
|
+
}
|
|
388
|
+
])
|
|
389
|
+
)
|
|
390
|
+
};
|
|
391
|
+
}
|
|
392
|
+
function createChartSpec(chart) {
|
|
393
|
+
if (!chart) {
|
|
394
|
+
return null;
|
|
395
|
+
}
|
|
396
|
+
return {
|
|
397
|
+
title: "Chart helpers",
|
|
398
|
+
type: "object",
|
|
399
|
+
properties: () => {
|
|
400
|
+
const properties = {};
|
|
401
|
+
const queryOutputsSpec = buildChartQueryOutputsSpec(chart.queryOutputs || []);
|
|
402
|
+
if (queryOutputsSpec) {
|
|
403
|
+
properties.queryOutputs = queryOutputsSpec;
|
|
404
|
+
}
|
|
405
|
+
const aliasesSpec = buildChartAliasesSpec(chart.aliases || []);
|
|
406
|
+
if (aliasesSpec) {
|
|
407
|
+
properties.aliases = aliasesSpec;
|
|
408
|
+
}
|
|
409
|
+
const supportedMappingsSpec = buildChartSupportedMappingsSpec(chart.supportedMappings);
|
|
410
|
+
if (supportedMappingsSpec) {
|
|
411
|
+
properties.supportedMappings = supportedMappingsSpec;
|
|
412
|
+
}
|
|
413
|
+
const supportedStylesSpec = buildChartSupportedStylesSpec(chart.supportedStyles);
|
|
414
|
+
if (supportedStylesSpec) {
|
|
415
|
+
properties.supportedStyles = supportedStylesSpec;
|
|
416
|
+
}
|
|
417
|
+
const supportedVisualTypesSpec = buildChartSupportedVisualTypesSpec(chart.supportedVisualTypes || []);
|
|
418
|
+
if (supportedVisualTypesSpec) {
|
|
419
|
+
properties.supportedVisualTypes = supportedVisualTypesSpec;
|
|
420
|
+
}
|
|
421
|
+
const safeDefaultsSpec = buildChartHintListSpec("Safe defaults", chart.safeDefaults || []);
|
|
422
|
+
if (safeDefaultsSpec) {
|
|
423
|
+
properties.safeDefaults = safeDefaultsSpec;
|
|
424
|
+
}
|
|
425
|
+
const riskyPatternsSpec = buildChartHintListSpec("Risky patterns", chart.riskyPatterns || []);
|
|
426
|
+
if (riskyPatternsSpec) {
|
|
427
|
+
properties.riskyPatterns = riskyPatternsSpec;
|
|
428
|
+
}
|
|
429
|
+
const unsupportedPatternsSpec = buildChartHintListSpec("Unsupported patterns", chart.unsupportedPatterns || []);
|
|
430
|
+
if (unsupportedPatternsSpec) {
|
|
431
|
+
properties.unsupportedPatterns = unsupportedPatternsSpec;
|
|
432
|
+
}
|
|
433
|
+
return properties;
|
|
434
|
+
}
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
function createSpecMap(input) {
|
|
438
|
+
const specs = {};
|
|
439
|
+
const collectionSpec = createCollectionSpec(input.collection, "Current collection");
|
|
440
|
+
if (collectionSpec) {
|
|
441
|
+
specs.collection = collectionSpec;
|
|
442
|
+
}
|
|
443
|
+
const recordSpec = createCollectionSpec(input.recordCollection, "Current record");
|
|
444
|
+
if (recordSpec) {
|
|
445
|
+
specs.record = recordSpec;
|
|
446
|
+
}
|
|
447
|
+
const formValuesSpec = createCollectionSpec(input.formValuesCollection, "Current form");
|
|
448
|
+
if (formValuesSpec) {
|
|
449
|
+
specs.formValues = formValuesSpec;
|
|
450
|
+
}
|
|
451
|
+
const itemSpec = buildItemChainSpec(input.itemCollections || [], input.itemRootCollection);
|
|
452
|
+
if (itemSpec) {
|
|
453
|
+
specs.item = itemSpec;
|
|
454
|
+
}
|
|
455
|
+
const popupSpec = buildPopupChainSpec(input.popupLevels || []);
|
|
456
|
+
if (popupSpec) {
|
|
457
|
+
specs.popup = popupSpec;
|
|
458
|
+
}
|
|
459
|
+
const chartSpec = createChartSpec(input.chart);
|
|
460
|
+
if (chartSpec) {
|
|
461
|
+
specs.chart = chartSpec;
|
|
462
|
+
}
|
|
463
|
+
return specs;
|
|
464
|
+
}
|
|
465
|
+
function materializeSpecNode(node, depth, maxDepth, visited) {
|
|
466
|
+
const output = {};
|
|
467
|
+
if (typeof node.title !== "undefined") {
|
|
468
|
+
output.title = node.title;
|
|
469
|
+
}
|
|
470
|
+
if (typeof node.type !== "undefined") {
|
|
471
|
+
output.type = node.type;
|
|
472
|
+
}
|
|
473
|
+
if (typeof node.interface !== "undefined") {
|
|
474
|
+
output.interface = node.interface;
|
|
475
|
+
}
|
|
476
|
+
if (typeof node.description !== "undefined") {
|
|
477
|
+
output.description = node.description;
|
|
478
|
+
}
|
|
479
|
+
if (Array.isArray(node.enumValues) && node.enumValues.length) {
|
|
480
|
+
output.enumValues = [...node.enumValues];
|
|
481
|
+
}
|
|
482
|
+
if (typeof node.min !== "undefined") {
|
|
483
|
+
output.min = node.min;
|
|
484
|
+
}
|
|
485
|
+
if (typeof node.max !== "undefined") {
|
|
486
|
+
output.max = node.max;
|
|
487
|
+
}
|
|
488
|
+
if (typeof node.disabled !== "undefined") {
|
|
489
|
+
output.disabled = node.disabled;
|
|
490
|
+
}
|
|
491
|
+
if (typeof node.disabledReason !== "undefined") {
|
|
492
|
+
output.disabledReason = node.disabledReason;
|
|
493
|
+
}
|
|
494
|
+
if (depth >= maxDepth || typeof node.properties !== "function") {
|
|
495
|
+
return output;
|
|
496
|
+
}
|
|
497
|
+
if (node.cycleKey && visited.has(node.cycleKey)) {
|
|
498
|
+
return output;
|
|
499
|
+
}
|
|
500
|
+
const nextVisited = new Set(visited);
|
|
501
|
+
if (node.cycleKey) {
|
|
502
|
+
nextVisited.add(node.cycleKey);
|
|
503
|
+
}
|
|
504
|
+
const properties = node.properties();
|
|
505
|
+
const propertyEntries = Object.entries(properties || {});
|
|
506
|
+
if (!propertyEntries.length) {
|
|
507
|
+
return output;
|
|
508
|
+
}
|
|
509
|
+
output.properties = Object.fromEntries(
|
|
510
|
+
propertyEntries.map(([key, child]) => [key, materializeSpecNode(child, depth + 1, maxDepth, nextVisited)])
|
|
511
|
+
);
|
|
512
|
+
return output;
|
|
513
|
+
}
|
|
514
|
+
function resolveSpecAtPath(specs, path) {
|
|
515
|
+
var _a;
|
|
516
|
+
const segments = String(path || "").split(".").map((segment) => segment.trim()).filter(Boolean);
|
|
517
|
+
if (!segments.length) {
|
|
518
|
+
return void 0;
|
|
519
|
+
}
|
|
520
|
+
let current = specs[segments[0]];
|
|
521
|
+
if (!current) {
|
|
522
|
+
return void 0;
|
|
523
|
+
}
|
|
524
|
+
for (let index = 1; index < segments.length; index += 1) {
|
|
525
|
+
const properties = (_a = current.properties) == null ? void 0 : _a.call(current);
|
|
526
|
+
if (!properties) {
|
|
527
|
+
return void 0;
|
|
528
|
+
}
|
|
529
|
+
current = properties[segments[index]];
|
|
530
|
+
if (!current) {
|
|
531
|
+
return void 0;
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
return current;
|
|
535
|
+
}
|
|
536
|
+
function buildFlowSurfaceContextResponse(input) {
|
|
537
|
+
const maxDepthRaw = input.maxDepth ?? 3;
|
|
538
|
+
const maxDepth = Number.isFinite(maxDepthRaw) ? Math.max(1, Math.floor(maxDepthRaw)) : 3;
|
|
539
|
+
const specs = createSpecMap(input.semantic);
|
|
540
|
+
if (input.path) {
|
|
541
|
+
const targetSpec = resolveSpecAtPath(specs, input.path);
|
|
542
|
+
return {
|
|
543
|
+
vars: targetSpec ? { [input.path]: materializeSpecNode(targetSpec, 1, maxDepth, /* @__PURE__ */ new Set()) } : {}
|
|
544
|
+
};
|
|
545
|
+
}
|
|
546
|
+
return {
|
|
547
|
+
vars: Object.fromEntries(
|
|
548
|
+
Object.entries(specs).map(([key, spec]) => [key, materializeSpecNode(spec, 1, maxDepth, /* @__PURE__ */ new Set())])
|
|
549
|
+
)
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
553
|
+
0 && (module.exports = {
|
|
554
|
+
buildFlowSurfaceContextResponse,
|
|
555
|
+
isBareFlowContextPath
|
|
556
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import type { FlowSurfaceDomainContract, FlowSurfaceNodeDomain } from './types';
|
|
10
|
+
export declare class FlowSurfaceContractGuard {
|
|
11
|
+
mergeDomainValue(domain: FlowSurfaceNodeDomain, currentValue: any, nextValue: any, contract: FlowSurfaceDomainContract, use: string): any;
|
|
12
|
+
validateFlowRegistry(node: any, flowRegistry: Record<string, any>): void;
|
|
13
|
+
validateLayout(grid: any, layout: {
|
|
14
|
+
rows: Record<string, string[][]>;
|
|
15
|
+
sizes: Record<string, number[]>;
|
|
16
|
+
rowOrder: string[];
|
|
17
|
+
}): void;
|
|
18
|
+
validateNodeTreeAgainstContract(node: any): void;
|
|
19
|
+
}
|