@nocobase/plugin-flow-engine 2.1.0-alpha.13 → 2.1.0-alpha.15
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/locale/en-US.json +1 -0
- package/dist/locale/index.d.ts +2 -0
- package/dist/locale/zh-CN.json +1 -0
- 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
|
@@ -1,32 +0,0 @@
|
|
|
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 { FlowFieldBindingConditions, FlowFieldBindingContextContribution, FlowFieldBindingContribution, FlowFieldModelCompatibility, FlowSchemaCoverage } from '../types';
|
|
10
|
-
export type RegisteredFieldBindingContext = {
|
|
11
|
-
name: string;
|
|
12
|
-
inherits: string[];
|
|
13
|
-
};
|
|
14
|
-
export type RegisteredFieldBinding = {
|
|
15
|
-
context: string;
|
|
16
|
-
use: string;
|
|
17
|
-
interfaces: string[];
|
|
18
|
-
isDefault: boolean;
|
|
19
|
-
order?: number;
|
|
20
|
-
conditions?: FlowFieldBindingConditions;
|
|
21
|
-
defaultProps?: any;
|
|
22
|
-
source: FlowSchemaCoverage['source'];
|
|
23
|
-
};
|
|
24
|
-
export declare function normalizeFieldBindingContextContribution(contribution?: FlowFieldBindingContextContribution, fallbackName?: string): RegisteredFieldBindingContext | undefined;
|
|
25
|
-
export declare function normalizeFieldBindingContribution(contribution?: FlowFieldBindingContribution, source?: FlowSchemaCoverage['source']): RegisteredFieldBinding | undefined;
|
|
26
|
-
export declare function matchesFieldBinding(binding: RegisteredFieldBinding, options: {
|
|
27
|
-
interface?: string;
|
|
28
|
-
fieldType?: string;
|
|
29
|
-
association?: boolean;
|
|
30
|
-
targetCollectionTemplate?: string;
|
|
31
|
-
}): boolean;
|
|
32
|
-
export declare function buildFieldModelCompatibility(binding: RegisteredFieldBinding): FlowFieldModelCompatibility;
|
|
@@ -1,159 +0,0 @@
|
|
|
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 __create = Object.create;
|
|
11
|
-
var __defProp = Object.defineProperty;
|
|
12
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
14
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
15
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16
|
-
var __export = (target, all) => {
|
|
17
|
-
for (var name in all)
|
|
18
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
|
-
};
|
|
20
|
-
var __copyProps = (to, from, except, desc) => {
|
|
21
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
-
for (let key of __getOwnPropNames(from))
|
|
23
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
-
}
|
|
26
|
-
return to;
|
|
27
|
-
};
|
|
28
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
29
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
31
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
34
|
-
mod
|
|
35
|
-
));
|
|
36
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
37
|
-
var fieldBinding_exports = {};
|
|
38
|
-
__export(fieldBinding_exports, {
|
|
39
|
-
buildFieldModelCompatibility: () => buildFieldModelCompatibility,
|
|
40
|
-
matchesFieldBinding: () => matchesFieldBinding,
|
|
41
|
-
normalizeFieldBindingContextContribution: () => normalizeFieldBindingContextContribution,
|
|
42
|
-
normalizeFieldBindingContribution: () => normalizeFieldBindingContribution
|
|
43
|
-
});
|
|
44
|
-
module.exports = __toCommonJS(fieldBinding_exports);
|
|
45
|
-
var import_lodash = __toESM(require("lodash"));
|
|
46
|
-
var import_utils = require("./utils");
|
|
47
|
-
function normalizeFieldBindingConditions(conditions) {
|
|
48
|
-
if (!conditions || typeof conditions !== "object" || Array.isArray(conditions)) {
|
|
49
|
-
return void 0;
|
|
50
|
-
}
|
|
51
|
-
const normalized = import_lodash.default.pickBy(
|
|
52
|
-
{
|
|
53
|
-
association: typeof conditions.association === "boolean" ? conditions.association : void 0,
|
|
54
|
-
fieldTypes: (0, import_utils.normalizeStringArray)(conditions.fieldTypes),
|
|
55
|
-
targetCollectionTemplateIn: (0, import_utils.normalizeStringArray)(conditions.targetCollectionTemplateIn),
|
|
56
|
-
targetCollectionTemplateNotIn: (0, import_utils.normalizeStringArray)(conditions.targetCollectionTemplateNotIn)
|
|
57
|
-
},
|
|
58
|
-
(value) => {
|
|
59
|
-
if (Array.isArray(value)) {
|
|
60
|
-
return value.length > 0;
|
|
61
|
-
}
|
|
62
|
-
return value !== void 0;
|
|
63
|
-
}
|
|
64
|
-
);
|
|
65
|
-
return Object.keys(normalized).length > 0 ? normalized : void 0;
|
|
66
|
-
}
|
|
67
|
-
function normalizeFieldBindingContextContribution(contribution, fallbackName) {
|
|
68
|
-
const name = String((contribution == null ? void 0 : contribution.name) || fallbackName || "").trim();
|
|
69
|
-
if (!name) {
|
|
70
|
-
return void 0;
|
|
71
|
-
}
|
|
72
|
-
return {
|
|
73
|
-
name,
|
|
74
|
-
inherits: (0, import_utils.normalizeStringArray)(contribution == null ? void 0 : contribution.inherits)
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
function normalizeFieldBindingContribution(contribution, source = "official") {
|
|
78
|
-
const context = String((contribution == null ? void 0 : contribution.context) || "").trim();
|
|
79
|
-
const use = String((contribution == null ? void 0 : contribution.use) || "").trim();
|
|
80
|
-
const interfaces = (0, import_utils.normalizeStringArray)(contribution == null ? void 0 : contribution.interfaces);
|
|
81
|
-
if (!context || !use || interfaces.length === 0) {
|
|
82
|
-
return void 0;
|
|
83
|
-
}
|
|
84
|
-
return {
|
|
85
|
-
context,
|
|
86
|
-
use,
|
|
87
|
-
interfaces,
|
|
88
|
-
isDefault: (contribution == null ? void 0 : contribution.isDefault) === true,
|
|
89
|
-
order: typeof (contribution == null ? void 0 : contribution.order) === "number" ? contribution.order : void 0,
|
|
90
|
-
conditions: normalizeFieldBindingConditions(contribution == null ? void 0 : contribution.conditions),
|
|
91
|
-
defaultProps: (contribution == null ? void 0 : contribution.defaultProps) === void 0 ? void 0 : import_lodash.default.cloneDeep(contribution.defaultProps),
|
|
92
|
-
source
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
function matchesFieldBinding(binding, options) {
|
|
96
|
-
var _a, _b, _c;
|
|
97
|
-
if (options.interface && !binding.interfaces.includes("*") && !binding.interfaces.includes(options.interface)) {
|
|
98
|
-
return false;
|
|
99
|
-
}
|
|
100
|
-
const conditions = binding.conditions;
|
|
101
|
-
if (!conditions) {
|
|
102
|
-
return true;
|
|
103
|
-
}
|
|
104
|
-
if (typeof conditions.association === "boolean" && options.association !== void 0) {
|
|
105
|
-
if (conditions.association !== options.association) {
|
|
106
|
-
return false;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
if (((_a = conditions.fieldTypes) == null ? void 0 : _a.length) && options.fieldType) {
|
|
110
|
-
if (!conditions.fieldTypes.includes(options.fieldType)) {
|
|
111
|
-
return false;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
if (((_b = conditions.targetCollectionTemplateIn) == null ? void 0 : _b.length) && options.targetCollectionTemplate) {
|
|
115
|
-
if (!conditions.targetCollectionTemplateIn.includes(options.targetCollectionTemplate)) {
|
|
116
|
-
return false;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
if (((_c = conditions.targetCollectionTemplateNotIn) == null ? void 0 : _c.length) && options.targetCollectionTemplate) {
|
|
120
|
-
if (conditions.targetCollectionTemplateNotIn.includes(options.targetCollectionTemplate)) {
|
|
121
|
-
return false;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
return true;
|
|
125
|
-
}
|
|
126
|
-
function buildFieldModelCompatibility(binding) {
|
|
127
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
128
|
-
const compatibility = {
|
|
129
|
-
context: binding.context,
|
|
130
|
-
interfaces: import_lodash.default.cloneDeep(binding.interfaces),
|
|
131
|
-
inheritParentFieldBinding: true
|
|
132
|
-
};
|
|
133
|
-
if (binding.isDefault) {
|
|
134
|
-
compatibility.isDefault = true;
|
|
135
|
-
}
|
|
136
|
-
if (typeof binding.order === "number") {
|
|
137
|
-
compatibility.order = binding.order;
|
|
138
|
-
}
|
|
139
|
-
if (typeof ((_a = binding.conditions) == null ? void 0 : _a.association) === "boolean") {
|
|
140
|
-
compatibility.association = binding.conditions.association;
|
|
141
|
-
}
|
|
142
|
-
if ((_c = (_b = binding.conditions) == null ? void 0 : _b.fieldTypes) == null ? void 0 : _c.length) {
|
|
143
|
-
compatibility.fieldTypes = import_lodash.default.cloneDeep(binding.conditions.fieldTypes);
|
|
144
|
-
}
|
|
145
|
-
if ((_e = (_d = binding.conditions) == null ? void 0 : _d.targetCollectionTemplateIn) == null ? void 0 : _e.length) {
|
|
146
|
-
compatibility.targetCollectionTemplateIn = import_lodash.default.cloneDeep(binding.conditions.targetCollectionTemplateIn);
|
|
147
|
-
}
|
|
148
|
-
if ((_g = (_f = binding.conditions) == null ? void 0 : _f.targetCollectionTemplateNotIn) == null ? void 0 : _g.length) {
|
|
149
|
-
compatibility.targetCollectionTemplateNotIn = import_lodash.default.cloneDeep(binding.conditions.targetCollectionTemplateNotIn);
|
|
150
|
-
}
|
|
151
|
-
return compatibility;
|
|
152
|
-
}
|
|
153
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
154
|
-
0 && (module.exports = {
|
|
155
|
-
buildFieldModelCompatibility,
|
|
156
|
-
matchesFieldBinding,
|
|
157
|
-
normalizeFieldBindingContextContribution,
|
|
158
|
-
normalizeFieldBindingContribution
|
|
159
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
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 { FlowDescendantSchemaPatch, FlowModelSchemaPatch, FlowSchemaContextEdge, FlowSchemaCoverage, FlowSubModelContextPathStep, FlowSubModelSlotSchema } from '../types';
|
|
10
|
-
import type { RegisteredModelSchema } from '../FlowSchemaRegistry';
|
|
11
|
-
export declare function normalizeSubModelContextPath(path?: FlowSubModelContextPathStep[]): FlowSubModelContextPathStep[];
|
|
12
|
-
export declare function normalizeModelSchemaPatch(patch?: FlowModelSchemaPatch): FlowModelSchemaPatch | undefined;
|
|
13
|
-
export declare function normalizeSubModelSlots(slots?: Record<string, FlowSubModelSlotSchema>): Record<string, FlowSubModelSlotSchema> | undefined;
|
|
14
|
-
export declare function matchesDescendantSchemaPatch(patch: FlowDescendantSchemaPatch, remainingEdges: FlowSchemaContextEdge[]): boolean;
|
|
15
|
-
export declare function resolveChildSchemaPatch(slot: FlowSubModelSlotSchema, childUse: string): FlowModelSchemaPatch | undefined;
|
|
16
|
-
export declare function applyModelSchemaPatch(target: RegisteredModelSchema, patch: FlowModelSchemaPatch, source: FlowSchemaCoverage['source'], strict?: boolean): void;
|
|
@@ -1,226 +0,0 @@
|
|
|
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 __create = Object.create;
|
|
11
|
-
var __defProp = Object.defineProperty;
|
|
12
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
14
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
15
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16
|
-
var __export = (target, all) => {
|
|
17
|
-
for (var name in all)
|
|
18
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
|
-
};
|
|
20
|
-
var __copyProps = (to, from, except, desc) => {
|
|
21
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
-
for (let key of __getOwnPropNames(from))
|
|
23
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
-
}
|
|
26
|
-
return to;
|
|
27
|
-
};
|
|
28
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
29
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
31
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
34
|
-
mod
|
|
35
|
-
));
|
|
36
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
37
|
-
var modelPatches_exports = {};
|
|
38
|
-
__export(modelPatches_exports, {
|
|
39
|
-
applyModelSchemaPatch: () => applyModelSchemaPatch,
|
|
40
|
-
matchesDescendantSchemaPatch: () => matchesDescendantSchemaPatch,
|
|
41
|
-
normalizeModelSchemaPatch: () => normalizeModelSchemaPatch,
|
|
42
|
-
normalizeSubModelContextPath: () => normalizeSubModelContextPath,
|
|
43
|
-
normalizeSubModelSlots: () => normalizeSubModelSlots,
|
|
44
|
-
resolveChildSchemaPatch: () => resolveChildSchemaPatch
|
|
45
|
-
});
|
|
46
|
-
module.exports = __toCommonJS(modelPatches_exports);
|
|
47
|
-
var import_lodash = __toESM(require("lodash"));
|
|
48
|
-
var import_utils = require("./utils");
|
|
49
|
-
function normalizeSubModelContextPath(path) {
|
|
50
|
-
if (!Array.isArray(path)) {
|
|
51
|
-
return [];
|
|
52
|
-
}
|
|
53
|
-
return path.map((step) => ({
|
|
54
|
-
slotKey: String((step == null ? void 0 : step.slotKey) || "").trim(),
|
|
55
|
-
...typeof (step == null ? void 0 : step.use) === "string" ? { use: step.use.trim() } : Array.isArray(step == null ? void 0 : step.use) ? { use: step.use.map((item) => String(item || "").trim()).filter(Boolean) } : {}
|
|
56
|
-
})).filter((step) => !!step.slotKey);
|
|
57
|
-
}
|
|
58
|
-
function normalizeModelSchemaPatch(patch) {
|
|
59
|
-
if (!patch || typeof patch !== "object" || Array.isArray(patch)) {
|
|
60
|
-
return void 0;
|
|
61
|
-
}
|
|
62
|
-
const normalized = import_lodash.default.pickBy(
|
|
63
|
-
{
|
|
64
|
-
stepParamsSchema: patch.stepParamsSchema ? import_lodash.default.cloneDeep(patch.stepParamsSchema) : void 0,
|
|
65
|
-
flowRegistrySchema: patch.flowRegistrySchema ? import_lodash.default.cloneDeep(patch.flowRegistrySchema) : void 0,
|
|
66
|
-
flowRegistrySchemaPatch: patch.flowRegistrySchemaPatch ? import_lodash.default.cloneDeep(patch.flowRegistrySchemaPatch) : void 0,
|
|
67
|
-
subModelSlots: normalizeSubModelSlots(patch.subModelSlots),
|
|
68
|
-
docs: patch.docs ? (0, import_utils.normalizeSchemaDocs)(patch.docs) : void 0,
|
|
69
|
-
examples: Array.isArray(patch.examples) ? import_lodash.default.cloneDeep(patch.examples) : void 0,
|
|
70
|
-
skeleton: patch.skeleton === void 0 ? void 0 : import_lodash.default.cloneDeep(patch.skeleton),
|
|
71
|
-
dynamicHints: Array.isArray(patch.dynamicHints) ? (0, import_utils.normalizeSchemaHints)(patch.dynamicHints) : void 0
|
|
72
|
-
},
|
|
73
|
-
(value) => value !== void 0 && (!Array.isArray(value) || value.length > 0)
|
|
74
|
-
);
|
|
75
|
-
return Object.keys(normalized).length > 0 ? normalized : void 0;
|
|
76
|
-
}
|
|
77
|
-
function normalizeDescendantSchemaPatches(patches) {
|
|
78
|
-
if (!Array.isArray(patches)) {
|
|
79
|
-
return void 0;
|
|
80
|
-
}
|
|
81
|
-
const normalized = patches.map((item) => {
|
|
82
|
-
const path = normalizeSubModelContextPath(item == null ? void 0 : item.path);
|
|
83
|
-
const patch = normalizeModelSchemaPatch(item == null ? void 0 : item.patch);
|
|
84
|
-
if (!patch) {
|
|
85
|
-
return void 0;
|
|
86
|
-
}
|
|
87
|
-
return { path, patch };
|
|
88
|
-
}).filter(Boolean);
|
|
89
|
-
return normalized.length > 0 ? normalized : void 0;
|
|
90
|
-
}
|
|
91
|
-
function normalizeChildSchemaPatch(patch) {
|
|
92
|
-
if (!patch || typeof patch !== "object" || Array.isArray(patch)) {
|
|
93
|
-
return void 0;
|
|
94
|
-
}
|
|
95
|
-
const directPatch = normalizeModelSchemaPatch(patch);
|
|
96
|
-
if (directPatch) {
|
|
97
|
-
return directPatch;
|
|
98
|
-
}
|
|
99
|
-
const entries = Object.entries(patch).map(([childUse, childPatch]) => [String(childUse || "").trim(), normalizeModelSchemaPatch(childPatch)]).filter(([childUse, childPatch]) => !!childUse && !!childPatch);
|
|
100
|
-
if (!entries.length) {
|
|
101
|
-
return void 0;
|
|
102
|
-
}
|
|
103
|
-
return Object.fromEntries(entries);
|
|
104
|
-
}
|
|
105
|
-
function normalizeSubModelSlots(slots) {
|
|
106
|
-
if (!slots || typeof slots !== "object" || Array.isArray(slots)) {
|
|
107
|
-
return void 0;
|
|
108
|
-
}
|
|
109
|
-
const normalizedEntries = Object.entries(slots).map(([slotKey, slot]) => {
|
|
110
|
-
if (!(slot == null ? void 0 : slot.type)) {
|
|
111
|
-
return void 0;
|
|
112
|
-
}
|
|
113
|
-
const normalizedSlot = {
|
|
114
|
-
type: slot.type
|
|
115
|
-
};
|
|
116
|
-
const normalizedUse = typeof slot.use === "string" ? slot.use.trim() : void 0;
|
|
117
|
-
if (normalizedUse) {
|
|
118
|
-
normalizedSlot.use = normalizedUse;
|
|
119
|
-
}
|
|
120
|
-
const normalizedUses = Array.isArray(slot.uses) ? slot.uses.map((item) => String(item || "").trim()).filter(Boolean) : void 0;
|
|
121
|
-
if (normalizedUses == null ? void 0 : normalizedUses.length) {
|
|
122
|
-
normalizedSlot.uses = normalizedUses;
|
|
123
|
-
}
|
|
124
|
-
if (slot.required !== void 0) {
|
|
125
|
-
normalizedSlot.required = slot.required;
|
|
126
|
-
}
|
|
127
|
-
if (slot.type === "array" && typeof slot.minItems === "number" && Number.isFinite(slot.minItems)) {
|
|
128
|
-
normalizedSlot.minItems = Math.max(0, Math.trunc(slot.minItems));
|
|
129
|
-
}
|
|
130
|
-
if (slot.dynamic !== void 0) {
|
|
131
|
-
normalizedSlot.dynamic = slot.dynamic;
|
|
132
|
-
}
|
|
133
|
-
if (slot.schema) {
|
|
134
|
-
normalizedSlot.schema = import_lodash.default.cloneDeep(slot.schema);
|
|
135
|
-
}
|
|
136
|
-
if (typeof slot.fieldBindingContext === "string" && slot.fieldBindingContext.trim()) {
|
|
137
|
-
normalizedSlot.fieldBindingContext = slot.fieldBindingContext.trim();
|
|
138
|
-
}
|
|
139
|
-
const childSchemaPatch = normalizeChildSchemaPatch(slot.childSchemaPatch);
|
|
140
|
-
if (childSchemaPatch) {
|
|
141
|
-
normalizedSlot.childSchemaPatch = childSchemaPatch;
|
|
142
|
-
}
|
|
143
|
-
const descendantSchemaPatches = normalizeDescendantSchemaPatches(slot.descendantSchemaPatches);
|
|
144
|
-
if (descendantSchemaPatches == null ? void 0 : descendantSchemaPatches.length) {
|
|
145
|
-
normalizedSlot.descendantSchemaPatches = descendantSchemaPatches;
|
|
146
|
-
}
|
|
147
|
-
if (slot.description !== void 0) {
|
|
148
|
-
normalizedSlot.description = slot.description;
|
|
149
|
-
}
|
|
150
|
-
return [slotKey, normalizedSlot];
|
|
151
|
-
}).filter(Boolean);
|
|
152
|
-
return normalizedEntries.length > 0 ? Object.fromEntries(normalizedEntries) : void 0;
|
|
153
|
-
}
|
|
154
|
-
function matchesDescendantSchemaPatch(patch, remainingEdges) {
|
|
155
|
-
const path = normalizeSubModelContextPath(patch.path);
|
|
156
|
-
if (path.length !== remainingEdges.length) {
|
|
157
|
-
return false;
|
|
158
|
-
}
|
|
159
|
-
return path.every((step, index) => {
|
|
160
|
-
const edge = remainingEdges[index];
|
|
161
|
-
if (step.slotKey !== edge.slotKey) {
|
|
162
|
-
return false;
|
|
163
|
-
}
|
|
164
|
-
if (typeof step.use === "undefined") {
|
|
165
|
-
return true;
|
|
166
|
-
}
|
|
167
|
-
if (typeof step.use === "string") {
|
|
168
|
-
return step.use === edge.childUse;
|
|
169
|
-
}
|
|
170
|
-
return step.use.includes(edge.childUse);
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
function resolveChildSchemaPatch(slot, childUse) {
|
|
174
|
-
const childSchemaPatch = slot.childSchemaPatch;
|
|
175
|
-
if (!childSchemaPatch || typeof childSchemaPatch !== "object" || Array.isArray(childSchemaPatch)) {
|
|
176
|
-
return void 0;
|
|
177
|
-
}
|
|
178
|
-
const directPatch = normalizeModelSchemaPatch(childSchemaPatch);
|
|
179
|
-
if (directPatch) {
|
|
180
|
-
return directPatch;
|
|
181
|
-
}
|
|
182
|
-
return normalizeModelSchemaPatch(childSchemaPatch[childUse]);
|
|
183
|
-
}
|
|
184
|
-
function applyModelSchemaPatch(target, patch, source, strict) {
|
|
185
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
186
|
-
target.stepParamsSchema = (0, import_utils.mergeSchemas)(target.stepParamsSchema, patch.stepParamsSchema);
|
|
187
|
-
target.flowRegistrySchema = (0, import_utils.mergeSchemas)(target.flowRegistrySchema, patch.flowRegistrySchema);
|
|
188
|
-
target.flowRegistrySchemaPatch = (0, import_utils.mergeSchemas)(target.flowRegistrySchemaPatch, patch.flowRegistrySchemaPatch);
|
|
189
|
-
target.subModelSlots = normalizeSubModelSlots(
|
|
190
|
-
patch.subModelSlots ? (0, import_utils.deepMergeReplaceArrays)(target.subModelSlots || {}, patch.subModelSlots) : target.subModelSlots
|
|
191
|
-
);
|
|
192
|
-
target.docs = (0, import_utils.normalizeSchemaDocs)({
|
|
193
|
-
...target.docs,
|
|
194
|
-
...patch.docs,
|
|
195
|
-
examples: ((_a = patch.docs) == null ? void 0 : _a.examples) || ((_b = target.docs) == null ? void 0 : _b.examples),
|
|
196
|
-
dynamicHints: [...((_c = target.docs) == null ? void 0 : _c.dynamicHints) || [], ...((_d = patch.docs) == null ? void 0 : _d.dynamicHints) || []],
|
|
197
|
-
commonPatterns: ((_e = patch.docs) == null ? void 0 : _e.commonPatterns) || ((_f = target.docs) == null ? void 0 : _f.commonPatterns),
|
|
198
|
-
antiPatterns: ((_g = patch.docs) == null ? void 0 : _g.antiPatterns) || ((_h = target.docs) == null ? void 0 : _h.antiPatterns),
|
|
199
|
-
minimalExample: ((_i = patch.docs) == null ? void 0 : _i.minimalExample) !== void 0 ? patch.docs.minimalExample : (_j = target.docs) == null ? void 0 : _j.minimalExample
|
|
200
|
-
});
|
|
201
|
-
target.examples = Array.isArray(patch.examples) ? import_lodash.default.cloneDeep(patch.examples) : target.examples;
|
|
202
|
-
target.skeleton = patch.skeleton !== void 0 ? (0, import_utils.deepMergeReplaceArrays)(target.skeleton, patch.skeleton) : target.skeleton;
|
|
203
|
-
target.dynamicHints = (0, import_utils.normalizeSchemaHints)([
|
|
204
|
-
...target.dynamicHints || [],
|
|
205
|
-
...patch.dynamicHints || [],
|
|
206
|
-
...((_k = patch.docs) == null ? void 0 : _k.dynamicHints) || []
|
|
207
|
-
]);
|
|
208
|
-
const hasSchemaPatch = !!patch.stepParamsSchema || !!patch.flowRegistrySchema || !!patch.flowRegistrySchemaPatch || !!patch.subModelSlots;
|
|
209
|
-
if (hasSchemaPatch) {
|
|
210
|
-
target.coverage = {
|
|
211
|
-
...target.coverage,
|
|
212
|
-
status: target.coverage.status === "unresolved" ? "manual" : target.coverage.status === "auto" ? "mixed" : target.coverage.status,
|
|
213
|
-
source: target.coverage.source === "third-party" ? source : target.coverage.source,
|
|
214
|
-
strict: target.coverage.strict ?? strict
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
219
|
-
0 && (module.exports = {
|
|
220
|
-
applyModelSchemaPatch,
|
|
221
|
-
matchesDescendantSchemaPatch,
|
|
222
|
-
normalizeModelSchemaPatch,
|
|
223
|
-
normalizeSubModelContextPath,
|
|
224
|
-
normalizeSubModelSlots,
|
|
225
|
-
resolveChildSchemaPatch
|
|
226
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
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 { ISchema } from '@formily/json-schema';
|
|
10
|
-
import type { FlowDynamicHint, FlowJsonSchema, FlowSchemaCoverage } from '../types';
|
|
11
|
-
export type StepSchemaResolution = {
|
|
12
|
-
schema?: FlowJsonSchema;
|
|
13
|
-
hints: FlowDynamicHint[];
|
|
14
|
-
coverage: FlowSchemaCoverage['status'];
|
|
15
|
-
};
|
|
16
|
-
export type UiSchemaLike = Record<string, ISchema> | ((...args: any[]) => Record<string, ISchema> | Promise<Record<string, ISchema>>) | undefined;
|
|
17
|
-
export declare function inferParamsSchemaFromUiSchema(name: string, uiSchema: UiSchemaLike, path: string): StepSchemaResolution;
|
|
@@ -1,204 +0,0 @@
|
|
|
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 __create = Object.create;
|
|
11
|
-
var __defProp = Object.defineProperty;
|
|
12
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
14
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
15
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16
|
-
var __export = (target, all) => {
|
|
17
|
-
for (var name in all)
|
|
18
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
|
-
};
|
|
20
|
-
var __copyProps = (to, from, except, desc) => {
|
|
21
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
-
for (let key of __getOwnPropNames(from))
|
|
23
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
-
}
|
|
26
|
-
return to;
|
|
27
|
-
};
|
|
28
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
29
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
31
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
34
|
-
mod
|
|
35
|
-
));
|
|
36
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
37
|
-
var schemaInference_exports = {};
|
|
38
|
-
__export(schemaInference_exports, {
|
|
39
|
-
inferParamsSchemaFromUiSchema: () => inferParamsSchemaFromUiSchema
|
|
40
|
-
});
|
|
41
|
-
module.exports = __toCommonJS(schemaInference_exports);
|
|
42
|
-
var import_lodash = __toESM(require("lodash"));
|
|
43
|
-
var import_utils = require("./utils");
|
|
44
|
-
function inferSchemaFromUiSchemaValue(name, uiSchema, path, hints) {
|
|
45
|
-
if (!uiSchema || typeof uiSchema !== "object" || Array.isArray(uiSchema)) {
|
|
46
|
-
return { type: "object", additionalProperties: true };
|
|
47
|
-
}
|
|
48
|
-
const xComponent = uiSchema["x-component"];
|
|
49
|
-
if (typeof xComponent === "function") {
|
|
50
|
-
hints.push(
|
|
51
|
-
(0, import_utils.createFlowHint)(
|
|
52
|
-
{
|
|
53
|
-
kind: "custom-component",
|
|
54
|
-
path,
|
|
55
|
-
message: `${name} uses a custom component and needs manual schema review.`
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
unresolvedReason: "function-x-component",
|
|
59
|
-
recommendedFallback: { type: "object", additionalProperties: true }
|
|
60
|
-
}
|
|
61
|
-
)
|
|
62
|
-
);
|
|
63
|
-
}
|
|
64
|
-
const reactions = uiSchema["x-reactions"];
|
|
65
|
-
if (reactions && (Array.isArray(reactions) && reactions.some((item) => typeof item === "function") || typeof reactions === "function")) {
|
|
66
|
-
hints.push(
|
|
67
|
-
(0, import_utils.createFlowHint)(
|
|
68
|
-
{
|
|
69
|
-
kind: "x-reactions",
|
|
70
|
-
path,
|
|
71
|
-
message: `${name} contains function-based x-reactions and only static schema is generated.`
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
unresolvedReason: "function-x-reactions"
|
|
75
|
-
}
|
|
76
|
-
)
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
const schema = {};
|
|
80
|
-
const type = uiSchema.type;
|
|
81
|
-
if (type) {
|
|
82
|
-
schema.type = type;
|
|
83
|
-
}
|
|
84
|
-
if (uiSchema.description) {
|
|
85
|
-
schema.description = uiSchema.description;
|
|
86
|
-
}
|
|
87
|
-
if (uiSchema.default !== void 0) {
|
|
88
|
-
schema.default = import_lodash.default.cloneDeep(uiSchema.default);
|
|
89
|
-
}
|
|
90
|
-
if (uiSchema.enum) {
|
|
91
|
-
if (Array.isArray(uiSchema.enum) && uiSchema.enum.every((item) => import_lodash.default.isPlainObject(item) && "value" in item)) {
|
|
92
|
-
schema.enum = uiSchema.enum.map((item) => item.value);
|
|
93
|
-
} else {
|
|
94
|
-
schema.enum = import_lodash.default.cloneDeep(uiSchema.enum);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
if (uiSchema.const !== void 0) {
|
|
98
|
-
schema.const = import_lodash.default.cloneDeep(uiSchema.const);
|
|
99
|
-
}
|
|
100
|
-
if (uiSchema.required === true) {
|
|
101
|
-
schema.__required = true;
|
|
102
|
-
}
|
|
103
|
-
const validator = uiSchema["x-validator"];
|
|
104
|
-
if (import_lodash.default.isPlainObject(validator)) {
|
|
105
|
-
if (validator.minimum !== void 0) schema.minimum = validator.minimum;
|
|
106
|
-
if (validator.maximum !== void 0) schema.maximum = validator.maximum;
|
|
107
|
-
if (validator.minLength !== void 0) schema.minLength = validator.minLength;
|
|
108
|
-
if (validator.maxLength !== void 0) schema.maxLength = validator.maxLength;
|
|
109
|
-
if (validator.pattern !== void 0) schema.pattern = validator.pattern;
|
|
110
|
-
} else if (Array.isArray(validator)) {
|
|
111
|
-
for (const item of validator) {
|
|
112
|
-
if (import_lodash.default.isPlainObject(item)) {
|
|
113
|
-
Object.assign(schema, import_lodash.default.pick(item, ["minimum", "maximum", "minLength", "maxLength", "pattern"]));
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
} else if (typeof validator === "string") {
|
|
117
|
-
if (validator === "integer") schema.type = "integer";
|
|
118
|
-
if (validator === "email") schema.format = "email";
|
|
119
|
-
if (validator === "url") schema.format = "uri";
|
|
120
|
-
if (validator === "uid") schema.pattern = "^[A-Za-z0-9_-]+$";
|
|
121
|
-
}
|
|
122
|
-
if (uiSchema.properties && import_lodash.default.isPlainObject(uiSchema.properties)) {
|
|
123
|
-
schema.type = schema.type || "object";
|
|
124
|
-
schema.properties = {};
|
|
125
|
-
const required = [];
|
|
126
|
-
for (const [propName, propValue] of Object.entries(uiSchema.properties)) {
|
|
127
|
-
const childSchema = inferSchemaFromUiSchemaValue(propName, propValue, `${path}.${propName}`, hints);
|
|
128
|
-
if (childSchema.__required) {
|
|
129
|
-
required.push(propName);
|
|
130
|
-
delete childSchema.__required;
|
|
131
|
-
}
|
|
132
|
-
schema.properties[propName] = childSchema;
|
|
133
|
-
}
|
|
134
|
-
if (required.length) {
|
|
135
|
-
schema.required = required;
|
|
136
|
-
}
|
|
137
|
-
schema.additionalProperties = false;
|
|
138
|
-
}
|
|
139
|
-
if (uiSchema.items) {
|
|
140
|
-
schema.type = schema.type || "array";
|
|
141
|
-
if (import_lodash.default.isPlainObject(uiSchema.items)) {
|
|
142
|
-
schema.items = inferSchemaFromUiSchemaValue(`${name}.items`, uiSchema.items, `${path}.items`, hints);
|
|
143
|
-
} else if (Array.isArray(uiSchema.items)) {
|
|
144
|
-
schema.items = uiSchema.items.map(
|
|
145
|
-
(item, index) => inferSchemaFromUiSchemaValue(`${name}.items[${index}]`, item, `${path}.items[${index}]`, hints)
|
|
146
|
-
);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
if (!schema.type) {
|
|
150
|
-
schema.type = "object";
|
|
151
|
-
schema.additionalProperties = true;
|
|
152
|
-
}
|
|
153
|
-
return schema;
|
|
154
|
-
}
|
|
155
|
-
function inferParamsSchemaFromUiSchema(name, uiSchema, path) {
|
|
156
|
-
const hints = [];
|
|
157
|
-
if (!uiSchema) {
|
|
158
|
-
return { schema: void 0, hints, coverage: "unresolved" };
|
|
159
|
-
}
|
|
160
|
-
if (typeof uiSchema === "function") {
|
|
161
|
-
hints.push(
|
|
162
|
-
(0, import_utils.createFlowHint)(
|
|
163
|
-
{
|
|
164
|
-
kind: "dynamic-ui-schema",
|
|
165
|
-
path,
|
|
166
|
-
message: `${name} uses function-based uiSchema and requires manual schema patch.`
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
unresolvedReason: "function-ui-schema",
|
|
170
|
-
recommendedFallback: { type: "object", additionalProperties: true }
|
|
171
|
-
}
|
|
172
|
-
)
|
|
173
|
-
);
|
|
174
|
-
return {
|
|
175
|
-
schema: { type: "object", additionalProperties: true },
|
|
176
|
-
hints,
|
|
177
|
-
coverage: "unresolved"
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
const properties = {};
|
|
181
|
-
const required = [];
|
|
182
|
-
for (const [key, value] of Object.entries(uiSchema)) {
|
|
183
|
-
const childSchema = inferSchemaFromUiSchemaValue(key, value, `${path}.${key}`, hints);
|
|
184
|
-
if (childSchema.__required) {
|
|
185
|
-
required.push(key);
|
|
186
|
-
delete childSchema.__required;
|
|
187
|
-
}
|
|
188
|
-
properties[key] = childSchema;
|
|
189
|
-
}
|
|
190
|
-
return {
|
|
191
|
-
schema: {
|
|
192
|
-
type: "object",
|
|
193
|
-
properties,
|
|
194
|
-
...required.length ? { required } : {},
|
|
195
|
-
additionalProperties: false
|
|
196
|
-
},
|
|
197
|
-
hints,
|
|
198
|
-
coverage: hints.length ? "mixed" : "auto"
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
202
|
-
0 && (module.exports = {
|
|
203
|
-
inferParamsSchemaFromUiSchema
|
|
204
|
-
});
|