@baseplate-dev/project-builder-lib 0.5.3 → 0.6.1
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/CHANGELOG.md +69 -0
- package/dist/definition/index.d.ts +0 -1
- package/dist/definition/index.d.ts.map +1 -1
- package/dist/definition/index.js +0 -1
- package/dist/definition/index.js.map +1 -1
- package/dist/definition/model/model-field-utils.js +2 -2
- package/dist/definition/model/model-field-utils.js.map +1 -1
- package/dist/definition/model/model-utils.d.ts.map +1 -1
- package/dist/definition/model/model-utils.js +2 -2
- package/dist/definition/model/model-utils.js.map +1 -1
- package/dist/definition/project-definition-container.d.ts +21 -12
- package/dist/definition/project-definition-container.d.ts.map +1 -1
- package/dist/definition/project-definition-container.js +42 -23
- package/dist/definition/project-definition-container.js.map +1 -1
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/migrations/index.js +6 -0
- package/dist/migrations/index.js.map +1 -1
- package/dist/migrations/migration-024-graphql-object-type-field-auth.d.ts +30 -0
- package/dist/migrations/migration-024-graphql-object-type-field-auth.d.ts.map +1 -0
- package/dist/migrations/migration-024-graphql-object-type-field-auth.js +54 -0
- package/dist/migrations/migration-024-graphql-object-type-field-auth.js.map +1 -0
- package/dist/migrations/migration-025-service-method-auth.d.ts +44 -0
- package/dist/migrations/migration-025-service-method-auth.d.ts.map +1 -0
- package/dist/migrations/migration-025-service-method-auth.js +62 -0
- package/dist/migrations/migration-025-service-method-auth.js.map +1 -0
- package/dist/migrations/migration-026-query-shared-roles.d.ts +32 -0
- package/dist/migrations/migration-026-query-shared-roles.d.ts.map +1 -0
- package/dist/migrations/migration-026-query-shared-roles.js +48 -0
- package/dist/migrations/migration-026-query-shared-roles.js.map +1 -0
- package/dist/parser/apply-definition-fixes.d.ts +13 -0
- package/dist/parser/apply-definition-fixes.d.ts.map +1 -0
- package/dist/parser/apply-definition-fixes.js +25 -0
- package/dist/parser/apply-definition-fixes.js.map +1 -0
- package/dist/parser/clean-default-values.d.ts +14 -0
- package/dist/parser/clean-default-values.d.ts.map +1 -0
- package/dist/parser/clean-default-values.js +24 -0
- package/dist/parser/clean-default-values.js.map +1 -0
- package/dist/parser/collect-definition-issues.d.ts +36 -0
- package/dist/parser/collect-definition-issues.d.ts.map +1 -0
- package/dist/parser/collect-definition-issues.js +94 -0
- package/dist/parser/collect-definition-issues.js.map +1 -0
- package/dist/parser/collect-expression-issues.d.ts +17 -0
- package/dist/parser/collect-expression-issues.d.ts.map +1 -0
- package/dist/parser/collect-expression-issues.js +33 -0
- package/dist/parser/collect-expression-issues.js.map +1 -0
- package/dist/parser/definition-issue-checkers/mutation-roles-checker.d.ts +11 -0
- package/dist/parser/definition-issue-checkers/mutation-roles-checker.d.ts.map +1 -0
- package/dist/parser/definition-issue-checkers/mutation-roles-checker.js +41 -0
- package/dist/parser/definition-issue-checkers/mutation-roles-checker.js.map +1 -0
- package/dist/parser/definition-issue-checkers/relation-type-mismatch-checker.d.ts +10 -0
- package/dist/parser/definition-issue-checkers/relation-type-mismatch-checker.d.ts.map +1 -0
- package/dist/parser/definition-issue-checkers/relation-type-mismatch-checker.js +36 -0
- package/dist/parser/definition-issue-checkers/relation-type-mismatch-checker.js.map +1 -0
- package/dist/parser/definition-issue-utils.d.ts +23 -0
- package/dist/parser/definition-issue-utils.d.ts.map +1 -0
- package/dist/parser/definition-issue-utils.js +33 -0
- package/dist/parser/definition-issue-utils.js.map +1 -0
- package/dist/parser/index.d.ts +9 -0
- package/dist/parser/index.d.ts.map +1 -1
- package/dist/parser/index.js +8 -0
- package/dist/parser/index.js.map +1 -1
- package/dist/parser/parser.d.ts.map +1 -1
- package/dist/parser/parser.js +7 -2
- package/dist/parser/parser.js.map +1 -1
- package/dist/parser/schema-structure.d.ts +53 -0
- package/dist/parser/schema-structure.d.ts.map +1 -0
- package/dist/parser/schema-structure.js +171 -0
- package/dist/parser/schema-structure.js.map +1 -0
- package/dist/parser/transform-data-with-schema.d.ts +35 -0
- package/dist/parser/transform-data-with-schema.d.ts.map +1 -0
- package/dist/parser/transform-data-with-schema.js +140 -0
- package/dist/parser/transform-data-with-schema.js.map +1 -0
- package/dist/parser/types.d.ts +6 -3
- package/dist/parser/types.d.ts.map +1 -1
- package/dist/parser/walk-data-with-schema.d.ts +46 -0
- package/dist/parser/walk-data-with-schema.d.ts.map +1 -0
- package/dist/parser/walk-data-with-schema.js +140 -0
- package/dist/parser/walk-data-with-schema.js.map +1 -0
- package/dist/parser/walk-schema-structure.d.ts +60 -0
- package/dist/parser/walk-schema-structure.d.ts.map +1 -0
- package/dist/parser/walk-schema-structure.js +163 -0
- package/dist/parser/walk-schema-structure.js.map +1 -0
- package/dist/plugins/imports/loader.d.ts +1 -1
- package/dist/plugins/imports/loader.d.ts.map +1 -1
- package/dist/plugins/imports/loader.js +2 -2
- package/dist/plugins/imports/loader.js.map +1 -1
- package/dist/plugins/imports/types.d.ts +1 -1
- package/dist/plugins/imports/types.d.ts.map +1 -1
- package/dist/plugins/metadata/types.d.ts +1 -1
- package/dist/plugins/metadata/types.js +1 -1
- package/dist/plugins/plugins.test-utils.d.ts +15 -0
- package/dist/plugins/plugins.test-utils.d.ts.map +1 -1
- package/dist/plugins/plugins.test-utils.js +24 -0
- package/dist/plugins/plugins.test-utils.js.map +1 -1
- package/dist/plugins/spec/config-spec.d.ts +1 -0
- package/dist/plugins/spec/config-spec.d.ts.map +1 -1
- package/dist/plugins/spec/config-spec.js +1 -0
- package/dist/plugins/spec/config-spec.js.map +1 -1
- package/dist/plugins/store/store.d.ts +6 -1
- package/dist/plugins/store/store.d.ts.map +1 -1
- package/dist/plugins/store/store.js +9 -1
- package/dist/plugins/store/store.js.map +1 -1
- package/dist/references/definition-ref-registry.d.ts +105 -0
- package/dist/references/definition-ref-registry.d.ts.map +1 -0
- package/dist/references/definition-ref-registry.js +40 -0
- package/dist/references/definition-ref-registry.js.map +1 -0
- package/dist/references/deserialize-schema.d.ts +4 -6
- package/dist/references/deserialize-schema.d.ts.map +1 -1
- package/dist/references/deserialize-schema.js +4 -5
- package/dist/references/deserialize-schema.js.map +1 -1
- package/dist/references/expression-types.d.ts +46 -14
- package/dist/references/expression-types.d.ts.map +1 -1
- package/dist/references/expression-types.js +17 -0
- package/dist/references/expression-types.js.map +1 -1
- package/dist/references/extend-parser-context-with-refs.d.ts +32 -2
- package/dist/references/extend-parser-context-with-refs.d.ts.map +1 -1
- package/dist/references/extend-parser-context-with-refs.js +123 -163
- package/dist/references/extend-parser-context-with-refs.js.map +1 -1
- package/dist/references/extract-definition-refs.d.ts +9 -8
- package/dist/references/extract-definition-refs.d.ts.map +1 -1
- package/dist/references/extract-definition-refs.js +110 -26
- package/dist/references/extract-definition-refs.js.map +1 -1
- package/dist/references/fix-ref-deletions.d.ts +6 -6
- package/dist/references/fix-ref-deletions.d.ts.map +1 -1
- package/dist/references/fix-ref-deletions.js +2 -2
- package/dist/references/fix-ref-deletions.js.map +1 -1
- package/dist/references/index.d.ts +3 -0
- package/dist/references/index.d.ts.map +1 -1
- package/dist/references/index.js +3 -0
- package/dist/references/index.js.map +1 -1
- package/dist/references/parse-schema-with-references.d.ts +8 -6
- package/dist/references/parse-schema-with-references.d.ts.map +1 -1
- package/dist/references/parse-schema-with-references.js +10 -12
- package/dist/references/parse-schema-with-references.js.map +1 -1
- package/dist/references/ref-schema-visitor.d.ts +33 -0
- package/dist/references/ref-schema-visitor.d.ts.map +1 -0
- package/dist/references/ref-schema-visitor.js +61 -0
- package/dist/references/ref-schema-visitor.js.map +1 -0
- package/dist/references/resolve-slots.d.ts +1 -1
- package/dist/references/resolve-slots.d.ts.map +1 -1
- package/dist/references/serialize-schema.d.ts +9 -2
- package/dist/references/serialize-schema.d.ts.map +1 -1
- package/dist/references/serialize-schema.js +20 -4
- package/dist/references/serialize-schema.js.map +1 -1
- package/dist/schema/apps/web/admin/admin.d.ts +22 -37
- package/dist/schema/apps/web/admin/admin.d.ts.map +1 -1
- package/dist/schema/apps/web/admin/sections/crud-actions/admin-crud-action.d.ts +6 -15
- package/dist/schema/apps/web/admin/sections/crud-actions/admin-crud-action.d.ts.map +1 -1
- package/dist/schema/apps/web/admin/sections/crud-actions/admin-crud-action.js +3 -8
- package/dist/schema/apps/web/admin/sections/crud-actions/admin-crud-action.js.map +1 -1
- package/dist/schema/apps/web/admin/sections/crud-columns/admin-crud-column.d.ts +6 -15
- package/dist/schema/apps/web/admin/sections/crud-columns/admin-crud-column.d.ts.map +1 -1
- package/dist/schema/apps/web/admin/sections/crud-columns/admin-crud-column.js +3 -8
- package/dist/schema/apps/web/admin/sections/crud-columns/admin-crud-column.js.map +1 -1
- package/dist/schema/apps/web/admin/sections/crud-form/admin-crud-input.d.ts +9 -15
- package/dist/schema/apps/web/admin/sections/crud-form/admin-crud-input.d.ts.map +1 -1
- package/dist/schema/apps/web/admin/sections/crud-form/admin-crud-input.js +3 -8
- package/dist/schema/apps/web/admin/sections/crud-form/admin-crud-input.js.map +1 -1
- package/dist/schema/apps/web/admin/sections/crud.d.ts +6 -6
- package/dist/schema/apps/web/web-app.d.ts +32 -47
- package/dist/schema/apps/web/web-app.d.ts.map +1 -1
- package/dist/schema/creator/definition-default-registry.d.ts +22 -0
- package/dist/schema/creator/definition-default-registry.d.ts.map +1 -0
- package/dist/schema/creator/definition-default-registry.js +18 -0
- package/dist/schema/creator/definition-default-registry.js.map +1 -0
- package/dist/schema/creator/definition-fix-registry.d.ts +45 -0
- package/dist/schema/creator/definition-fix-registry.d.ts.map +1 -0
- package/dist/schema/creator/definition-fix-registry.js +41 -0
- package/dist/schema/creator/definition-fix-registry.js.map +1 -0
- package/dist/schema/creator/definition-issue-checker-spec.d.ts +37 -0
- package/dist/schema/creator/definition-issue-checker-spec.d.ts.map +1 -0
- package/dist/schema/creator/definition-issue-checker-spec.js +28 -0
- package/dist/schema/creator/definition-issue-checker-spec.js.map +1 -0
- package/dist/schema/creator/definition-issue-checkers.d.ts +16 -0
- package/dist/schema/creator/definition-issue-checkers.d.ts.map +1 -0
- package/dist/schema/creator/definition-issue-checkers.js +35 -0
- package/dist/schema/creator/definition-issue-checkers.js.map +1 -0
- package/dist/schema/creator/definition-issue-registry.d.ts +54 -0
- package/dist/schema/creator/definition-issue-registry.d.ts.map +1 -0
- package/dist/schema/creator/definition-issue-registry.js +47 -0
- package/dist/schema/creator/definition-issue-registry.js.map +1 -0
- package/dist/schema/creator/definition-issue-types.d.ts +53 -0
- package/dist/schema/creator/definition-issue-types.d.ts.map +1 -0
- package/dist/schema/creator/definition-issue-types.js +2 -0
- package/dist/schema/creator/definition-issue-types.js.map +1 -0
- package/dist/schema/creator/extend-parser-context-with-defaults.d.ts +20 -4
- package/dist/schema/creator/extend-parser-context-with-defaults.d.ts.map +1 -1
- package/dist/schema/creator/extend-parser-context-with-defaults.js +24 -42
- package/dist/schema/creator/extend-parser-context-with-defaults.js.map +1 -1
- package/dist/schema/creator/index.d.ts +6 -0
- package/dist/schema/creator/index.d.ts.map +1 -1
- package/dist/schema/creator/index.js +5 -0
- package/dist/schema/creator/index.js.map +1 -1
- package/dist/schema/creator/schema-creator.d.ts.map +1 -1
- package/dist/schema/creator/schema-creator.js +18 -4
- package/dist/schema/creator/schema-creator.js.map +1 -1
- package/dist/schema/creator/types.d.ts +3 -30
- package/dist/schema/creator/types.d.ts.map +1 -1
- package/dist/schema/models/authorizer/authorizer-expression-acorn-parser.d.ts.map +1 -1
- package/dist/schema/models/authorizer/authorizer-expression-acorn-parser.js +116 -25
- package/dist/schema/models/authorizer/authorizer-expression-acorn-parser.js.map +1 -1
- package/dist/schema/models/authorizer/authorizer-expression-ast.d.ts +82 -1
- package/dist/schema/models/authorizer/authorizer-expression-ast.d.ts.map +1 -1
- package/dist/schema/models/authorizer/authorizer-expression-ast.js.map +1 -1
- package/dist/schema/models/authorizer/authorizer-expression-parser.d.ts +8 -9
- package/dist/schema/models/authorizer/authorizer-expression-parser.d.ts.map +1 -1
- package/dist/schema/models/authorizer/authorizer-expression-parser.js +28 -35
- package/dist/schema/models/authorizer/authorizer-expression-parser.js.map +1 -1
- package/dist/schema/models/authorizer/authorizer-expression-validator.d.ts +42 -4
- package/dist/schema/models/authorizer/authorizer-expression-validator.d.ts.map +1 -1
- package/dist/schema/models/authorizer/authorizer-expression-validator.js +119 -18
- package/dist/schema/models/authorizer/authorizer-expression-validator.js.map +1 -1
- package/dist/schema/models/graphql.d.ts +42 -111
- package/dist/schema/models/graphql.d.ts.map +1 -1
- package/dist/schema/models/graphql.js +59 -19
- package/dist/schema/models/graphql.js.map +1 -1
- package/dist/schema/models/models.d.ts +1134 -343
- package/dist/schema/models/models.d.ts.map +1 -1
- package/dist/schema/models/models.js +258 -86
- package/dist/schema/models/models.js.map +1 -1
- package/dist/schema/plugins/definition.d.ts +2 -30
- package/dist/schema/plugins/definition.d.ts.map +1 -1
- package/dist/schema/plugins/definition.js +26 -15
- package/dist/schema/plugins/definition.js.map +1 -1
- package/dist/schema/project-definition.d.ts +532 -186
- package/dist/schema/project-definition.d.ts.map +1 -1
- package/dist/schema/project-definition.js +15 -3
- package/dist/schema/project-definition.js.map +1 -1
- package/dist/schema/settings/general.d.ts +1 -1
- package/dist/schema/settings/general.d.ts.map +1 -1
- package/dist/schema/settings/general.js +4 -1
- package/dist/schema/settings/general.js.map +1 -1
- package/dist/schema/settings/settings.d.ts +3 -3
- package/dist/schema/settings/theme.d.ts +3 -3
- package/dist/testing/definition-helpers.test-helper.d.ts +12 -0
- package/dist/testing/definition-helpers.test-helper.d.ts.map +1 -0
- package/dist/testing/definition-helpers.test-helper.js +77 -0
- package/dist/testing/definition-helpers.test-helper.js.map +1 -0
- package/dist/testing/expression-stub-parser.test-helper.d.ts +59 -0
- package/dist/testing/expression-stub-parser.test-helper.d.ts.map +1 -0
- package/dist/testing/expression-stub-parser.test-helper.js +79 -0
- package/dist/testing/expression-stub-parser.test-helper.js.map +1 -0
- package/dist/testing/expression-warning-parser.test-helper.d.ts +39 -0
- package/dist/testing/expression-warning-parser.test-helper.d.ts.map +1 -0
- package/dist/testing/expression-warning-parser.test-helper.js +62 -0
- package/dist/testing/expression-warning-parser.test-helper.js.map +1 -0
- package/dist/testing/index.d.ts +5 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +5 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/testing/parser-context.test-helper.d.ts +8 -0
- package/dist/testing/parser-context.test-helper.d.ts.map +1 -0
- package/dist/testing/parser-context.test-helper.js +16 -0
- package/dist/testing/parser-context.test-helper.js.map +1 -0
- package/dist/{definition/project-definition-container.test-utils.d.ts → testing/project-definition-container.test-helper.d.ts} +4 -2
- package/dist/testing/project-definition-container.test-helper.d.ts.map +1 -0
- package/dist/{definition/project-definition-container.test-utils.js → testing/project-definition-container.test-helper.js} +11 -5
- package/dist/testing/project-definition-container.test-helper.js.map +1 -0
- package/dist/tools/assign-entity-ids.d.ts +17 -0
- package/dist/tools/assign-entity-ids.d.ts.map +1 -0
- package/dist/tools/assign-entity-ids.js +34 -0
- package/dist/tools/assign-entity-ids.js.map +1 -0
- package/dist/tools/entity-service/entity-navigation.d.ts +13 -0
- package/dist/tools/entity-service/entity-navigation.d.ts.map +1 -0
- package/dist/tools/entity-service/entity-navigation.js +84 -0
- package/dist/tools/entity-service/entity-navigation.js.map +1 -0
- package/dist/tools/entity-service/entity-read.d.ts +38 -0
- package/dist/tools/entity-service/entity-read.d.ts.map +1 -0
- package/dist/tools/entity-service/entity-read.js +56 -0
- package/dist/tools/entity-service/entity-read.js.map +1 -0
- package/dist/tools/entity-service/entity-type-map.d.ts +18 -0
- package/dist/tools/entity-service/entity-type-map.d.ts.map +1 -0
- package/dist/tools/entity-service/entity-type-map.js +75 -0
- package/dist/tools/entity-service/entity-type-map.js.map +1 -0
- package/dist/tools/entity-service/entity-write.d.ts +39 -0
- package/dist/tools/entity-service/entity-write.d.ts.map +1 -0
- package/dist/tools/entity-service/entity-write.js +99 -0
- package/dist/tools/entity-service/entity-write.js.map +1 -0
- package/dist/tools/entity-service/index.d.ts +5 -0
- package/dist/tools/entity-service/index.d.ts.map +1 -0
- package/dist/tools/entity-service/index.js +4 -0
- package/dist/tools/entity-service/index.js.map +1 -0
- package/dist/tools/entity-service/types.d.ts +41 -0
- package/dist/tools/entity-service/types.d.ts.map +1 -0
- package/dist/tools/entity-service/types.js +2 -0
- package/dist/tools/entity-service/types.js.map +1 -0
- package/dist/tools/index.d.ts +2 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +2 -1
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/merge-schema/diff-definition.d.ts +74 -0
- package/dist/tools/merge-schema/diff-definition.d.ts.map +1 -0
- package/dist/tools/merge-schema/diff-definition.js +163 -0
- package/dist/tools/merge-schema/diff-definition.js.map +1 -0
- package/dist/tools/merge-schema/entity-utils.d.ts +18 -0
- package/dist/tools/merge-schema/entity-utils.d.ts.map +1 -0
- package/dist/tools/merge-schema/entity-utils.js +42 -0
- package/dist/tools/merge-schema/entity-utils.js.map +1 -0
- package/dist/tools/merge-schema/index.d.ts +10 -0
- package/dist/tools/merge-schema/index.d.ts.map +1 -0
- package/dist/tools/merge-schema/index.js +7 -0
- package/dist/tools/merge-schema/index.js.map +1 -0
- package/dist/tools/merge-schema/merge-data-with-schema.d.ts +21 -0
- package/dist/tools/merge-schema/merge-data-with-schema.d.ts.map +1 -0
- package/dist/tools/merge-schema/merge-data-with-schema.js +168 -0
- package/dist/tools/merge-schema/merge-data-with-schema.js.map +1 -0
- package/dist/tools/merge-schema/merge-definition.d.ts +42 -0
- package/dist/tools/merge-schema/merge-definition.d.ts.map +1 -0
- package/dist/tools/merge-schema/merge-definition.js +53 -0
- package/dist/tools/merge-schema/merge-definition.js.map +1 -0
- package/dist/tools/merge-schema/merge-rule-registry.d.ts +47 -0
- package/dist/tools/merge-schema/merge-rule-registry.d.ts.map +1 -0
- package/dist/tools/merge-schema/merge-rule-registry.js +53 -0
- package/dist/tools/merge-schema/merge-rule-registry.js.map +1 -0
- package/dist/tools/merge-schema/walk-schema.d.ts +26 -0
- package/dist/tools/merge-schema/walk-schema.d.ts.map +1 -0
- package/dist/tools/merge-schema/walk-schema.js +94 -0
- package/dist/tools/merge-schema/walk-schema.js.map +1 -0
- package/dist/utils/definition-diff/definition-diff.js.map +1 -1
- package/dist/web/components/definition-diff-alert.d.ts +9 -0
- package/dist/web/components/definition-diff-alert.d.ts.map +1 -0
- package/dist/web/components/definition-diff-alert.js +17 -0
- package/dist/web/components/definition-diff-alert.js.map +1 -0
- package/dist/web/components/index.d.ts +1 -1
- package/dist/web/components/index.d.ts.map +1 -1
- package/dist/web/components/index.js +1 -1
- package/dist/web/components/index.js.map +1 -1
- package/dist/web/hooks/use-project-definition.d.ts +10 -2
- package/dist/web/hooks/use-project-definition.d.ts.map +1 -1
- package/dist/web/hooks/use-project-definition.js.map +1 -1
- package/dist/web/specs/entity-type-url-web-spec.d.ts +68 -0
- package/dist/web/specs/entity-type-url-web-spec.d.ts.map +1 -0
- package/dist/web/specs/entity-type-url-web-spec.js +27 -0
- package/dist/web/specs/entity-type-url-web-spec.js.map +1 -0
- package/dist/web/specs/index.d.ts +1 -0
- package/dist/web/specs/index.d.ts.map +1 -1
- package/dist/web/specs/index.js +1 -0
- package/dist/web/specs/index.js.map +1 -1
- package/package.json +12 -11
- package/dist/definition/project-definition-container.test-utils.d.ts.map +0 -1
- package/dist/definition/project-definition-container.test-utils.js.map +0 -1
- package/dist/references/collect-refs.d.ts +0 -24
- package/dist/references/collect-refs.d.ts.map +0 -1
- package/dist/references/collect-refs.js +0 -86
- package/dist/references/collect-refs.js.map +0 -1
- package/dist/references/markers.d.ts +0 -59
- package/dist/references/markers.d.ts.map +0 -1
- package/dist/references/markers.js +0 -29
- package/dist/references/markers.js.map +0 -1
- package/dist/references/strip-ref-markers.d.ts +0 -7
- package/dist/references/strip-ref-markers.d.ts.map +0 -1
- package/dist/references/strip-ref-markers.js +0 -25
- package/dist/references/strip-ref-markers.js.map +0 -1
- package/dist/schema/models/mocks.d.ts +0 -6
- package/dist/schema/models/mocks.d.ts.map +0 -1
- package/dist/schema/models/mocks.js +0 -55
- package/dist/schema/models/mocks.js.map +0 -1
- package/dist/tools/model-merger/index.d.ts +0 -2
- package/dist/tools/model-merger/index.d.ts.map +0 -1
- package/dist/tools/model-merger/index.js +0 -2
- package/dist/tools/model-merger/index.js.map +0 -1
- package/dist/tools/model-merger/model-merger.d.ts +0 -569
- package/dist/tools/model-merger/model-merger.d.ts.map +0 -1
- package/dist/tools/model-merger/model-merger.js +0 -319
- package/dist/tools/model-merger/model-merger.js.map +0 -1
- package/dist/web/components/model-merger-result-alert.d.ts +0 -8
- package/dist/web/components/model-merger-result-alert.d.ts.map +0 -1
- package/dist/web/components/model-merger-result-alert.js +0 -20
- package/dist/web/components/model-merger-result-alert.js.map +0 -1
|
@@ -1,83 +1,341 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { def } from '#src/schema/creator/index.js';
|
|
3
|
-
export declare const createModelScalarFieldSchema: import("#src/schema/creator/index.js").DefinitionSchemaCreatorWithSlots<z.
|
|
3
|
+
export declare const createModelScalarFieldSchema: import("#src/schema/creator/index.js").DefinitionSchemaCreatorWithSlots<z.ZodType<{
|
|
4
|
+
type: "string";
|
|
5
|
+
options: {
|
|
6
|
+
default?: string | undefined;
|
|
7
|
+
};
|
|
4
8
|
id: string;
|
|
5
9
|
name: string;
|
|
6
|
-
type: "string" | "boolean" | "int" | "date" | "enum" | "uuid" | "dateTime" | "float" | "decimal" | "json";
|
|
7
10
|
isOptional: boolean;
|
|
11
|
+
} | {
|
|
12
|
+
type: "uuid";
|
|
8
13
|
options: {
|
|
9
|
-
|
|
10
|
-
default: string;
|
|
14
|
+
default?: string | undefined;
|
|
11
15
|
genUuid?: boolean | undefined;
|
|
12
|
-
updatedAt?: boolean | undefined;
|
|
13
|
-
defaultToNow?: boolean | undefined;
|
|
14
|
-
enumRef?: string | undefined;
|
|
15
16
|
};
|
|
16
|
-
}, {
|
|
17
17
|
id: string;
|
|
18
18
|
name: string;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
isOptional: boolean;
|
|
20
|
+
} | {
|
|
21
|
+
type: "int";
|
|
22
|
+
options: {
|
|
22
23
|
default?: string | undefined;
|
|
23
|
-
|
|
24
|
+
};
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
isOptional: boolean;
|
|
28
|
+
} | {
|
|
29
|
+
type: "boolean";
|
|
30
|
+
options: {
|
|
31
|
+
default?: "" | "true" | "false" | undefined;
|
|
32
|
+
};
|
|
33
|
+
id: string;
|
|
34
|
+
name: string;
|
|
35
|
+
isOptional: boolean;
|
|
36
|
+
} | {
|
|
37
|
+
type: "dateTime";
|
|
38
|
+
options: {
|
|
39
|
+
defaultToNow?: boolean | undefined;
|
|
24
40
|
updatedAt?: boolean | undefined;
|
|
41
|
+
};
|
|
42
|
+
id: string;
|
|
43
|
+
name: string;
|
|
44
|
+
isOptional: boolean;
|
|
45
|
+
} | {
|
|
46
|
+
type: "float";
|
|
47
|
+
options: {
|
|
48
|
+
default?: string | undefined;
|
|
49
|
+
};
|
|
50
|
+
id: string;
|
|
51
|
+
name: string;
|
|
52
|
+
isOptional: boolean;
|
|
53
|
+
} | {
|
|
54
|
+
type: "decimal";
|
|
55
|
+
options: {
|
|
56
|
+
default?: string | undefined;
|
|
57
|
+
};
|
|
58
|
+
id: string;
|
|
59
|
+
name: string;
|
|
60
|
+
isOptional: boolean;
|
|
61
|
+
} | {
|
|
62
|
+
type: "json";
|
|
63
|
+
options: {
|
|
64
|
+
default?: string | undefined;
|
|
65
|
+
};
|
|
66
|
+
id: string;
|
|
67
|
+
name: string;
|
|
68
|
+
isOptional: boolean;
|
|
69
|
+
} | {
|
|
70
|
+
type: "date";
|
|
71
|
+
options: {
|
|
72
|
+
default?: string | undefined;
|
|
25
73
|
defaultToNow?: boolean | undefined;
|
|
26
|
-
|
|
27
|
-
defaultEnumValueRef?: string | undefined;
|
|
28
|
-
} | undefined;
|
|
29
|
-
}, z.core.$ZodTypeInternals<{
|
|
74
|
+
};
|
|
30
75
|
id: string;
|
|
31
76
|
name: string;
|
|
32
|
-
type: "string" | "boolean" | "int" | "date" | "enum" | "uuid" | "dateTime" | "float" | "decimal" | "json";
|
|
33
77
|
isOptional: boolean;
|
|
78
|
+
} | {
|
|
79
|
+
type: "enum";
|
|
34
80
|
options: {
|
|
81
|
+
enumRef: string;
|
|
35
82
|
defaultEnumValueRef?: string | undefined;
|
|
36
|
-
default: string;
|
|
37
|
-
genUuid?: boolean | undefined;
|
|
38
|
-
updatedAt?: boolean | undefined;
|
|
39
|
-
defaultToNow?: boolean | undefined;
|
|
40
|
-
enumRef?: string | undefined;
|
|
41
83
|
};
|
|
84
|
+
id: string;
|
|
85
|
+
name: string;
|
|
86
|
+
isOptional: boolean;
|
|
42
87
|
}, {
|
|
88
|
+
type: "string";
|
|
43
89
|
id: string;
|
|
44
90
|
name: string;
|
|
45
|
-
|
|
91
|
+
options?: {
|
|
92
|
+
default?: string | undefined;
|
|
93
|
+
} | undefined;
|
|
46
94
|
isOptional?: boolean | undefined;
|
|
95
|
+
} | {
|
|
96
|
+
type: "uuid";
|
|
97
|
+
id: string;
|
|
98
|
+
name: string;
|
|
47
99
|
options?: {
|
|
48
100
|
default?: string | undefined;
|
|
49
101
|
genUuid?: boolean | undefined;
|
|
102
|
+
} | undefined;
|
|
103
|
+
isOptional?: boolean | undefined;
|
|
104
|
+
} | {
|
|
105
|
+
type: "int";
|
|
106
|
+
id: string;
|
|
107
|
+
name: string;
|
|
108
|
+
options?: {
|
|
109
|
+
default?: string | undefined;
|
|
110
|
+
} | undefined;
|
|
111
|
+
isOptional?: boolean | undefined;
|
|
112
|
+
} | {
|
|
113
|
+
type: "boolean";
|
|
114
|
+
id: string;
|
|
115
|
+
name: string;
|
|
116
|
+
options?: {
|
|
117
|
+
default?: "" | "true" | "false" | undefined;
|
|
118
|
+
} | undefined;
|
|
119
|
+
isOptional?: boolean | undefined;
|
|
120
|
+
} | {
|
|
121
|
+
type: "dateTime";
|
|
122
|
+
id: string;
|
|
123
|
+
name: string;
|
|
124
|
+
options?: {
|
|
125
|
+
defaultToNow?: boolean | undefined;
|
|
50
126
|
updatedAt?: boolean | undefined;
|
|
127
|
+
} | undefined;
|
|
128
|
+
isOptional?: boolean | undefined;
|
|
129
|
+
} | {
|
|
130
|
+
type: "float";
|
|
131
|
+
id: string;
|
|
132
|
+
name: string;
|
|
133
|
+
options?: {
|
|
134
|
+
default?: string | undefined;
|
|
135
|
+
} | undefined;
|
|
136
|
+
isOptional?: boolean | undefined;
|
|
137
|
+
} | {
|
|
138
|
+
type: "decimal";
|
|
139
|
+
id: string;
|
|
140
|
+
name: string;
|
|
141
|
+
options?: {
|
|
142
|
+
default?: string | undefined;
|
|
143
|
+
} | undefined;
|
|
144
|
+
isOptional?: boolean | undefined;
|
|
145
|
+
} | {
|
|
146
|
+
type: "json";
|
|
147
|
+
id: string;
|
|
148
|
+
name: string;
|
|
149
|
+
options?: {
|
|
150
|
+
default?: string | undefined;
|
|
151
|
+
} | undefined;
|
|
152
|
+
isOptional?: boolean | undefined;
|
|
153
|
+
} | {
|
|
154
|
+
type: "date";
|
|
155
|
+
id: string;
|
|
156
|
+
name: string;
|
|
157
|
+
options?: {
|
|
158
|
+
default?: string | undefined;
|
|
51
159
|
defaultToNow?: boolean | undefined;
|
|
52
|
-
enumRef?: string | undefined;
|
|
53
|
-
defaultEnumValueRef?: string | undefined;
|
|
54
160
|
} | undefined;
|
|
55
|
-
|
|
161
|
+
isOptional?: boolean | undefined;
|
|
162
|
+
} | {
|
|
163
|
+
type: "enum";
|
|
164
|
+
options: {
|
|
165
|
+
enumRef: string;
|
|
166
|
+
defaultEnumValueRef?: string | undefined;
|
|
167
|
+
};
|
|
168
|
+
id: string;
|
|
169
|
+
name: string;
|
|
170
|
+
isOptional?: boolean | undefined;
|
|
171
|
+
}, z.core.$ZodTypeInternals<{
|
|
172
|
+
type: "string";
|
|
173
|
+
options: {
|
|
174
|
+
default?: string | undefined;
|
|
175
|
+
};
|
|
56
176
|
id: string;
|
|
57
177
|
name: string;
|
|
58
|
-
type: "string" | "boolean" | "int" | "date" | "enum" | "uuid" | "dateTime" | "float" | "decimal" | "json";
|
|
59
178
|
isOptional: boolean;
|
|
179
|
+
} | {
|
|
180
|
+
type: "uuid";
|
|
60
181
|
options: {
|
|
61
|
-
|
|
62
|
-
default: string;
|
|
182
|
+
default?: string | undefined;
|
|
63
183
|
genUuid?: boolean | undefined;
|
|
184
|
+
};
|
|
185
|
+
id: string;
|
|
186
|
+
name: string;
|
|
187
|
+
isOptional: boolean;
|
|
188
|
+
} | {
|
|
189
|
+
type: "int";
|
|
190
|
+
options: {
|
|
191
|
+
default?: string | undefined;
|
|
192
|
+
};
|
|
193
|
+
id: string;
|
|
194
|
+
name: string;
|
|
195
|
+
isOptional: boolean;
|
|
196
|
+
} | {
|
|
197
|
+
type: "boolean";
|
|
198
|
+
options: {
|
|
199
|
+
default?: "" | "true" | "false" | undefined;
|
|
200
|
+
};
|
|
201
|
+
id: string;
|
|
202
|
+
name: string;
|
|
203
|
+
isOptional: boolean;
|
|
204
|
+
} | {
|
|
205
|
+
type: "dateTime";
|
|
206
|
+
options: {
|
|
207
|
+
defaultToNow?: boolean | undefined;
|
|
64
208
|
updatedAt?: boolean | undefined;
|
|
209
|
+
};
|
|
210
|
+
id: string;
|
|
211
|
+
name: string;
|
|
212
|
+
isOptional: boolean;
|
|
213
|
+
} | {
|
|
214
|
+
type: "float";
|
|
215
|
+
options: {
|
|
216
|
+
default?: string | undefined;
|
|
217
|
+
};
|
|
218
|
+
id: string;
|
|
219
|
+
name: string;
|
|
220
|
+
isOptional: boolean;
|
|
221
|
+
} | {
|
|
222
|
+
type: "decimal";
|
|
223
|
+
options: {
|
|
224
|
+
default?: string | undefined;
|
|
225
|
+
};
|
|
226
|
+
id: string;
|
|
227
|
+
name: string;
|
|
228
|
+
isOptional: boolean;
|
|
229
|
+
} | {
|
|
230
|
+
type: "json";
|
|
231
|
+
options: {
|
|
232
|
+
default?: string | undefined;
|
|
233
|
+
};
|
|
234
|
+
id: string;
|
|
235
|
+
name: string;
|
|
236
|
+
isOptional: boolean;
|
|
237
|
+
} | {
|
|
238
|
+
type: "date";
|
|
239
|
+
options: {
|
|
240
|
+
default?: string | undefined;
|
|
65
241
|
defaultToNow?: boolean | undefined;
|
|
66
|
-
enumRef?: string | undefined;
|
|
67
242
|
};
|
|
68
|
-
}, {
|
|
69
243
|
id: string;
|
|
70
244
|
name: string;
|
|
71
|
-
type: "string" | "boolean" | "int" | "date" | "enum" | "uuid" | "dateTime" | "float" | "decimal" | "json";
|
|
72
245
|
isOptional: boolean;
|
|
246
|
+
} | {
|
|
247
|
+
type: "enum";
|
|
73
248
|
options: {
|
|
249
|
+
enumRef: string;
|
|
74
250
|
defaultEnumValueRef?: string | undefined;
|
|
75
|
-
|
|
251
|
+
};
|
|
252
|
+
id: string;
|
|
253
|
+
name: string;
|
|
254
|
+
isOptional: boolean;
|
|
255
|
+
}, {
|
|
256
|
+
type: "string";
|
|
257
|
+
id: string;
|
|
258
|
+
name: string;
|
|
259
|
+
options?: {
|
|
260
|
+
default?: string | undefined;
|
|
261
|
+
} | undefined;
|
|
262
|
+
isOptional?: boolean | undefined;
|
|
263
|
+
} | {
|
|
264
|
+
type: "uuid";
|
|
265
|
+
id: string;
|
|
266
|
+
name: string;
|
|
267
|
+
options?: {
|
|
268
|
+
default?: string | undefined;
|
|
76
269
|
genUuid?: boolean | undefined;
|
|
270
|
+
} | undefined;
|
|
271
|
+
isOptional?: boolean | undefined;
|
|
272
|
+
} | {
|
|
273
|
+
type: "int";
|
|
274
|
+
id: string;
|
|
275
|
+
name: string;
|
|
276
|
+
options?: {
|
|
277
|
+
default?: string | undefined;
|
|
278
|
+
} | undefined;
|
|
279
|
+
isOptional?: boolean | undefined;
|
|
280
|
+
} | {
|
|
281
|
+
type: "boolean";
|
|
282
|
+
id: string;
|
|
283
|
+
name: string;
|
|
284
|
+
options?: {
|
|
285
|
+
default?: "" | "true" | "false" | undefined;
|
|
286
|
+
} | undefined;
|
|
287
|
+
isOptional?: boolean | undefined;
|
|
288
|
+
} | {
|
|
289
|
+
type: "dateTime";
|
|
290
|
+
id: string;
|
|
291
|
+
name: string;
|
|
292
|
+
options?: {
|
|
293
|
+
defaultToNow?: boolean | undefined;
|
|
77
294
|
updatedAt?: boolean | undefined;
|
|
295
|
+
} | undefined;
|
|
296
|
+
isOptional?: boolean | undefined;
|
|
297
|
+
} | {
|
|
298
|
+
type: "float";
|
|
299
|
+
id: string;
|
|
300
|
+
name: string;
|
|
301
|
+
options?: {
|
|
302
|
+
default?: string | undefined;
|
|
303
|
+
} | undefined;
|
|
304
|
+
isOptional?: boolean | undefined;
|
|
305
|
+
} | {
|
|
306
|
+
type: "decimal";
|
|
307
|
+
id: string;
|
|
308
|
+
name: string;
|
|
309
|
+
options?: {
|
|
310
|
+
default?: string | undefined;
|
|
311
|
+
} | undefined;
|
|
312
|
+
isOptional?: boolean | undefined;
|
|
313
|
+
} | {
|
|
314
|
+
type: "json";
|
|
315
|
+
id: string;
|
|
316
|
+
name: string;
|
|
317
|
+
options?: {
|
|
318
|
+
default?: string | undefined;
|
|
319
|
+
} | undefined;
|
|
320
|
+
isOptional?: boolean | undefined;
|
|
321
|
+
} | {
|
|
322
|
+
type: "date";
|
|
323
|
+
id: string;
|
|
324
|
+
name: string;
|
|
325
|
+
options?: {
|
|
326
|
+
default?: string | undefined;
|
|
78
327
|
defaultToNow?: boolean | undefined;
|
|
79
|
-
|
|
328
|
+
} | undefined;
|
|
329
|
+
isOptional?: boolean | undefined;
|
|
330
|
+
} | {
|
|
331
|
+
type: "enum";
|
|
332
|
+
options: {
|
|
333
|
+
enumRef: string;
|
|
334
|
+
defaultEnumValueRef?: string | undefined;
|
|
80
335
|
};
|
|
336
|
+
id: string;
|
|
337
|
+
name: string;
|
|
338
|
+
isOptional?: boolean | undefined;
|
|
81
339
|
}>>, {
|
|
82
340
|
modelSlot: import("#src/references/index.js").DefinitionEntityType<false>;
|
|
83
341
|
}>;
|
|
@@ -163,18 +421,23 @@ export declare const createModelUniqueConstraintSchema: import("#src/schema/crea
|
|
|
163
421
|
export type ModelUniqueConstraintConfig = def.InferOutput<typeof createModelUniqueConstraintSchema>;
|
|
164
422
|
export type ModelUniqueConstraintConfigInput = def.InferInput<typeof createModelUniqueConstraintSchema>;
|
|
165
423
|
export declare const createModelServiceSchema: import("#src/schema/creator/index.js").DefinitionSchemaCreatorWithSlots<z.ZodObject<{
|
|
166
|
-
create: z.
|
|
424
|
+
create: z.ZodPrefault<z.ZodObject<{
|
|
167
425
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
168
426
|
fields: z.ZodOptional<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
|
|
169
427
|
transformerNames: z.ZodOptional<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
|
|
428
|
+
globalRoles: z.ZodPrefault<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
|
|
170
429
|
}, z.core.$strip>>;
|
|
171
|
-
update: z.
|
|
430
|
+
update: z.ZodPrefault<z.ZodObject<{
|
|
172
431
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
173
432
|
fields: z.ZodOptional<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
|
|
174
433
|
transformerNames: z.ZodOptional<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
|
|
434
|
+
globalRoles: z.ZodPrefault<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
|
|
435
|
+
instanceRoles: z.ZodPrefault<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
|
|
175
436
|
}, z.core.$strip>>;
|
|
176
|
-
delete: z.
|
|
437
|
+
delete: z.ZodPrefault<z.ZodObject<{
|
|
177
438
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
439
|
+
globalRoles: z.ZodPrefault<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
|
|
440
|
+
instanceRoles: z.ZodPrefault<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
|
|
178
441
|
}, z.core.$strip>>;
|
|
179
442
|
transformers: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
180
443
|
readonly id: z.ZodString;
|
|
@@ -189,86 +452,344 @@ export declare const createModelBaseSchema: import("#src/schema/creator/index.js
|
|
|
189
452
|
name: z.ZodString;
|
|
190
453
|
featureRef: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
191
454
|
model: z.ZodObject<{
|
|
192
|
-
fields: z.ZodArray<z.
|
|
455
|
+
fields: z.ZodArray<z.ZodType<{
|
|
456
|
+
type: "string";
|
|
457
|
+
options: {
|
|
458
|
+
default?: string | undefined;
|
|
459
|
+
};
|
|
193
460
|
id: string;
|
|
194
461
|
name: string;
|
|
195
|
-
type: "string" | "boolean" | "int" | "date" | "enum" | "uuid" | "dateTime" | "float" | "decimal" | "json";
|
|
196
462
|
isOptional: boolean;
|
|
463
|
+
} | {
|
|
464
|
+
type: "uuid";
|
|
197
465
|
options: {
|
|
198
|
-
|
|
199
|
-
default: string;
|
|
466
|
+
default?: string | undefined;
|
|
200
467
|
genUuid?: boolean | undefined;
|
|
201
|
-
updatedAt?: boolean | undefined;
|
|
202
|
-
defaultToNow?: boolean | undefined;
|
|
203
|
-
enumRef?: string | undefined;
|
|
204
468
|
};
|
|
205
|
-
}, {
|
|
206
469
|
id: string;
|
|
207
470
|
name: string;
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
471
|
+
isOptional: boolean;
|
|
472
|
+
} | {
|
|
473
|
+
type: "int";
|
|
474
|
+
options: {
|
|
211
475
|
default?: string | undefined;
|
|
212
|
-
|
|
213
|
-
updatedAt?: boolean | undefined;
|
|
214
|
-
defaultToNow?: boolean | undefined;
|
|
215
|
-
enumRef?: string | undefined;
|
|
216
|
-
defaultEnumValueRef?: string | undefined;
|
|
217
|
-
} | undefined;
|
|
218
|
-
}, z.core.$ZodTypeInternals<{
|
|
476
|
+
};
|
|
219
477
|
id: string;
|
|
220
478
|
name: string;
|
|
221
|
-
type: "string" | "boolean" | "int" | "date" | "enum" | "uuid" | "dateTime" | "float" | "decimal" | "json";
|
|
222
479
|
isOptional: boolean;
|
|
480
|
+
} | {
|
|
481
|
+
type: "boolean";
|
|
482
|
+
options: {
|
|
483
|
+
default?: "" | "true" | "false" | undefined;
|
|
484
|
+
};
|
|
485
|
+
id: string;
|
|
486
|
+
name: string;
|
|
487
|
+
isOptional: boolean;
|
|
488
|
+
} | {
|
|
489
|
+
type: "dateTime";
|
|
223
490
|
options: {
|
|
224
|
-
defaultEnumValueRef?: string | undefined;
|
|
225
|
-
default: string;
|
|
226
|
-
genUuid?: boolean | undefined;
|
|
227
|
-
updatedAt?: boolean | undefined;
|
|
228
491
|
defaultToNow?: boolean | undefined;
|
|
229
|
-
|
|
492
|
+
updatedAt?: boolean | undefined;
|
|
230
493
|
};
|
|
231
|
-
}, {
|
|
232
494
|
id: string;
|
|
233
495
|
name: string;
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
496
|
+
isOptional: boolean;
|
|
497
|
+
} | {
|
|
498
|
+
type: "float";
|
|
499
|
+
options: {
|
|
500
|
+
default?: string | undefined;
|
|
501
|
+
};
|
|
502
|
+
id: string;
|
|
503
|
+
name: string;
|
|
504
|
+
isOptional: boolean;
|
|
505
|
+
} | {
|
|
506
|
+
type: "decimal";
|
|
507
|
+
options: {
|
|
508
|
+
default?: string | undefined;
|
|
509
|
+
};
|
|
510
|
+
id: string;
|
|
511
|
+
name: string;
|
|
512
|
+
isOptional: boolean;
|
|
513
|
+
} | {
|
|
514
|
+
type: "json";
|
|
515
|
+
options: {
|
|
516
|
+
default?: string | undefined;
|
|
517
|
+
};
|
|
518
|
+
id: string;
|
|
519
|
+
name: string;
|
|
520
|
+
isOptional: boolean;
|
|
521
|
+
} | {
|
|
522
|
+
type: "date";
|
|
523
|
+
options: {
|
|
524
|
+
default?: string | undefined;
|
|
525
|
+
defaultToNow?: boolean | undefined;
|
|
526
|
+
};
|
|
527
|
+
id: string;
|
|
528
|
+
name: string;
|
|
529
|
+
isOptional: boolean;
|
|
530
|
+
} | {
|
|
531
|
+
type: "enum";
|
|
532
|
+
options: {
|
|
533
|
+
enumRef: string;
|
|
534
|
+
defaultEnumValueRef?: string | undefined;
|
|
535
|
+
};
|
|
536
|
+
id: string;
|
|
537
|
+
name: string;
|
|
538
|
+
isOptional: boolean;
|
|
539
|
+
}, {
|
|
540
|
+
type: "string";
|
|
541
|
+
id: string;
|
|
542
|
+
name: string;
|
|
543
|
+
options?: {
|
|
544
|
+
default?: string | undefined;
|
|
545
|
+
} | undefined;
|
|
546
|
+
isOptional?: boolean | undefined;
|
|
547
|
+
} | {
|
|
548
|
+
type: "uuid";
|
|
549
|
+
id: string;
|
|
550
|
+
name: string;
|
|
551
|
+
options?: {
|
|
237
552
|
default?: string | undefined;
|
|
238
553
|
genUuid?: boolean | undefined;
|
|
554
|
+
} | undefined;
|
|
555
|
+
isOptional?: boolean | undefined;
|
|
556
|
+
} | {
|
|
557
|
+
type: "int";
|
|
558
|
+
id: string;
|
|
559
|
+
name: string;
|
|
560
|
+
options?: {
|
|
561
|
+
default?: string | undefined;
|
|
562
|
+
} | undefined;
|
|
563
|
+
isOptional?: boolean | undefined;
|
|
564
|
+
} | {
|
|
565
|
+
type: "boolean";
|
|
566
|
+
id: string;
|
|
567
|
+
name: string;
|
|
568
|
+
options?: {
|
|
569
|
+
default?: "" | "true" | "false" | undefined;
|
|
570
|
+
} | undefined;
|
|
571
|
+
isOptional?: boolean | undefined;
|
|
572
|
+
} | {
|
|
573
|
+
type: "dateTime";
|
|
574
|
+
id: string;
|
|
575
|
+
name: string;
|
|
576
|
+
options?: {
|
|
577
|
+
defaultToNow?: boolean | undefined;
|
|
239
578
|
updatedAt?: boolean | undefined;
|
|
579
|
+
} | undefined;
|
|
580
|
+
isOptional?: boolean | undefined;
|
|
581
|
+
} | {
|
|
582
|
+
type: "float";
|
|
583
|
+
id: string;
|
|
584
|
+
name: string;
|
|
585
|
+
options?: {
|
|
586
|
+
default?: string | undefined;
|
|
587
|
+
} | undefined;
|
|
588
|
+
isOptional?: boolean | undefined;
|
|
589
|
+
} | {
|
|
590
|
+
type: "decimal";
|
|
591
|
+
id: string;
|
|
592
|
+
name: string;
|
|
593
|
+
options?: {
|
|
594
|
+
default?: string | undefined;
|
|
595
|
+
} | undefined;
|
|
596
|
+
isOptional?: boolean | undefined;
|
|
597
|
+
} | {
|
|
598
|
+
type: "json";
|
|
599
|
+
id: string;
|
|
600
|
+
name: string;
|
|
601
|
+
options?: {
|
|
602
|
+
default?: string | undefined;
|
|
603
|
+
} | undefined;
|
|
604
|
+
isOptional?: boolean | undefined;
|
|
605
|
+
} | {
|
|
606
|
+
type: "date";
|
|
607
|
+
id: string;
|
|
608
|
+
name: string;
|
|
609
|
+
options?: {
|
|
610
|
+
default?: string | undefined;
|
|
240
611
|
defaultToNow?: boolean | undefined;
|
|
241
|
-
enumRef?: string | undefined;
|
|
242
|
-
defaultEnumValueRef?: string | undefined;
|
|
243
612
|
} | undefined;
|
|
244
|
-
|
|
613
|
+
isOptional?: boolean | undefined;
|
|
614
|
+
} | {
|
|
615
|
+
type: "enum";
|
|
616
|
+
options: {
|
|
617
|
+
enumRef: string;
|
|
618
|
+
defaultEnumValueRef?: string | undefined;
|
|
619
|
+
};
|
|
620
|
+
id: string;
|
|
621
|
+
name: string;
|
|
622
|
+
isOptional?: boolean | undefined;
|
|
623
|
+
}, z.core.$ZodTypeInternals<{
|
|
624
|
+
type: "string";
|
|
625
|
+
options: {
|
|
626
|
+
default?: string | undefined;
|
|
627
|
+
};
|
|
245
628
|
id: string;
|
|
246
629
|
name: string;
|
|
247
|
-
type: "string" | "boolean" | "int" | "date" | "enum" | "uuid" | "dateTime" | "float" | "decimal" | "json";
|
|
248
630
|
isOptional: boolean;
|
|
631
|
+
} | {
|
|
632
|
+
type: "uuid";
|
|
249
633
|
options: {
|
|
250
|
-
|
|
251
|
-
default: string;
|
|
634
|
+
default?: string | undefined;
|
|
252
635
|
genUuid?: boolean | undefined;
|
|
636
|
+
};
|
|
637
|
+
id: string;
|
|
638
|
+
name: string;
|
|
639
|
+
isOptional: boolean;
|
|
640
|
+
} | {
|
|
641
|
+
type: "int";
|
|
642
|
+
options: {
|
|
643
|
+
default?: string | undefined;
|
|
644
|
+
};
|
|
645
|
+
id: string;
|
|
646
|
+
name: string;
|
|
647
|
+
isOptional: boolean;
|
|
648
|
+
} | {
|
|
649
|
+
type: "boolean";
|
|
650
|
+
options: {
|
|
651
|
+
default?: "" | "true" | "false" | undefined;
|
|
652
|
+
};
|
|
653
|
+
id: string;
|
|
654
|
+
name: string;
|
|
655
|
+
isOptional: boolean;
|
|
656
|
+
} | {
|
|
657
|
+
type: "dateTime";
|
|
658
|
+
options: {
|
|
659
|
+
defaultToNow?: boolean | undefined;
|
|
253
660
|
updatedAt?: boolean | undefined;
|
|
661
|
+
};
|
|
662
|
+
id: string;
|
|
663
|
+
name: string;
|
|
664
|
+
isOptional: boolean;
|
|
665
|
+
} | {
|
|
666
|
+
type: "float";
|
|
667
|
+
options: {
|
|
668
|
+
default?: string | undefined;
|
|
669
|
+
};
|
|
670
|
+
id: string;
|
|
671
|
+
name: string;
|
|
672
|
+
isOptional: boolean;
|
|
673
|
+
} | {
|
|
674
|
+
type: "decimal";
|
|
675
|
+
options: {
|
|
676
|
+
default?: string | undefined;
|
|
677
|
+
};
|
|
678
|
+
id: string;
|
|
679
|
+
name: string;
|
|
680
|
+
isOptional: boolean;
|
|
681
|
+
} | {
|
|
682
|
+
type: "json";
|
|
683
|
+
options: {
|
|
684
|
+
default?: string | undefined;
|
|
685
|
+
};
|
|
686
|
+
id: string;
|
|
687
|
+
name: string;
|
|
688
|
+
isOptional: boolean;
|
|
689
|
+
} | {
|
|
690
|
+
type: "date";
|
|
691
|
+
options: {
|
|
692
|
+
default?: string | undefined;
|
|
254
693
|
defaultToNow?: boolean | undefined;
|
|
255
|
-
enumRef?: string | undefined;
|
|
256
694
|
};
|
|
257
|
-
}, {
|
|
258
695
|
id: string;
|
|
259
696
|
name: string;
|
|
260
|
-
type: "string" | "boolean" | "int" | "date" | "enum" | "uuid" | "dateTime" | "float" | "decimal" | "json";
|
|
261
697
|
isOptional: boolean;
|
|
698
|
+
} | {
|
|
699
|
+
type: "enum";
|
|
262
700
|
options: {
|
|
701
|
+
enumRef: string;
|
|
263
702
|
defaultEnumValueRef?: string | undefined;
|
|
264
|
-
|
|
703
|
+
};
|
|
704
|
+
id: string;
|
|
705
|
+
name: string;
|
|
706
|
+
isOptional: boolean;
|
|
707
|
+
}, {
|
|
708
|
+
type: "string";
|
|
709
|
+
id: string;
|
|
710
|
+
name: string;
|
|
711
|
+
options?: {
|
|
712
|
+
default?: string | undefined;
|
|
713
|
+
} | undefined;
|
|
714
|
+
isOptional?: boolean | undefined;
|
|
715
|
+
} | {
|
|
716
|
+
type: "uuid";
|
|
717
|
+
id: string;
|
|
718
|
+
name: string;
|
|
719
|
+
options?: {
|
|
720
|
+
default?: string | undefined;
|
|
265
721
|
genUuid?: boolean | undefined;
|
|
722
|
+
} | undefined;
|
|
723
|
+
isOptional?: boolean | undefined;
|
|
724
|
+
} | {
|
|
725
|
+
type: "int";
|
|
726
|
+
id: string;
|
|
727
|
+
name: string;
|
|
728
|
+
options?: {
|
|
729
|
+
default?: string | undefined;
|
|
730
|
+
} | undefined;
|
|
731
|
+
isOptional?: boolean | undefined;
|
|
732
|
+
} | {
|
|
733
|
+
type: "boolean";
|
|
734
|
+
id: string;
|
|
735
|
+
name: string;
|
|
736
|
+
options?: {
|
|
737
|
+
default?: "" | "true" | "false" | undefined;
|
|
738
|
+
} | undefined;
|
|
739
|
+
isOptional?: boolean | undefined;
|
|
740
|
+
} | {
|
|
741
|
+
type: "dateTime";
|
|
742
|
+
id: string;
|
|
743
|
+
name: string;
|
|
744
|
+
options?: {
|
|
745
|
+
defaultToNow?: boolean | undefined;
|
|
266
746
|
updatedAt?: boolean | undefined;
|
|
747
|
+
} | undefined;
|
|
748
|
+
isOptional?: boolean | undefined;
|
|
749
|
+
} | {
|
|
750
|
+
type: "float";
|
|
751
|
+
id: string;
|
|
752
|
+
name: string;
|
|
753
|
+
options?: {
|
|
754
|
+
default?: string | undefined;
|
|
755
|
+
} | undefined;
|
|
756
|
+
isOptional?: boolean | undefined;
|
|
757
|
+
} | {
|
|
758
|
+
type: "decimal";
|
|
759
|
+
id: string;
|
|
760
|
+
name: string;
|
|
761
|
+
options?: {
|
|
762
|
+
default?: string | undefined;
|
|
763
|
+
} | undefined;
|
|
764
|
+
isOptional?: boolean | undefined;
|
|
765
|
+
} | {
|
|
766
|
+
type: "json";
|
|
767
|
+
id: string;
|
|
768
|
+
name: string;
|
|
769
|
+
options?: {
|
|
770
|
+
default?: string | undefined;
|
|
771
|
+
} | undefined;
|
|
772
|
+
isOptional?: boolean | undefined;
|
|
773
|
+
} | {
|
|
774
|
+
type: "date";
|
|
775
|
+
id: string;
|
|
776
|
+
name: string;
|
|
777
|
+
options?: {
|
|
778
|
+
default?: string | undefined;
|
|
267
779
|
defaultToNow?: boolean | undefined;
|
|
268
|
-
|
|
780
|
+
} | undefined;
|
|
781
|
+
isOptional?: boolean | undefined;
|
|
782
|
+
} | {
|
|
783
|
+
type: "enum";
|
|
784
|
+
options: {
|
|
785
|
+
enumRef: string;
|
|
786
|
+
defaultEnumValueRef?: string | undefined;
|
|
269
787
|
};
|
|
788
|
+
id: string;
|
|
789
|
+
name: string;
|
|
790
|
+
isOptional?: boolean | undefined;
|
|
270
791
|
}>>>;
|
|
271
|
-
relations: z.
|
|
792
|
+
relations: z.ZodPrefault<z.ZodArray<z.ZodType<{
|
|
272
793
|
id: string;
|
|
273
794
|
foreignId: string;
|
|
274
795
|
name: string;
|
|
@@ -318,7 +839,7 @@ export declare const createModelBaseSchema: import("#src/schema/creator/index.js
|
|
|
318
839
|
onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined;
|
|
319
840
|
}>>>>;
|
|
320
841
|
primaryKeyFieldRefs: z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
321
|
-
uniqueConstraints: z.
|
|
842
|
+
uniqueConstraints: z.ZodPrefault<z.ZodArray<z.ZodType<{
|
|
322
843
|
id: string;
|
|
323
844
|
fields: {
|
|
324
845
|
fieldRef: string;
|
|
@@ -340,175 +861,93 @@ export declare const createModelBaseSchema: import("#src/schema/creator/index.js
|
|
|
340
861
|
}[];
|
|
341
862
|
}>>>>;
|
|
342
863
|
}, z.core.$strip>;
|
|
343
|
-
service: z.
|
|
344
|
-
create: z.
|
|
864
|
+
service: z.ZodPrefault<z.ZodObject<{
|
|
865
|
+
create: z.ZodPrefault<z.ZodObject<{
|
|
345
866
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
346
867
|
fields: z.ZodOptional<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
|
|
347
868
|
transformerNames: z.ZodOptional<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
|
|
869
|
+
globalRoles: z.ZodPrefault<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
|
|
348
870
|
}, z.core.$strip>>;
|
|
349
|
-
update: z.
|
|
871
|
+
update: z.ZodPrefault<z.ZodObject<{
|
|
350
872
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
351
873
|
fields: z.ZodOptional<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
|
|
352
874
|
transformerNames: z.ZodOptional<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
|
|
875
|
+
globalRoles: z.ZodPrefault<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
|
|
876
|
+
instanceRoles: z.ZodPrefault<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
|
|
353
877
|
}, z.core.$strip>>;
|
|
354
|
-
delete: z.
|
|
878
|
+
delete: z.ZodPrefault<z.ZodObject<{
|
|
355
879
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
880
|
+
globalRoles: z.ZodPrefault<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
|
|
881
|
+
instanceRoles: z.ZodPrefault<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
|
|
356
882
|
}, z.core.$strip>>;
|
|
357
883
|
transformers: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
358
884
|
readonly id: z.ZodString;
|
|
359
885
|
readonly type: z.ZodString;
|
|
360
886
|
}, z.core.$loose>], "type">>>;
|
|
361
887
|
}, z.core.$strip>>;
|
|
362
|
-
graphql: z.
|
|
363
|
-
objectType
|
|
364
|
-
enabled
|
|
365
|
-
fields
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
enabled
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
enabled
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
} | undefined;
|
|
409
|
-
} | undefined;
|
|
410
|
-
mutations?: {
|
|
411
|
-
create?: {
|
|
412
|
-
enabled?: boolean | undefined;
|
|
413
|
-
roles?: string[] | undefined;
|
|
414
|
-
} | undefined;
|
|
415
|
-
update?: {
|
|
416
|
-
enabled?: boolean | undefined;
|
|
417
|
-
roles?: string[] | undefined;
|
|
418
|
-
} | undefined;
|
|
419
|
-
delete?: {
|
|
420
|
-
enabled?: boolean | undefined;
|
|
421
|
-
roles?: string[] | undefined;
|
|
422
|
-
} | undefined;
|
|
423
|
-
} | undefined;
|
|
424
|
-
} | undefined, z.core.$ZodTypeInternals<{
|
|
425
|
-
objectType?: {
|
|
426
|
-
enabled?: boolean | undefined;
|
|
427
|
-
fields?: string[] | undefined;
|
|
428
|
-
localRelations?: string[] | undefined;
|
|
429
|
-
foreignRelations?: string[] | undefined;
|
|
430
|
-
} | undefined;
|
|
431
|
-
queries?: {
|
|
432
|
-
get?: {
|
|
433
|
-
enabled?: boolean | undefined;
|
|
434
|
-
roles?: string[] | undefined;
|
|
435
|
-
} | undefined;
|
|
436
|
-
list?: {
|
|
437
|
-
enabled?: boolean | undefined;
|
|
438
|
-
roles?: string[] | undefined;
|
|
439
|
-
} | undefined;
|
|
440
|
-
} | undefined;
|
|
441
|
-
mutations?: {
|
|
442
|
-
create?: {
|
|
443
|
-
enabled?: boolean | undefined;
|
|
444
|
-
roles?: string[] | undefined;
|
|
445
|
-
} | undefined;
|
|
446
|
-
update?: {
|
|
447
|
-
enabled?: boolean | undefined;
|
|
448
|
-
roles?: string[] | undefined;
|
|
449
|
-
} | undefined;
|
|
450
|
-
delete?: {
|
|
451
|
-
enabled?: boolean | undefined;
|
|
452
|
-
roles?: string[] | undefined;
|
|
453
|
-
} | undefined;
|
|
454
|
-
} | undefined;
|
|
455
|
-
} | undefined, {
|
|
456
|
-
objectType?: {
|
|
457
|
-
enabled?: boolean | undefined;
|
|
458
|
-
fields?: string[] | undefined;
|
|
459
|
-
localRelations?: string[] | undefined;
|
|
460
|
-
foreignRelations?: string[] | undefined;
|
|
461
|
-
} | undefined;
|
|
462
|
-
queries?: {
|
|
463
|
-
get?: {
|
|
464
|
-
enabled?: boolean | undefined;
|
|
465
|
-
roles?: string[] | undefined;
|
|
466
|
-
} | undefined;
|
|
467
|
-
list?: {
|
|
468
|
-
enabled?: boolean | undefined;
|
|
469
|
-
roles?: string[] | undefined;
|
|
470
|
-
} | undefined;
|
|
471
|
-
} | undefined;
|
|
472
|
-
mutations?: {
|
|
473
|
-
create?: {
|
|
474
|
-
enabled?: boolean | undefined;
|
|
475
|
-
roles?: string[] | undefined;
|
|
476
|
-
} | undefined;
|
|
477
|
-
update?: {
|
|
478
|
-
enabled?: boolean | undefined;
|
|
479
|
-
roles?: string[] | undefined;
|
|
480
|
-
} | undefined;
|
|
481
|
-
delete?: {
|
|
482
|
-
enabled?: boolean | undefined;
|
|
483
|
-
roles?: string[] | undefined;
|
|
484
|
-
} | undefined;
|
|
485
|
-
} | undefined;
|
|
486
|
-
} | undefined>>>;
|
|
487
|
-
authorizer: z.ZodOptional<z.ZodType<{
|
|
488
|
-
roles: {
|
|
888
|
+
graphql: z.ZodPrefault<z.ZodObject<{
|
|
889
|
+
objectType: z.ZodPrefault<z.ZodObject<{
|
|
890
|
+
enabled: z.ZodPrefault<z.ZodBoolean>;
|
|
891
|
+
fields: z.ZodPrefault<z.ZodArray<z.ZodObject<{
|
|
892
|
+
ref: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
893
|
+
globalRoles: z.ZodPrefault<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
|
|
894
|
+
instanceRoles: z.ZodPrefault<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
|
|
895
|
+
}, z.core.$strip>>>;
|
|
896
|
+
localRelations: z.ZodPrefault<z.ZodArray<z.ZodObject<{
|
|
897
|
+
ref: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
898
|
+
globalRoles: z.ZodPrefault<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
|
|
899
|
+
instanceRoles: z.ZodPrefault<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
|
|
900
|
+
}, z.core.$strip>>>;
|
|
901
|
+
foreignRelations: z.ZodPrefault<z.ZodArray<z.ZodObject<{
|
|
902
|
+
ref: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
903
|
+
globalRoles: z.ZodPrefault<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
|
|
904
|
+
instanceRoles: z.ZodPrefault<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
|
|
905
|
+
}, z.core.$strip>>>;
|
|
906
|
+
}, z.core.$strip>>;
|
|
907
|
+
queries: z.ZodPrefault<z.ZodObject<{
|
|
908
|
+
globalRoles: z.ZodPrefault<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
|
|
909
|
+
instanceRoles: z.ZodPrefault<z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>;
|
|
910
|
+
get: z.ZodPrefault<z.ZodObject<{
|
|
911
|
+
enabled: z.ZodPrefault<z.ZodBoolean>;
|
|
912
|
+
}, z.core.$strip>>;
|
|
913
|
+
list: z.ZodPrefault<z.ZodObject<{
|
|
914
|
+
enabled: z.ZodPrefault<z.ZodBoolean>;
|
|
915
|
+
count: z.ZodPrefault<z.ZodObject<{
|
|
916
|
+
enabled: z.ZodPrefault<z.ZodBoolean>;
|
|
917
|
+
}, z.core.$strip>>;
|
|
918
|
+
}, z.core.$strip>>;
|
|
919
|
+
}, z.core.$strip>>;
|
|
920
|
+
mutations: z.ZodPrefault<z.ZodObject<{
|
|
921
|
+
create: z.ZodPrefault<z.ZodObject<{
|
|
922
|
+
enabled: z.ZodPrefault<z.ZodBoolean>;
|
|
923
|
+
}, z.core.$strip>>;
|
|
924
|
+
update: z.ZodPrefault<z.ZodObject<{
|
|
925
|
+
enabled: z.ZodPrefault<z.ZodBoolean>;
|
|
926
|
+
}, z.core.$strip>>;
|
|
927
|
+
delete: z.ZodPrefault<z.ZodObject<{
|
|
928
|
+
enabled: z.ZodPrefault<z.ZodBoolean>;
|
|
929
|
+
}, z.core.$strip>>;
|
|
930
|
+
}, z.core.$strip>>;
|
|
931
|
+
}, z.core.$strip>>;
|
|
932
|
+
authorizer: z.ZodPrefault<z.ZodObject<{
|
|
933
|
+
roles: z.ZodDefault<z.ZodArray<z.ZodType<{
|
|
489
934
|
id: string;
|
|
490
935
|
name: string;
|
|
491
936
|
expression: string;
|
|
492
|
-
}
|
|
493
|
-
} | undefined, {
|
|
494
|
-
roles?: {
|
|
937
|
+
}, {
|
|
495
938
|
id: string;
|
|
496
939
|
name: string;
|
|
497
940
|
expression: string;
|
|
498
|
-
}
|
|
499
|
-
} | undefined, z.core.$ZodTypeInternals<{
|
|
500
|
-
roles: {
|
|
941
|
+
}, z.core.$ZodTypeInternals<{
|
|
501
942
|
id: string;
|
|
502
943
|
name: string;
|
|
503
944
|
expression: string;
|
|
504
|
-
}
|
|
505
|
-
} | undefined, {
|
|
506
|
-
roles?: {
|
|
945
|
+
}, {
|
|
507
946
|
id: string;
|
|
508
947
|
name: string;
|
|
509
948
|
expression: string;
|
|
510
|
-
}
|
|
511
|
-
}
|
|
949
|
+
}>>>>;
|
|
950
|
+
}, z.core.$strip>>;
|
|
512
951
|
}, z.core.$strip>, {
|
|
513
952
|
modelSlot: import("#src/references/index.js").DefinitionEntityType<false>;
|
|
514
953
|
}>;
|
|
@@ -517,22 +956,92 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
|
|
|
517
956
|
name: string;
|
|
518
957
|
featureRef: string;
|
|
519
958
|
model: {
|
|
520
|
-
fields: {
|
|
959
|
+
fields: ({
|
|
960
|
+
type: "string";
|
|
961
|
+
options: {
|
|
962
|
+
default?: string | undefined;
|
|
963
|
+
};
|
|
521
964
|
id: string;
|
|
522
965
|
name: string;
|
|
523
|
-
type: "string" | "boolean" | "int" | "date" | "enum" | "uuid" | "dateTime" | "float" | "decimal" | "json";
|
|
524
966
|
isOptional: boolean;
|
|
967
|
+
} | {
|
|
968
|
+
type: "uuid";
|
|
525
969
|
options: {
|
|
526
|
-
|
|
527
|
-
default: string;
|
|
970
|
+
default?: string | undefined;
|
|
528
971
|
genUuid?: boolean | undefined;
|
|
972
|
+
};
|
|
973
|
+
id: string;
|
|
974
|
+
name: string;
|
|
975
|
+
isOptional: boolean;
|
|
976
|
+
} | {
|
|
977
|
+
type: "int";
|
|
978
|
+
options: {
|
|
979
|
+
default?: string | undefined;
|
|
980
|
+
};
|
|
981
|
+
id: string;
|
|
982
|
+
name: string;
|
|
983
|
+
isOptional: boolean;
|
|
984
|
+
} | {
|
|
985
|
+
type: "boolean";
|
|
986
|
+
options: {
|
|
987
|
+
default?: "" | "true" | "false" | undefined;
|
|
988
|
+
};
|
|
989
|
+
id: string;
|
|
990
|
+
name: string;
|
|
991
|
+
isOptional: boolean;
|
|
992
|
+
} | {
|
|
993
|
+
type: "dateTime";
|
|
994
|
+
options: {
|
|
995
|
+
defaultToNow?: boolean | undefined;
|
|
529
996
|
updatedAt?: boolean | undefined;
|
|
997
|
+
};
|
|
998
|
+
id: string;
|
|
999
|
+
name: string;
|
|
1000
|
+
isOptional: boolean;
|
|
1001
|
+
} | {
|
|
1002
|
+
type: "float";
|
|
1003
|
+
options: {
|
|
1004
|
+
default?: string | undefined;
|
|
1005
|
+
};
|
|
1006
|
+
id: string;
|
|
1007
|
+
name: string;
|
|
1008
|
+
isOptional: boolean;
|
|
1009
|
+
} | {
|
|
1010
|
+
type: "decimal";
|
|
1011
|
+
options: {
|
|
1012
|
+
default?: string | undefined;
|
|
1013
|
+
};
|
|
1014
|
+
id: string;
|
|
1015
|
+
name: string;
|
|
1016
|
+
isOptional: boolean;
|
|
1017
|
+
} | {
|
|
1018
|
+
type: "json";
|
|
1019
|
+
options: {
|
|
1020
|
+
default?: string | undefined;
|
|
1021
|
+
};
|
|
1022
|
+
id: string;
|
|
1023
|
+
name: string;
|
|
1024
|
+
isOptional: boolean;
|
|
1025
|
+
} | {
|
|
1026
|
+
type: "date";
|
|
1027
|
+
options: {
|
|
1028
|
+
default?: string | undefined;
|
|
530
1029
|
defaultToNow?: boolean | undefined;
|
|
531
|
-
enumRef?: string | undefined;
|
|
532
1030
|
};
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
1031
|
+
id: string;
|
|
1032
|
+
name: string;
|
|
1033
|
+
isOptional: boolean;
|
|
1034
|
+
} | {
|
|
1035
|
+
type: "enum";
|
|
1036
|
+
options: {
|
|
1037
|
+
enumRef: string;
|
|
1038
|
+
defaultEnumValueRef?: string | undefined;
|
|
1039
|
+
};
|
|
1040
|
+
id: string;
|
|
1041
|
+
name: string;
|
|
1042
|
+
isOptional: boolean;
|
|
1043
|
+
})[];
|
|
1044
|
+
relations: {
|
|
536
1045
|
id: string;
|
|
537
1046
|
foreignId: string;
|
|
538
1047
|
name: string;
|
|
@@ -544,92 +1053,181 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
|
|
|
544
1053
|
foreignRelationName: string;
|
|
545
1054
|
onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
|
|
546
1055
|
onUpdate: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
|
|
547
|
-
}[]
|
|
548
|
-
|
|
1056
|
+
}[];
|
|
1057
|
+
primaryKeyFieldRefs: string[];
|
|
1058
|
+
uniqueConstraints: {
|
|
549
1059
|
id: string;
|
|
550
1060
|
fields: {
|
|
551
1061
|
fieldRef: string;
|
|
552
1062
|
}[];
|
|
553
|
-
}[]
|
|
1063
|
+
}[];
|
|
554
1064
|
};
|
|
555
1065
|
service: {
|
|
556
1066
|
create: {
|
|
557
1067
|
enabled: boolean;
|
|
1068
|
+
globalRoles: string[];
|
|
558
1069
|
fields?: string[] | undefined;
|
|
559
1070
|
transformerNames?: string[] | undefined;
|
|
560
1071
|
};
|
|
561
1072
|
update: {
|
|
562
1073
|
enabled: boolean;
|
|
1074
|
+
globalRoles: string[];
|
|
1075
|
+
instanceRoles: string[];
|
|
563
1076
|
fields?: string[] | undefined;
|
|
564
1077
|
transformerNames?: string[] | undefined;
|
|
565
1078
|
};
|
|
566
|
-
delete: {
|
|
567
|
-
enabled: boolean;
|
|
1079
|
+
delete: {
|
|
1080
|
+
enabled: boolean;
|
|
1081
|
+
globalRoles: string[];
|
|
1082
|
+
instanceRoles: string[];
|
|
1083
|
+
};
|
|
1084
|
+
transformers: {
|
|
1085
|
+
[x: string]: unknown;
|
|
1086
|
+
id: string;
|
|
1087
|
+
type: string;
|
|
1088
|
+
}[];
|
|
1089
|
+
};
|
|
1090
|
+
graphql: {
|
|
1091
|
+
objectType: {
|
|
1092
|
+
enabled: boolean;
|
|
1093
|
+
fields: {
|
|
1094
|
+
ref: string;
|
|
1095
|
+
globalRoles: string[];
|
|
1096
|
+
instanceRoles: string[];
|
|
1097
|
+
}[];
|
|
1098
|
+
localRelations: {
|
|
1099
|
+
ref: string;
|
|
1100
|
+
globalRoles: string[];
|
|
1101
|
+
instanceRoles: string[];
|
|
1102
|
+
}[];
|
|
1103
|
+
foreignRelations: {
|
|
1104
|
+
ref: string;
|
|
1105
|
+
globalRoles: string[];
|
|
1106
|
+
instanceRoles: string[];
|
|
1107
|
+
}[];
|
|
1108
|
+
};
|
|
1109
|
+
queries: {
|
|
1110
|
+
globalRoles: string[];
|
|
1111
|
+
instanceRoles: string[];
|
|
1112
|
+
get: {
|
|
1113
|
+
enabled: boolean;
|
|
1114
|
+
};
|
|
1115
|
+
list: {
|
|
1116
|
+
enabled: boolean;
|
|
1117
|
+
count: {
|
|
1118
|
+
enabled: boolean;
|
|
1119
|
+
};
|
|
1120
|
+
};
|
|
1121
|
+
};
|
|
1122
|
+
mutations: {
|
|
1123
|
+
create: {
|
|
1124
|
+
enabled: boolean;
|
|
1125
|
+
};
|
|
1126
|
+
update: {
|
|
1127
|
+
enabled: boolean;
|
|
1128
|
+
};
|
|
1129
|
+
delete: {
|
|
1130
|
+
enabled: boolean;
|
|
1131
|
+
};
|
|
568
1132
|
};
|
|
569
|
-
transformers: {
|
|
570
|
-
[x: string]: unknown;
|
|
571
|
-
id: string;
|
|
572
|
-
type: string;
|
|
573
|
-
}[];
|
|
574
1133
|
};
|
|
575
|
-
|
|
576
|
-
objectType?: {
|
|
577
|
-
enabled?: boolean | undefined;
|
|
578
|
-
fields?: string[] | undefined;
|
|
579
|
-
localRelations?: string[] | undefined;
|
|
580
|
-
foreignRelations?: string[] | undefined;
|
|
581
|
-
} | undefined;
|
|
582
|
-
queries?: {
|
|
583
|
-
get?: {
|
|
584
|
-
enabled?: boolean | undefined;
|
|
585
|
-
roles?: string[] | undefined;
|
|
586
|
-
} | undefined;
|
|
587
|
-
list?: {
|
|
588
|
-
enabled?: boolean | undefined;
|
|
589
|
-
roles?: string[] | undefined;
|
|
590
|
-
} | undefined;
|
|
591
|
-
} | undefined;
|
|
592
|
-
mutations?: {
|
|
593
|
-
create?: {
|
|
594
|
-
enabled?: boolean | undefined;
|
|
595
|
-
roles?: string[] | undefined;
|
|
596
|
-
} | undefined;
|
|
597
|
-
update?: {
|
|
598
|
-
enabled?: boolean | undefined;
|
|
599
|
-
roles?: string[] | undefined;
|
|
600
|
-
} | undefined;
|
|
601
|
-
delete?: {
|
|
602
|
-
enabled?: boolean | undefined;
|
|
603
|
-
roles?: string[] | undefined;
|
|
604
|
-
} | undefined;
|
|
605
|
-
} | undefined;
|
|
606
|
-
} | undefined;
|
|
607
|
-
authorizer?: {
|
|
1134
|
+
authorizer: {
|
|
608
1135
|
roles: {
|
|
609
1136
|
id: string;
|
|
610
1137
|
name: string;
|
|
611
1138
|
expression: string;
|
|
612
1139
|
}[];
|
|
613
|
-
}
|
|
1140
|
+
};
|
|
614
1141
|
}, {
|
|
615
1142
|
id: string;
|
|
616
1143
|
name: string;
|
|
617
1144
|
featureRef: string;
|
|
618
1145
|
model: {
|
|
619
|
-
fields: {
|
|
1146
|
+
fields: ({
|
|
1147
|
+
type: "string";
|
|
620
1148
|
id: string;
|
|
621
1149
|
name: string;
|
|
622
|
-
|
|
1150
|
+
options?: {
|
|
1151
|
+
default?: string | undefined;
|
|
1152
|
+
} | undefined;
|
|
623
1153
|
isOptional?: boolean | undefined;
|
|
1154
|
+
} | {
|
|
1155
|
+
type: "uuid";
|
|
1156
|
+
id: string;
|
|
1157
|
+
name: string;
|
|
624
1158
|
options?: {
|
|
625
1159
|
default?: string | undefined;
|
|
626
1160
|
genUuid?: boolean | undefined;
|
|
1161
|
+
} | undefined;
|
|
1162
|
+
isOptional?: boolean | undefined;
|
|
1163
|
+
} | {
|
|
1164
|
+
type: "int";
|
|
1165
|
+
id: string;
|
|
1166
|
+
name: string;
|
|
1167
|
+
options?: {
|
|
1168
|
+
default?: string | undefined;
|
|
1169
|
+
} | undefined;
|
|
1170
|
+
isOptional?: boolean | undefined;
|
|
1171
|
+
} | {
|
|
1172
|
+
type: "boolean";
|
|
1173
|
+
id: string;
|
|
1174
|
+
name: string;
|
|
1175
|
+
options?: {
|
|
1176
|
+
default?: "" | "true" | "false" | undefined;
|
|
1177
|
+
} | undefined;
|
|
1178
|
+
isOptional?: boolean | undefined;
|
|
1179
|
+
} | {
|
|
1180
|
+
type: "dateTime";
|
|
1181
|
+
id: string;
|
|
1182
|
+
name: string;
|
|
1183
|
+
options?: {
|
|
1184
|
+
defaultToNow?: boolean | undefined;
|
|
627
1185
|
updatedAt?: boolean | undefined;
|
|
1186
|
+
} | undefined;
|
|
1187
|
+
isOptional?: boolean | undefined;
|
|
1188
|
+
} | {
|
|
1189
|
+
type: "float";
|
|
1190
|
+
id: string;
|
|
1191
|
+
name: string;
|
|
1192
|
+
options?: {
|
|
1193
|
+
default?: string | undefined;
|
|
1194
|
+
} | undefined;
|
|
1195
|
+
isOptional?: boolean | undefined;
|
|
1196
|
+
} | {
|
|
1197
|
+
type: "decimal";
|
|
1198
|
+
id: string;
|
|
1199
|
+
name: string;
|
|
1200
|
+
options?: {
|
|
1201
|
+
default?: string | undefined;
|
|
1202
|
+
} | undefined;
|
|
1203
|
+
isOptional?: boolean | undefined;
|
|
1204
|
+
} | {
|
|
1205
|
+
type: "json";
|
|
1206
|
+
id: string;
|
|
1207
|
+
name: string;
|
|
1208
|
+
options?: {
|
|
1209
|
+
default?: string | undefined;
|
|
1210
|
+
} | undefined;
|
|
1211
|
+
isOptional?: boolean | undefined;
|
|
1212
|
+
} | {
|
|
1213
|
+
type: "date";
|
|
1214
|
+
id: string;
|
|
1215
|
+
name: string;
|
|
1216
|
+
options?: {
|
|
1217
|
+
default?: string | undefined;
|
|
628
1218
|
defaultToNow?: boolean | undefined;
|
|
629
|
-
enumRef?: string | undefined;
|
|
630
|
-
defaultEnumValueRef?: string | undefined;
|
|
631
1219
|
} | undefined;
|
|
632
|
-
|
|
1220
|
+
isOptional?: boolean | undefined;
|
|
1221
|
+
} | {
|
|
1222
|
+
type: "enum";
|
|
1223
|
+
options: {
|
|
1224
|
+
enumRef: string;
|
|
1225
|
+
defaultEnumValueRef?: string | undefined;
|
|
1226
|
+
};
|
|
1227
|
+
id: string;
|
|
1228
|
+
name: string;
|
|
1229
|
+
isOptional?: boolean | undefined;
|
|
1230
|
+
})[];
|
|
633
1231
|
primaryKeyFieldRefs: string[];
|
|
634
1232
|
relations?: {
|
|
635
1233
|
id: string;
|
|
@@ -656,14 +1254,19 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
|
|
|
656
1254
|
enabled?: boolean | undefined;
|
|
657
1255
|
fields?: string[] | undefined;
|
|
658
1256
|
transformerNames?: string[] | undefined;
|
|
1257
|
+
globalRoles?: string[] | undefined;
|
|
659
1258
|
} | undefined;
|
|
660
1259
|
update?: {
|
|
661
1260
|
enabled?: boolean | undefined;
|
|
662
1261
|
fields?: string[] | undefined;
|
|
663
1262
|
transformerNames?: string[] | undefined;
|
|
1263
|
+
globalRoles?: string[] | undefined;
|
|
1264
|
+
instanceRoles?: string[] | undefined;
|
|
664
1265
|
} | undefined;
|
|
665
1266
|
delete?: {
|
|
666
1267
|
enabled?: boolean | undefined;
|
|
1268
|
+
globalRoles?: string[] | undefined;
|
|
1269
|
+
instanceRoles?: string[] | undefined;
|
|
667
1270
|
} | undefined;
|
|
668
1271
|
transformers?: {
|
|
669
1272
|
[x: string]: unknown;
|
|
@@ -674,32 +1277,44 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
|
|
|
674
1277
|
graphql?: {
|
|
675
1278
|
objectType?: {
|
|
676
1279
|
enabled?: boolean | undefined;
|
|
677
|
-
fields?:
|
|
678
|
-
|
|
679
|
-
|
|
1280
|
+
fields?: {
|
|
1281
|
+
ref: string;
|
|
1282
|
+
globalRoles?: string[] | undefined;
|
|
1283
|
+
instanceRoles?: string[] | undefined;
|
|
1284
|
+
}[] | undefined;
|
|
1285
|
+
localRelations?: {
|
|
1286
|
+
ref: string;
|
|
1287
|
+
globalRoles?: string[] | undefined;
|
|
1288
|
+
instanceRoles?: string[] | undefined;
|
|
1289
|
+
}[] | undefined;
|
|
1290
|
+
foreignRelations?: {
|
|
1291
|
+
ref: string;
|
|
1292
|
+
globalRoles?: string[] | undefined;
|
|
1293
|
+
instanceRoles?: string[] | undefined;
|
|
1294
|
+
}[] | undefined;
|
|
680
1295
|
} | undefined;
|
|
681
1296
|
queries?: {
|
|
1297
|
+
globalRoles?: string[] | undefined;
|
|
1298
|
+
instanceRoles?: string[] | undefined;
|
|
682
1299
|
get?: {
|
|
683
1300
|
enabled?: boolean | undefined;
|
|
684
|
-
roles?: string[] | undefined;
|
|
685
1301
|
} | undefined;
|
|
686
1302
|
list?: {
|
|
687
1303
|
enabled?: boolean | undefined;
|
|
688
|
-
|
|
1304
|
+
count?: {
|
|
1305
|
+
enabled?: boolean | undefined;
|
|
1306
|
+
} | undefined;
|
|
689
1307
|
} | undefined;
|
|
690
1308
|
} | undefined;
|
|
691
1309
|
mutations?: {
|
|
692
1310
|
create?: {
|
|
693
1311
|
enabled?: boolean | undefined;
|
|
694
|
-
roles?: string[] | undefined;
|
|
695
1312
|
} | undefined;
|
|
696
1313
|
update?: {
|
|
697
1314
|
enabled?: boolean | undefined;
|
|
698
|
-
roles?: string[] | undefined;
|
|
699
1315
|
} | undefined;
|
|
700
1316
|
delete?: {
|
|
701
1317
|
enabled?: boolean | undefined;
|
|
702
|
-
roles?: string[] | undefined;
|
|
703
1318
|
} | undefined;
|
|
704
1319
|
} | undefined;
|
|
705
1320
|
} | undefined;
|
|
@@ -715,22 +1330,92 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
|
|
|
715
1330
|
name: string;
|
|
716
1331
|
featureRef: string;
|
|
717
1332
|
model: {
|
|
718
|
-
fields: {
|
|
1333
|
+
fields: ({
|
|
1334
|
+
type: "string";
|
|
1335
|
+
options: {
|
|
1336
|
+
default?: string | undefined;
|
|
1337
|
+
};
|
|
719
1338
|
id: string;
|
|
720
1339
|
name: string;
|
|
721
|
-
type: "string" | "boolean" | "int" | "date" | "enum" | "uuid" | "dateTime" | "float" | "decimal" | "json";
|
|
722
1340
|
isOptional: boolean;
|
|
1341
|
+
} | {
|
|
1342
|
+
type: "uuid";
|
|
723
1343
|
options: {
|
|
724
|
-
|
|
725
|
-
default: string;
|
|
1344
|
+
default?: string | undefined;
|
|
726
1345
|
genUuid?: boolean | undefined;
|
|
1346
|
+
};
|
|
1347
|
+
id: string;
|
|
1348
|
+
name: string;
|
|
1349
|
+
isOptional: boolean;
|
|
1350
|
+
} | {
|
|
1351
|
+
type: "int";
|
|
1352
|
+
options: {
|
|
1353
|
+
default?: string | undefined;
|
|
1354
|
+
};
|
|
1355
|
+
id: string;
|
|
1356
|
+
name: string;
|
|
1357
|
+
isOptional: boolean;
|
|
1358
|
+
} | {
|
|
1359
|
+
type: "boolean";
|
|
1360
|
+
options: {
|
|
1361
|
+
default?: "" | "true" | "false" | undefined;
|
|
1362
|
+
};
|
|
1363
|
+
id: string;
|
|
1364
|
+
name: string;
|
|
1365
|
+
isOptional: boolean;
|
|
1366
|
+
} | {
|
|
1367
|
+
type: "dateTime";
|
|
1368
|
+
options: {
|
|
1369
|
+
defaultToNow?: boolean | undefined;
|
|
727
1370
|
updatedAt?: boolean | undefined;
|
|
1371
|
+
};
|
|
1372
|
+
id: string;
|
|
1373
|
+
name: string;
|
|
1374
|
+
isOptional: boolean;
|
|
1375
|
+
} | {
|
|
1376
|
+
type: "float";
|
|
1377
|
+
options: {
|
|
1378
|
+
default?: string | undefined;
|
|
1379
|
+
};
|
|
1380
|
+
id: string;
|
|
1381
|
+
name: string;
|
|
1382
|
+
isOptional: boolean;
|
|
1383
|
+
} | {
|
|
1384
|
+
type: "decimal";
|
|
1385
|
+
options: {
|
|
1386
|
+
default?: string | undefined;
|
|
1387
|
+
};
|
|
1388
|
+
id: string;
|
|
1389
|
+
name: string;
|
|
1390
|
+
isOptional: boolean;
|
|
1391
|
+
} | {
|
|
1392
|
+
type: "json";
|
|
1393
|
+
options: {
|
|
1394
|
+
default?: string | undefined;
|
|
1395
|
+
};
|
|
1396
|
+
id: string;
|
|
1397
|
+
name: string;
|
|
1398
|
+
isOptional: boolean;
|
|
1399
|
+
} | {
|
|
1400
|
+
type: "date";
|
|
1401
|
+
options: {
|
|
1402
|
+
default?: string | undefined;
|
|
728
1403
|
defaultToNow?: boolean | undefined;
|
|
729
|
-
enumRef?: string | undefined;
|
|
730
1404
|
};
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
1405
|
+
id: string;
|
|
1406
|
+
name: string;
|
|
1407
|
+
isOptional: boolean;
|
|
1408
|
+
} | {
|
|
1409
|
+
type: "enum";
|
|
1410
|
+
options: {
|
|
1411
|
+
enumRef: string;
|
|
1412
|
+
defaultEnumValueRef?: string | undefined;
|
|
1413
|
+
};
|
|
1414
|
+
id: string;
|
|
1415
|
+
name: string;
|
|
1416
|
+
isOptional: boolean;
|
|
1417
|
+
})[];
|
|
1418
|
+
relations: {
|
|
734
1419
|
id: string;
|
|
735
1420
|
foreignId: string;
|
|
736
1421
|
name: string;
|
|
@@ -742,27 +1427,33 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
|
|
|
742
1427
|
foreignRelationName: string;
|
|
743
1428
|
onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
|
|
744
1429
|
onUpdate: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault";
|
|
745
|
-
}[]
|
|
746
|
-
|
|
1430
|
+
}[];
|
|
1431
|
+
primaryKeyFieldRefs: string[];
|
|
1432
|
+
uniqueConstraints: {
|
|
747
1433
|
id: string;
|
|
748
1434
|
fields: {
|
|
749
1435
|
fieldRef: string;
|
|
750
1436
|
}[];
|
|
751
|
-
}[]
|
|
1437
|
+
}[];
|
|
752
1438
|
};
|
|
753
1439
|
service: {
|
|
754
1440
|
create: {
|
|
755
1441
|
enabled: boolean;
|
|
1442
|
+
globalRoles: string[];
|
|
756
1443
|
fields?: string[] | undefined;
|
|
757
1444
|
transformerNames?: string[] | undefined;
|
|
758
1445
|
};
|
|
759
1446
|
update: {
|
|
760
1447
|
enabled: boolean;
|
|
1448
|
+
globalRoles: string[];
|
|
1449
|
+
instanceRoles: string[];
|
|
761
1450
|
fields?: string[] | undefined;
|
|
762
1451
|
transformerNames?: string[] | undefined;
|
|
763
1452
|
};
|
|
764
1453
|
delete: {
|
|
765
1454
|
enabled: boolean;
|
|
1455
|
+
globalRoles: string[];
|
|
1456
|
+
instanceRoles: string[];
|
|
766
1457
|
};
|
|
767
1458
|
transformers: {
|
|
768
1459
|
[x: string]: unknown;
|
|
@@ -770,64 +1461,147 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
|
|
|
770
1461
|
type: string;
|
|
771
1462
|
}[];
|
|
772
1463
|
};
|
|
773
|
-
graphql
|
|
774
|
-
objectType
|
|
775
|
-
enabled
|
|
776
|
-
fields
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
enabled
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
1464
|
+
graphql: {
|
|
1465
|
+
objectType: {
|
|
1466
|
+
enabled: boolean;
|
|
1467
|
+
fields: {
|
|
1468
|
+
ref: string;
|
|
1469
|
+
globalRoles: string[];
|
|
1470
|
+
instanceRoles: string[];
|
|
1471
|
+
}[];
|
|
1472
|
+
localRelations: {
|
|
1473
|
+
ref: string;
|
|
1474
|
+
globalRoles: string[];
|
|
1475
|
+
instanceRoles: string[];
|
|
1476
|
+
}[];
|
|
1477
|
+
foreignRelations: {
|
|
1478
|
+
ref: string;
|
|
1479
|
+
globalRoles: string[];
|
|
1480
|
+
instanceRoles: string[];
|
|
1481
|
+
}[];
|
|
1482
|
+
};
|
|
1483
|
+
queries: {
|
|
1484
|
+
globalRoles: string[];
|
|
1485
|
+
instanceRoles: string[];
|
|
1486
|
+
get: {
|
|
1487
|
+
enabled: boolean;
|
|
1488
|
+
};
|
|
1489
|
+
list: {
|
|
1490
|
+
enabled: boolean;
|
|
1491
|
+
count: {
|
|
1492
|
+
enabled: boolean;
|
|
1493
|
+
};
|
|
1494
|
+
};
|
|
1495
|
+
};
|
|
1496
|
+
mutations: {
|
|
1497
|
+
create: {
|
|
1498
|
+
enabled: boolean;
|
|
1499
|
+
};
|
|
1500
|
+
update: {
|
|
1501
|
+
enabled: boolean;
|
|
1502
|
+
};
|
|
1503
|
+
delete: {
|
|
1504
|
+
enabled: boolean;
|
|
1505
|
+
};
|
|
1506
|
+
};
|
|
1507
|
+
};
|
|
1508
|
+
authorizer: {
|
|
806
1509
|
roles: {
|
|
807
1510
|
id: string;
|
|
808
1511
|
name: string;
|
|
809
1512
|
expression: string;
|
|
810
1513
|
}[];
|
|
811
|
-
}
|
|
1514
|
+
};
|
|
812
1515
|
}, {
|
|
813
1516
|
id: string;
|
|
814
1517
|
name: string;
|
|
815
1518
|
featureRef: string;
|
|
816
1519
|
model: {
|
|
817
|
-
fields: {
|
|
1520
|
+
fields: ({
|
|
1521
|
+
type: "string";
|
|
818
1522
|
id: string;
|
|
819
1523
|
name: string;
|
|
820
|
-
|
|
1524
|
+
options?: {
|
|
1525
|
+
default?: string | undefined;
|
|
1526
|
+
} | undefined;
|
|
821
1527
|
isOptional?: boolean | undefined;
|
|
1528
|
+
} | {
|
|
1529
|
+
type: "uuid";
|
|
1530
|
+
id: string;
|
|
1531
|
+
name: string;
|
|
822
1532
|
options?: {
|
|
823
1533
|
default?: string | undefined;
|
|
824
1534
|
genUuid?: boolean | undefined;
|
|
1535
|
+
} | undefined;
|
|
1536
|
+
isOptional?: boolean | undefined;
|
|
1537
|
+
} | {
|
|
1538
|
+
type: "int";
|
|
1539
|
+
id: string;
|
|
1540
|
+
name: string;
|
|
1541
|
+
options?: {
|
|
1542
|
+
default?: string | undefined;
|
|
1543
|
+
} | undefined;
|
|
1544
|
+
isOptional?: boolean | undefined;
|
|
1545
|
+
} | {
|
|
1546
|
+
type: "boolean";
|
|
1547
|
+
id: string;
|
|
1548
|
+
name: string;
|
|
1549
|
+
options?: {
|
|
1550
|
+
default?: "" | "true" | "false" | undefined;
|
|
1551
|
+
} | undefined;
|
|
1552
|
+
isOptional?: boolean | undefined;
|
|
1553
|
+
} | {
|
|
1554
|
+
type: "dateTime";
|
|
1555
|
+
id: string;
|
|
1556
|
+
name: string;
|
|
1557
|
+
options?: {
|
|
1558
|
+
defaultToNow?: boolean | undefined;
|
|
825
1559
|
updatedAt?: boolean | undefined;
|
|
1560
|
+
} | undefined;
|
|
1561
|
+
isOptional?: boolean | undefined;
|
|
1562
|
+
} | {
|
|
1563
|
+
type: "float";
|
|
1564
|
+
id: string;
|
|
1565
|
+
name: string;
|
|
1566
|
+
options?: {
|
|
1567
|
+
default?: string | undefined;
|
|
1568
|
+
} | undefined;
|
|
1569
|
+
isOptional?: boolean | undefined;
|
|
1570
|
+
} | {
|
|
1571
|
+
type: "decimal";
|
|
1572
|
+
id: string;
|
|
1573
|
+
name: string;
|
|
1574
|
+
options?: {
|
|
1575
|
+
default?: string | undefined;
|
|
1576
|
+
} | undefined;
|
|
1577
|
+
isOptional?: boolean | undefined;
|
|
1578
|
+
} | {
|
|
1579
|
+
type: "json";
|
|
1580
|
+
id: string;
|
|
1581
|
+
name: string;
|
|
1582
|
+
options?: {
|
|
1583
|
+
default?: string | undefined;
|
|
1584
|
+
} | undefined;
|
|
1585
|
+
isOptional?: boolean | undefined;
|
|
1586
|
+
} | {
|
|
1587
|
+
type: "date";
|
|
1588
|
+
id: string;
|
|
1589
|
+
name: string;
|
|
1590
|
+
options?: {
|
|
1591
|
+
default?: string | undefined;
|
|
826
1592
|
defaultToNow?: boolean | undefined;
|
|
827
|
-
enumRef?: string | undefined;
|
|
828
|
-
defaultEnumValueRef?: string | undefined;
|
|
829
1593
|
} | undefined;
|
|
830
|
-
|
|
1594
|
+
isOptional?: boolean | undefined;
|
|
1595
|
+
} | {
|
|
1596
|
+
type: "enum";
|
|
1597
|
+
options: {
|
|
1598
|
+
enumRef: string;
|
|
1599
|
+
defaultEnumValueRef?: string | undefined;
|
|
1600
|
+
};
|
|
1601
|
+
id: string;
|
|
1602
|
+
name: string;
|
|
1603
|
+
isOptional?: boolean | undefined;
|
|
1604
|
+
})[];
|
|
831
1605
|
primaryKeyFieldRefs: string[];
|
|
832
1606
|
relations?: {
|
|
833
1607
|
id: string;
|
|
@@ -854,14 +1628,19 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
|
|
|
854
1628
|
enabled?: boolean | undefined;
|
|
855
1629
|
fields?: string[] | undefined;
|
|
856
1630
|
transformerNames?: string[] | undefined;
|
|
1631
|
+
globalRoles?: string[] | undefined;
|
|
857
1632
|
} | undefined;
|
|
858
1633
|
update?: {
|
|
859
1634
|
enabled?: boolean | undefined;
|
|
860
1635
|
fields?: string[] | undefined;
|
|
861
1636
|
transformerNames?: string[] | undefined;
|
|
1637
|
+
globalRoles?: string[] | undefined;
|
|
1638
|
+
instanceRoles?: string[] | undefined;
|
|
862
1639
|
} | undefined;
|
|
863
1640
|
delete?: {
|
|
864
1641
|
enabled?: boolean | undefined;
|
|
1642
|
+
globalRoles?: string[] | undefined;
|
|
1643
|
+
instanceRoles?: string[] | undefined;
|
|
865
1644
|
} | undefined;
|
|
866
1645
|
transformers?: {
|
|
867
1646
|
[x: string]: unknown;
|
|
@@ -872,32 +1651,44 @@ export declare const createModelSchema: (context: import("#src/schema/creator/in
|
|
|
872
1651
|
graphql?: {
|
|
873
1652
|
objectType?: {
|
|
874
1653
|
enabled?: boolean | undefined;
|
|
875
|
-
fields?:
|
|
876
|
-
|
|
877
|
-
|
|
1654
|
+
fields?: {
|
|
1655
|
+
ref: string;
|
|
1656
|
+
globalRoles?: string[] | undefined;
|
|
1657
|
+
instanceRoles?: string[] | undefined;
|
|
1658
|
+
}[] | undefined;
|
|
1659
|
+
localRelations?: {
|
|
1660
|
+
ref: string;
|
|
1661
|
+
globalRoles?: string[] | undefined;
|
|
1662
|
+
instanceRoles?: string[] | undefined;
|
|
1663
|
+
}[] | undefined;
|
|
1664
|
+
foreignRelations?: {
|
|
1665
|
+
ref: string;
|
|
1666
|
+
globalRoles?: string[] | undefined;
|
|
1667
|
+
instanceRoles?: string[] | undefined;
|
|
1668
|
+
}[] | undefined;
|
|
878
1669
|
} | undefined;
|
|
879
1670
|
queries?: {
|
|
1671
|
+
globalRoles?: string[] | undefined;
|
|
1672
|
+
instanceRoles?: string[] | undefined;
|
|
880
1673
|
get?: {
|
|
881
1674
|
enabled?: boolean | undefined;
|
|
882
|
-
roles?: string[] | undefined;
|
|
883
1675
|
} | undefined;
|
|
884
1676
|
list?: {
|
|
885
1677
|
enabled?: boolean | undefined;
|
|
886
|
-
|
|
1678
|
+
count?: {
|
|
1679
|
+
enabled?: boolean | undefined;
|
|
1680
|
+
} | undefined;
|
|
887
1681
|
} | undefined;
|
|
888
1682
|
} | undefined;
|
|
889
1683
|
mutations?: {
|
|
890
1684
|
create?: {
|
|
891
1685
|
enabled?: boolean | undefined;
|
|
892
|
-
roles?: string[] | undefined;
|
|
893
1686
|
} | undefined;
|
|
894
1687
|
update?: {
|
|
895
1688
|
enabled?: boolean | undefined;
|
|
896
|
-
roles?: string[] | undefined;
|
|
897
1689
|
} | undefined;
|
|
898
1690
|
delete?: {
|
|
899
1691
|
enabled?: boolean | undefined;
|
|
900
|
-
roles?: string[] | undefined;
|
|
901
1692
|
} | undefined;
|
|
902
1693
|
} | undefined;
|
|
903
1694
|
} | undefined;
|