@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,75 +0,0 @@
|
|
|
1
|
-
import type {AnySchemaObject} from "./types"
|
|
2
|
-
import AjvCore, {Options} from "./core"
|
|
3
|
-
|
|
4
|
-
import draft2020Vocabularies from "./vocabularies/draft2020"
|
|
5
|
-
import discriminator from "./vocabularies/discriminator"
|
|
6
|
-
import addMetaSchema2020 from "./refs/json-schema-2020-12"
|
|
7
|
-
|
|
8
|
-
const META_SCHEMA_ID = "https://json-schema.org/draft/2020-12/schema"
|
|
9
|
-
|
|
10
|
-
export class Ajv2020 extends AjvCore {
|
|
11
|
-
constructor(opts: Options = {}) {
|
|
12
|
-
super({
|
|
13
|
-
...opts,
|
|
14
|
-
dynamicRef: true,
|
|
15
|
-
next: true,
|
|
16
|
-
unevaluated: true,
|
|
17
|
-
})
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
_addVocabularies(): void {
|
|
21
|
-
super._addVocabularies()
|
|
22
|
-
draft2020Vocabularies.forEach((v) => this.addVocabulary(v))
|
|
23
|
-
if (this.opts.discriminator) this.addKeyword(discriminator)
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
_addDefaultMetaSchema(): void {
|
|
27
|
-
super._addDefaultMetaSchema()
|
|
28
|
-
const {$data, meta} = this.opts
|
|
29
|
-
if (!meta) return
|
|
30
|
-
addMetaSchema2020.call(this, $data)
|
|
31
|
-
this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
defaultMeta(): string | AnySchemaObject | undefined {
|
|
35
|
-
return (this.opts.defaultMeta =
|
|
36
|
-
super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined))
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
module.exports = exports = Ajv2020
|
|
41
|
-
module.exports.Ajv2020 = Ajv2020
|
|
42
|
-
Object.defineProperty(exports, "__esModule", {value: true})
|
|
43
|
-
|
|
44
|
-
export default Ajv2020
|
|
45
|
-
|
|
46
|
-
export {
|
|
47
|
-
Format,
|
|
48
|
-
FormatDefinition,
|
|
49
|
-
AsyncFormatDefinition,
|
|
50
|
-
KeywordDefinition,
|
|
51
|
-
KeywordErrorDefinition,
|
|
52
|
-
CodeKeywordDefinition,
|
|
53
|
-
MacroKeywordDefinition,
|
|
54
|
-
FuncKeywordDefinition,
|
|
55
|
-
Vocabulary,
|
|
56
|
-
Schema,
|
|
57
|
-
SchemaObject,
|
|
58
|
-
AnySchemaObject,
|
|
59
|
-
AsyncSchema,
|
|
60
|
-
AnySchema,
|
|
61
|
-
ValidateFunction,
|
|
62
|
-
AsyncValidateFunction,
|
|
63
|
-
ErrorObject,
|
|
64
|
-
ErrorNoParams,
|
|
65
|
-
} from "./types"
|
|
66
|
-
|
|
67
|
-
export {Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions} from "./core"
|
|
68
|
-
export {SchemaCxt, SchemaObjCxt} from "./compile"
|
|
69
|
-
export {KeywordCxt} from "./compile/validate"
|
|
70
|
-
export {DefinedError} from "./vocabularies/errors"
|
|
71
|
-
export {JSONType} from "./compile/rules"
|
|
72
|
-
export {JSONSchemaType} from "./types/json-schema"
|
|
73
|
-
export {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from "./compile/codegen"
|
|
74
|
-
export {default as ValidationError} from "./runtime/validation_error"
|
|
75
|
-
export {default as MissingRefError} from "./compile/ref_error"
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import type {AnySchemaObject} from "./types"
|
|
2
|
-
import AjvCore from "./core"
|
|
3
|
-
import draft7Vocabularies from "./vocabularies/draft7"
|
|
4
|
-
import discriminator from "./vocabularies/discriminator"
|
|
5
|
-
import * as draft7MetaSchema from "./refs/json-schema-draft-07.json"
|
|
6
|
-
|
|
7
|
-
const META_SUPPORT_DATA = ["/properties"]
|
|
8
|
-
|
|
9
|
-
const META_SCHEMA_ID = "http://json-schema.org/draft-07/schema"
|
|
10
|
-
|
|
11
|
-
export class Ajv extends AjvCore {
|
|
12
|
-
_addVocabularies(): void {
|
|
13
|
-
super._addVocabularies()
|
|
14
|
-
draft7Vocabularies.forEach((v) => this.addVocabulary(v))
|
|
15
|
-
if (this.opts.discriminator) this.addKeyword(discriminator)
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
_addDefaultMetaSchema(): void {
|
|
19
|
-
super._addDefaultMetaSchema()
|
|
20
|
-
if (!this.opts.meta) return
|
|
21
|
-
const metaSchema = this.opts.$data
|
|
22
|
-
? this.$dataMetaSchema(draft7MetaSchema, META_SUPPORT_DATA)
|
|
23
|
-
: draft7MetaSchema
|
|
24
|
-
this.addMetaSchema(metaSchema, META_SCHEMA_ID, false)
|
|
25
|
-
this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
defaultMeta(): string | AnySchemaObject | undefined {
|
|
29
|
-
return (this.opts.defaultMeta =
|
|
30
|
-
super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined))
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
module.exports = exports = Ajv
|
|
35
|
-
module.exports.Ajv = Ajv
|
|
36
|
-
Object.defineProperty(exports, "__esModule", {value: true})
|
|
37
|
-
|
|
38
|
-
export default Ajv
|
|
39
|
-
|
|
40
|
-
export {
|
|
41
|
-
Format,
|
|
42
|
-
FormatDefinition,
|
|
43
|
-
AsyncFormatDefinition,
|
|
44
|
-
KeywordDefinition,
|
|
45
|
-
KeywordErrorDefinition,
|
|
46
|
-
CodeKeywordDefinition,
|
|
47
|
-
MacroKeywordDefinition,
|
|
48
|
-
FuncKeywordDefinition,
|
|
49
|
-
Vocabulary,
|
|
50
|
-
Schema,
|
|
51
|
-
SchemaObject,
|
|
52
|
-
AnySchemaObject,
|
|
53
|
-
AsyncSchema,
|
|
54
|
-
AnySchema,
|
|
55
|
-
ValidateFunction,
|
|
56
|
-
AsyncValidateFunction,
|
|
57
|
-
SchemaValidateFunction,
|
|
58
|
-
ErrorObject,
|
|
59
|
-
ErrorNoParams,
|
|
60
|
-
} from "./types"
|
|
61
|
-
|
|
62
|
-
export {Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions} from "./core"
|
|
63
|
-
export {SchemaCxt, SchemaObjCxt} from "./compile"
|
|
64
|
-
export {KeywordCxt} from "./compile/validate"
|
|
65
|
-
export {DefinedError} from "./vocabularies/errors"
|
|
66
|
-
export {JSONType} from "./compile/rules"
|
|
67
|
-
export {JSONSchemaType} from "./types/json-schema"
|
|
68
|
-
export {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from "./compile/codegen"
|
|
69
|
-
export {default as ValidationError} from "./runtime/validation_error"
|
|
70
|
-
export {default as MissingRefError} from "./compile/ref_error"
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
// eslint-disable-next-line @typescript-eslint/no-extraneous-class
|
|
2
|
-
export abstract class _CodeOrName {
|
|
3
|
-
abstract readonly str: string
|
|
4
|
-
abstract readonly names: UsedNames
|
|
5
|
-
abstract toString(): string
|
|
6
|
-
abstract emptyStr(): boolean
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export const IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i
|
|
10
|
-
|
|
11
|
-
export class Name extends _CodeOrName {
|
|
12
|
-
readonly str: string
|
|
13
|
-
constructor(s: string) {
|
|
14
|
-
super()
|
|
15
|
-
if (!IDENTIFIER.test(s)) throw new Error("CodeGen: name must be a valid identifier")
|
|
16
|
-
this.str = s
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
toString(): string {
|
|
20
|
-
return this.str
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
emptyStr(): boolean {
|
|
24
|
-
return false
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
get names(): UsedNames {
|
|
28
|
-
return {[this.str]: 1}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export class _Code extends _CodeOrName {
|
|
33
|
-
readonly _items: readonly CodeItem[]
|
|
34
|
-
private _str?: string
|
|
35
|
-
private _names?: UsedNames
|
|
36
|
-
|
|
37
|
-
constructor(code: string | readonly CodeItem[]) {
|
|
38
|
-
super()
|
|
39
|
-
this._items = typeof code === "string" ? [code] : code
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
toString(): string {
|
|
43
|
-
return this.str
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
emptyStr(): boolean {
|
|
47
|
-
if (this._items.length > 1) return false
|
|
48
|
-
const item = this._items[0]
|
|
49
|
-
return item === "" || item === '""'
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
get str(): string {
|
|
53
|
-
return (this._str ??= this._items.reduce((s: string, c: CodeItem) => `${s}${c}`, ""))
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
get names(): UsedNames {
|
|
57
|
-
return (this._names ??= this._items.reduce((names: UsedNames, c) => {
|
|
58
|
-
if (c instanceof Name) names[c.str] = (names[c.str] || 0) + 1
|
|
59
|
-
return names
|
|
60
|
-
}, {}))
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export type CodeItem = Name | string | number | boolean | null
|
|
65
|
-
|
|
66
|
-
export type UsedNames = Record<string, number | undefined>
|
|
67
|
-
|
|
68
|
-
export type Code = _Code | Name
|
|
69
|
-
|
|
70
|
-
export type SafeExpr = Code | number | boolean | null
|
|
71
|
-
|
|
72
|
-
export const nil = new _Code("")
|
|
73
|
-
|
|
74
|
-
type CodeArg = SafeExpr | string | undefined
|
|
75
|
-
|
|
76
|
-
export function _(strs: TemplateStringsArray, ...args: CodeArg[]): _Code {
|
|
77
|
-
const code: CodeItem[] = [strs[0]]
|
|
78
|
-
let i = 0
|
|
79
|
-
while (i < args.length) {
|
|
80
|
-
addCodeArg(code, args[i])
|
|
81
|
-
code.push(strs[++i])
|
|
82
|
-
}
|
|
83
|
-
return new _Code(code)
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
const plus = new _Code("+")
|
|
87
|
-
|
|
88
|
-
export function str(strs: TemplateStringsArray, ...args: (CodeArg | string[])[]): _Code {
|
|
89
|
-
const expr: CodeItem[] = [safeStringify(strs[0])]
|
|
90
|
-
let i = 0
|
|
91
|
-
while (i < args.length) {
|
|
92
|
-
expr.push(plus)
|
|
93
|
-
addCodeArg(expr, args[i])
|
|
94
|
-
expr.push(plus, safeStringify(strs[++i]))
|
|
95
|
-
}
|
|
96
|
-
optimize(expr)
|
|
97
|
-
return new _Code(expr)
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export function addCodeArg(code: CodeItem[], arg: CodeArg | string[]): void {
|
|
101
|
-
if (arg instanceof _Code) code.push(...arg._items)
|
|
102
|
-
else if (arg instanceof Name) code.push(arg)
|
|
103
|
-
else code.push(interpolate(arg))
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
function optimize(expr: CodeItem[]): void {
|
|
107
|
-
let i = 1
|
|
108
|
-
while (i < expr.length - 1) {
|
|
109
|
-
if (expr[i] === plus) {
|
|
110
|
-
const res = mergeExprItems(expr[i - 1], expr[i + 1])
|
|
111
|
-
if (res !== undefined) {
|
|
112
|
-
expr.splice(i - 1, 3, res)
|
|
113
|
-
continue
|
|
114
|
-
}
|
|
115
|
-
expr[i++] = "+"
|
|
116
|
-
}
|
|
117
|
-
i++
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
function mergeExprItems(a: CodeItem, b: CodeItem): CodeItem | undefined {
|
|
122
|
-
if (b === '""') return a
|
|
123
|
-
if (a === '""') return b
|
|
124
|
-
if (typeof a == "string") {
|
|
125
|
-
if (b instanceof Name || a[a.length - 1] !== '"') return
|
|
126
|
-
if (typeof b != "string") return `${a.slice(0, -1)}${b}"`
|
|
127
|
-
if (b[0] === '"') return a.slice(0, -1) + b.slice(1)
|
|
128
|
-
return
|
|
129
|
-
}
|
|
130
|
-
if (typeof b == "string" && b[0] === '"' && !(a instanceof Name)) return `"${a}${b.slice(1)}`
|
|
131
|
-
return
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
export function strConcat(c1: Code, c2: Code): Code {
|
|
135
|
-
return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str`${c1}${c2}`
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
// TODO do not allow arrays here
|
|
139
|
-
function interpolate(x?: string | string[] | number | boolean | null): SafeExpr | string {
|
|
140
|
-
return typeof x == "number" || typeof x == "boolean" || x === null
|
|
141
|
-
? x
|
|
142
|
-
: safeStringify(Array.isArray(x) ? x.join(",") : x)
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
export function stringify(x: unknown): Code {
|
|
146
|
-
return new _Code(safeStringify(x))
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
export function safeStringify(x: unknown): string {
|
|
150
|
-
return JSON.stringify(x)
|
|
151
|
-
.replace(/\u2028/g, "\\u2028")
|
|
152
|
-
.replace(/\u2029/g, "\\u2029")
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
export function getProperty(key: Code | string | number): Code {
|
|
156
|
-
return typeof key == "string" && IDENTIFIER.test(key) ? new _Code(`.${key}`) : _`[${key}]`
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
//Does best effort to format the name properly
|
|
160
|
-
export function getEsmExportName(key: Code | string | number): Code {
|
|
161
|
-
if (typeof key == "string" && IDENTIFIER.test(key)) {
|
|
162
|
-
return new _Code(`${key}`)
|
|
163
|
-
}
|
|
164
|
-
throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`)
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
export function regexpCode(rx: RegExp): Code {
|
|
168
|
-
return new _Code(rx.toString())
|
|
169
|
-
}
|