generator-jhipster 8.4.0 → 8.5.0
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/generators/angular/resources/package.json +10 -10
- package/dist/generators/angular/templates/src/main/webapp/app/account/password-reset/finish/password-reset-finish.component.spec.ts.ejs +2 -2
- package/dist/generators/angular/templates/src/main/webapp/app/account/password-reset/finish/password-reset-finish.component.ts.ejs +3 -6
- package/dist/generators/angular/templates/src/main/webapp/app/account/password-reset/init/password-reset-init.component.spec.ts.ejs +2 -2
- package/dist/generators/angular/templates/src/main/webapp/app/account/password-reset/init/password-reset-init.component.ts.ejs +3 -6
- package/dist/generators/angular/templates/src/main/webapp/app/account/register/register.component.ts.ejs +3 -6
- package/dist/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-modal-threads/metrics-modal-threads.component.html.ejs +11 -11
- package/dist/generators/angular/templates/src/main/webapp/app/admin/user-management/delete/user-management-delete-dialog.component.html.ejs +0 -2
- package/dist/generators/angular/templates/src/main/webapp/app/core/auth/user-route-access.service.ts.ejs +1 -1
- package/dist/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/delete/_entityFile_-delete-dialog.component.html.ejs +0 -3
- package/dist/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/detail/_entityFile_-detail.component.spec.ts.ejs +2 -2
- package/dist/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/route/_entityFile_-routing-resolve.service.spec.ts.ejs +2 -2
- package/dist/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/update/_entityFile_-update.component.spec.ts.ejs +3 -3
- package/dist/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/update/_entityFile_-update.component.ts.ejs +11 -17
- package/dist/generators/angular/templates/src/main/webapp/app/layouts/navbar/active-menu.directive.ts.ejs +3 -3
- package/dist/generators/angular/templates/src/main/webapp/app/login/login.component.spec.ts.ejs +2 -2
- package/dist/generators/angular/templates/src/main/webapp/app/login/login.component.ts.ejs +3 -4
- package/dist/generators/angular/templates/src/main/webapp/app/shared/alert/alert-error.component.spec.ts.ejs +2 -2
- package/dist/generators/angular/templates/src/main/webapp/app/shared/auth/has-any-authority.directive.spec.ts.ejs +10 -8
- package/dist/generators/angular/templates/src/main/webapp/app/shared/auth/has-any-authority.directive.ts.ejs +3 -8
- package/dist/generators/angular/templates/src/main/webapp/app/shared/filter/filter.component.html.ejs +6 -2
- package/dist/generators/app/generator.js +4 -13
- package/dist/generators/base/generator.js +15 -16
- package/dist/generators/base/priorities.js +12 -1
- package/dist/generators/base-application/generator.js +14 -2
- package/dist/generators/base-application/priorities.js +1 -0
- package/dist/generators/base-application/support/prepare-entity.js +7 -8
- package/dist/generators/base-application/support/prepare-relationship.js +3 -2
- package/dist/generators/base-core/generator.js +40 -9
- package/dist/generators/bootstrap-application-base/generator.js +7 -3
- package/dist/generators/bootstrap-application-server/generator.js +1 -0
- package/dist/generators/client/command.js +2 -2
- package/dist/generators/client/generators/common/command.js +5 -0
- package/dist/generators/client/generators/common/generator.js +79 -0
- package/dist/generators/client/generators/common/index.js +20 -0
- package/dist/generators/client/generators/common/templates/src/main/webapp/app/shared/jhipster/headers.ts.ejs +57 -0
- package/dist/generators/client/generators/common/templates/src/main/webapp/app/shared/jhipster/problem-details.ts.ejs +51 -0
- package/dist/generators/client/resources/package.json +4 -4
- package/dist/generators/common/generator.js +5 -0
- package/dist/generators/common/resources/package.json +2 -2
- package/dist/generators/cypress/templates/src/test/javascript/cypress/e2e/account/login-page.cy.ts.ejs +4 -4
- package/dist/generators/cypress/templates/src/test/javascript/cypress/e2e/account/password-page.cy.ts.ejs +2 -2
- package/dist/generators/cypress/templates/src/test/javascript/cypress/e2e/account/register-page.cy.ts.ejs +1 -1
- package/dist/generators/cypress/templates/src/test/javascript/cypress/e2e/account/reset-password-page.cy.ts.ejs +1 -1
- package/dist/generators/cypress/templates/src/test/javascript/cypress/e2e/entity/_entity_.cy.ts.ejs +10 -10
- package/dist/generators/docker/templates/docker/mysql.yml.ejs +1 -1
- package/dist/generators/docker/templates/docker/realm-config/jhipster-realm.json.ejs +14 -3
- package/dist/generators/docker-compose/templates/realm-config/jhipster-realm.json.ejs +14 -3
- package/dist/generators/entity/generator.js +2 -10
- package/dist/generators/entity/prompts.js +6 -11
- package/dist/generators/gatling/README.md +15 -0
- package/dist/generators/gatling/templates/src/test/java/gatling/simulations/_entityClass_GatlingTest.java.ejs +2 -10
- package/dist/generators/generate-blueprint/command.js +16 -0
- package/dist/generators/generate-blueprint/files.js +8 -0
- package/dist/generators/generate-blueprint/generator.js +17 -10
- package/dist/generators/generate-blueprint/resources/package.json +1 -1
- package/dist/generators/generate-blueprint/templates/.blueprint/cli/commands.mjs.ejs +6 -0
- package/dist/generators/generate-blueprint/templates/.blueprint/generate-sample/command.mjs.ejs +20 -0
- package/dist/generators/generate-blueprint/templates/.blueprint/generate-sample/generator.mjs.ejs +9 -13
- package/dist/generators/generate-blueprint/templates/.blueprint/github-build-matrix/build-matrix.mjs.ejs +22 -0
- package/dist/generators/generate-blueprint/templates/.blueprint/github-build-matrix/generator.mjs.ejs +24 -0
- package/dist/generators/generate-blueprint/templates/.blueprint/github-build-matrix/index.mjs.ejs +1 -0
- package/dist/generators/generate-blueprint/templates/.eslintrc.json.ejs +2 -2
- package/dist/generators/generate-blueprint/templates/README.md.ejs +16 -8
- package/dist/generators/generate-blueprint/templates/vitest.config.ts.ejs +1 -0
- package/dist/generators/generator-constants.js +1 -1
- package/dist/generators/info/generator.js +1 -3
- package/dist/generators/init/generator.js +2 -2
- package/dist/generators/init/resources/.node-version +1 -1
- package/dist/generators/java/generators/build-tool/command.js +4 -1
- package/dist/generators/java/generators/domain/templates/src/main/java/_package_/_entityPackage_/domain/_persistClass_.java.jhi.ejs +1 -5
- package/dist/generators/java/generators/domain/templates/src/test/java/_package_/_entityPackage_/domain/_persistClass_Asserts.java.ejs +3 -3
- package/dist/generators/java/generators/domain/templates/src/test/java/_package_/_entityPackage_/domain/_persistClass_Test.java.ejs +3 -3
- package/dist/generators/java/support/add-java-annotation.js +28 -7
- package/dist/generators/java/support/generated-annotation-transform.js +1 -1
- package/dist/generators/java/support/index.js +1 -1
- package/dist/generators/jdl/generator.js +1 -1
- package/dist/generators/kubernetes/files.js +1 -1
- package/dist/generators/kubernetes/templates/db/mysql.yml.ejs +0 -1
- package/dist/generators/kubernetes/templates/keycloak/keycloak-configmap.yml.ejs +14 -3
- package/dist/generators/languages/generator.js +4 -2
- package/dist/generators/maven/templates/.mvn/wrapper/maven-wrapper.properties +2 -2
- package/dist/generators/maven/templates/mvnw +185 -243
- package/dist/generators/maven/templates/mvnw.cmd +121 -180
- package/dist/generators/react/generator.js +10 -0
- package/dist/generators/react/resources/package.json +24 -24
- package/dist/generators/react/templates/src/main/webapp/app/config/axios-interceptor.spec.ts.ejs +1 -1
- package/dist/generators/react/templates/src/main/webapp/app/config/axios-interceptor.ts.ejs +1 -1
- package/dist/generators/react/templates/src/main/webapp/app/config/notification-middleware.spec.ts.ejs +1 -1
- package/dist/generators/react/templates/src/main/webapp/app/config/notification-middleware.ts.ejs +80 -87
- package/dist/generators/react/templates/src/main/webapp/app/config/store.ts.ejs +1 -1
- package/dist/generators/react/templates/src/main/webapp/app/entities/_entityFolder_/_entityFile_-update.tsx.ejs +3 -3
- package/dist/generators/react/templates/src/main/webapp/app/entities/_entityFolder_/_entityFile_.reducer.ts.ejs +12 -7
- package/dist/generators/react/templates/src/main/webapp/app/shared/reducers/reducer.utils.ts.ejs +2 -3
- package/dist/generators/server/command.js +0 -11
- package/dist/generators/server/generator.js +9 -70
- package/dist/generators/server/jdl/application-definition.js +3 -1
- package/dist/generators/server/resources/Dockerfile +12 -12
- package/dist/generators/server/resources/gradle/libs.versions.toml +7 -5
- package/dist/generators/server/resources/pom.xml +7 -7
- package/dist/generators/server/support/config.js +4 -8
- package/dist/generators/server/support/prepare-entity.js +5 -6
- package/dist/generators/server/support/relationship.js +5 -2
- package/dist/generators/server/templates/build.gradle.ejs +5 -3
- package/dist/generators/server/templates/gradle/profile_dev.gradle.ejs +1 -0
- package/dist/generators/server/templates/gradle/profile_prod.gradle.ejs +1 -0
- package/dist/generators/server/templates/gradle.properties.ejs +1 -1
- package/dist/generators/server/templates/pom.xml.ejs +7 -5
- package/dist/generators/server/templates/src/main/java/_package_/_entityPackage_/service/dto/_dtoClass_.java.ejs +1 -1
- package/dist/generators/server/templates/src/main/java/_package_/config/Constants.java.ejs +0 -2
- package/dist/generators/server/templates/src/main/java/_package_/config/SecurityConfiguration_imperative.java.ejs +1 -18
- package/dist/generators/server/templates/src/main/java/_package_/config/SecurityConfiguration_reactive.java.ejs +1 -15
- package/dist/generators/server/templates/src/main/java/_package_/config/SecurityJwtConfiguration.java.ejs +0 -20
- package/dist/generators/server/templates/src/main/java/_package_/security/SecurityUtils.java.ejs +65 -5
- package/dist/generators/server/templates/src/main/java/_package_/service/dto/UserDTO.java.ejs +23 -0
- package/dist/generators/server/templates/src/main/java/_package_/service/mapper/UserMapper.java.ejs +8 -4
- package/dist/generators/server/templates/src/main/java/_package_/web/rest/AccountResource_skipUserManagement.java.ejs +43 -9
- package/dist/generators/server/templates/src/main/resources/config/application.yml.ejs +59 -21
- package/dist/generators/server/templates/src/main/resources/swagger/api.yml.ejs +1 -1
- package/dist/generators/server/templates/src/test/java/_package_/security/DomainUserDetailsServiceIT.java.ejs +31 -13
- package/dist/generators/server/templates/src/test/java/_package_/service/mapper/UserMapperTest.java.ejs +84 -17
- package/dist/generators/server/templates/src/test/java/_package_/web/rest/AccountResourceIT.java.ejs +62 -6
- package/dist/generators/server/templates/src/test/java/_package_/web/rest/AccountResourceIT_oauth2.java.ejs +22 -0
- package/dist/generators/server/templates/src/test/resources/config/application.yml.ejs +20 -10
- package/dist/generators/spring-boot/command.js +117 -6
- package/dist/generators/spring-boot/files.js +0 -5
- package/dist/generators/spring-boot/generator.js +40 -7
- package/dist/generators/spring-boot/prompts.js +6 -70
- package/dist/generators/spring-boot/resources/spring-boot-dependencies.pom +368 -576
- package/dist/generators/spring-boot/templates/src/test/java/_package_/_entityPackage_/service/UserServiceIT.java.ejs +47 -11
- package/dist/generators/spring-boot/templates/src/test/java/_package_/_entityPackage_/web/rest/PublicUserResourceIT.java.ejs +60 -24
- package/dist/generators/spring-boot/templates/src/test/java/_package_/_entityPackage_/web/rest/UserResourceIT.java.ejs +195 -318
- package/dist/generators/spring-boot/templates/src/test/java/_package_/_entityPackage_/web/rest/_entityClass_ResourceIT.java.ejs +58 -51
- package/dist/generators/spring-cache/internal/dependencies.js +2 -2
- package/dist/generators/spring-cache/resources/gradle/libs.versions.toml +1 -1
- package/dist/generators/spring-cloud/generators/gateway/command.js +5 -1
- package/dist/generators/spring-cloud/generators/gateway/generator.js +13 -0
- package/dist/generators/spring-cloud/generators/gateway/jdl/jdl-routes-option.js +6 -0
- package/dist/generators/spring-data-cassandra/generator.js +2 -2
- package/dist/generators/spring-data-relational/templates/src/test/java/_package_/config/SqlTestContainersSpringContextCustomizerFactory.java.ejs +3 -1
- package/dist/generators/vue/resources/package.json +15 -15
- package/dist/generators/vue/templates/src/main/webapp/app/admin/tracker/tracker.service.spec.ts.ejs +1 -1
- package/dist/generators/vue/templates/src/main/webapp/app/entities/_entityFolder_/_entityFile_-details.vue.ejs +1 -1
- package/dist/generators/vue/templates/src/main/webapp/app/entities/_entityFolder_/_entityFile_-update.vue.ejs +1 -1
- package/dist/generators/vue/templates/src/main/webapp/app/entities/_entityFolder_/_entityFile_.vue.ejs +1 -1
- package/dist/generators/vue/templates/src/main/webapp/app/shared/alert/alert.service.spec.ts.ejs +8 -8
- package/dist/generators/vue/templates/src/main/webapp/app/shared/data/data-utils.service.spec.ts.ejs +1 -1
- package/dist/generators/vue/templates/tsconfig.app.json.ejs +1 -1
- package/dist/generators/vue/templates/vite.config.mts.ejs +5 -4
- package/dist/jdl/converters/jdl-to-json/jdl-to-json-basic-entity-converter.js +1 -1
- package/dist/jdl/converters/jdl-to-json/jdl-to-json-field-converter.js +4 -4
- package/dist/jdl/converters/jdl-to-json/jdl-with-applications-to-json-converter.js +9 -9
- package/dist/jdl/converters/jdl-to-json/jdl-without-application-to-json-converter.js +2 -2
- package/dist/jdl/converters/json-to-jdl-application-converter.js +1 -1
- package/dist/jdl/converters/json-to-jdl-converter.js +6 -5
- package/dist/jdl/converters/json-to-jdl-entity-converter.js +14 -14
- package/dist/jdl/converters/json-to-jdl-option-converter.js +1 -2
- package/dist/jdl/converters/parsed-jdl-to-jdl-object/application-converter.js +1 -1
- package/dist/jdl/converters/parsed-jdl-to-jdl-object/option-converter.js +2 -2
- package/dist/jdl/converters/parsed-jdl-to-jdl-object/parsed-jdl-to-jdl-object-converter.js +7 -6
- package/dist/jdl/converters/parsed-jdl-to-jdl-object/validation-converter.js +1 -1
- package/dist/jdl/exporters/applications/jhipster-application-formatter.js +16 -23
- package/dist/jdl/exporters/config.js +1 -0
- package/dist/jdl/exporters/jhipster-deployment-exporter.js +5 -5
- package/dist/jdl/exporters/jhipster-entity-exporter.js +1 -1
- package/dist/jdl/jdl-importer.js +22 -20
- package/dist/jdl/jhipster/binary-options.js +12 -8
- package/dist/jdl/jhipster/json-entity.js +1 -1
- package/dist/jdl/models/abstract-jdl-option.js +2 -2
- package/dist/jdl/models/jdl-application-configuration-factory.js +2 -0
- package/dist/jdl/models/jdl-binary-option.js +2 -2
- package/dist/jdl/models/jdl-deployment.js +11 -0
- package/dist/jdl/models/jdl-entity.js +1 -1
- package/dist/jdl/models/jdl-enum.js +1 -1
- package/dist/jdl/models/jdl-enums.js +0 -18
- package/dist/jdl/models/jdl-field.js +2 -2
- package/dist/jdl/models/jdl-object-wrapper.js +1 -0
- package/dist/jdl/models/jdl-object.js +23 -45
- package/dist/jdl/models/jdl-options.js +0 -18
- package/dist/jdl/models/jdl-relationships.js +8 -16
- package/dist/jdl/models/jdl-unary-option.js +1 -1
- package/dist/jdl/models/list-jdl-application-configuration-option.js +5 -2
- package/dist/jdl/parsing/jdl-ast-builder-visitor.js +12 -0
- package/dist/jdl/parsing/jdl-parser.js +14 -0
- package/dist/jdl/parsing/lexer/lexer.js +17 -11
- package/dist/jdl/parsing/validator.js +16 -2
- package/dist/jdl/readers/json-reader.js +1 -1
- package/dist/jdl/utils/array-utils.js +6 -0
- package/dist/jdl/utils/set-utils.js +3 -2
- package/dist/jdl/validators/jdl-without-application-validator.js +2 -2
- package/dist/testing/helpers.js +4 -0
- package/dist/types/generators/base/api.d.ts +5 -1
- package/dist/types/generators/base/generator.d.ts +10 -4
- package/dist/types/generators/base/priorities.d.ts +4 -0
- package/dist/types/generators/base/shared-data.d.ts +1 -1
- package/dist/types/generators/base-application/priorities.d.ts +2 -0
- package/dist/types/generators/base-application/support/entity.d.ts +2 -2
- package/dist/types/generators/base-application/support/prepare-entity.d.ts +3 -3
- package/dist/types/generators/base-application/support/relationship.d.ts +5 -5
- package/dist/types/generators/base-core/generator.d.ts +16 -1
- package/dist/types/generators/generator-constants.d.ts +1 -1
- package/dist/types/generators/java/support/add-java-annotation.d.ts +10 -20
- package/dist/types/generators/java/support/doc.d.ts +1 -1
- package/dist/types/generators/java/support/index.d.ts +1 -1
- package/dist/types/generators/server/support/relationship.d.ts +2 -2
- package/dist/types/generators/server/types.d.ts +5 -0
- package/dist/types/generators/spring-cloud/generators/gateway/jdl/jdl-routes-option.d.ts +2 -0
- package/dist/types/generators/spring-cloud/generators/gateway/types.d.ts +4 -0
- package/dist/types/jdl/converters/jdl-to-json/jdl-to-json-field-converter.d.ts +2 -2
- package/dist/types/jdl/converters/jdl-to-json/jdl-with-applications-to-json-converter.d.ts +2 -1
- package/dist/types/jdl/converters/jdl-to-json/jdl-without-application-to-json-converter.d.ts +3 -1
- package/dist/types/jdl/converters/json-to-jdl-application-converter.d.ts +9 -2
- package/dist/types/jdl/converters/json-to-jdl-converter.d.ts +3 -3
- package/dist/types/jdl/converters/json-to-jdl-entity-converter.d.ts +2 -4
- package/dist/types/jdl/converters/parsed-jdl-to-jdl-object/application-converter.d.ts +3 -1
- package/dist/types/jdl/converters/parsed-jdl-to-jdl-object/deployment-converter.d.ts +2 -1
- package/dist/types/jdl/converters/parsed-jdl-to-jdl-object/entity-converter.d.ts +3 -1
- package/dist/types/jdl/converters/parsed-jdl-to-jdl-object/enum-converter.d.ts +2 -1
- package/dist/types/jdl/converters/parsed-jdl-to-jdl-object/field-converter.d.ts +2 -1
- package/dist/types/jdl/converters/parsed-jdl-to-jdl-object/option-converter.d.ts +3 -3
- package/dist/types/jdl/converters/parsed-jdl-to-jdl-object/parsed-jdl-to-jdl-object-converter.d.ts +2 -1
- package/dist/types/jdl/converters/parsed-jdl-to-jdl-object/relationship-converter.d.ts +2 -1
- package/dist/types/jdl/converters/parsed-jdl-to-jdl-object/types.d.ts +110 -0
- package/dist/types/jdl/converters/parsed-jdl-to-jdl-object/validation-converter.d.ts +2 -1
- package/dist/types/jdl/converters/types.d.ts +102 -14
- package/dist/types/jdl/exporters/applications/jhipster-application-formatter.d.ts +4 -4
- package/dist/types/jdl/exporters/config.d.ts +2 -1
- package/dist/types/jdl/exporters/export-utils.d.ts +2 -1
- package/dist/types/jdl/exporters/jdl-exporter.d.ts +2 -1
- package/dist/types/jdl/exporters/jhipster-deployment-exporter.d.ts +3 -1
- package/dist/types/jdl/exporters/jhipster-entity-exporter.d.ts +3 -1
- package/dist/types/jdl/exporters/types.d.ts +61 -0
- package/dist/types/jdl/jhipster/binary-options.d.ts +8 -26
- package/dist/types/jdl/jhipster/field-types.d.ts +2 -2
- package/dist/types/jdl/jhipster/json-entity.d.ts +2 -2
- package/dist/types/jdl/models/abstract-jdl-option.d.ts +14 -9
- package/dist/types/jdl/models/boolean-jdl-application-configuration-option.d.ts +1 -1
- package/dist/types/jdl/models/integer-jdl-application-configuration-option.d.ts +1 -1
- package/dist/types/jdl/models/jdl-application-configuration-factory.d.ts +1 -1
- package/dist/types/jdl/models/jdl-application-configuration-option.d.ts +4 -4
- package/dist/types/jdl/models/jdl-application-configuration.d.ts +4 -4
- package/dist/types/jdl/models/jdl-application-definition.d.ts +4 -4
- package/dist/types/jdl/models/jdl-application-entities.d.ts +4 -4
- package/dist/types/jdl/models/jdl-application.d.ts +16 -13
- package/dist/types/jdl/models/jdl-binary-option.d.ts +5 -3
- package/dist/types/jdl/models/jdl-deployment.d.ts +13 -1
- package/dist/types/jdl/models/jdl-entity.d.ts +5 -5
- package/dist/types/jdl/models/jdl-enum-value.d.ts +4 -4
- package/dist/types/jdl/models/jdl-enum.d.ts +9 -5
- package/dist/types/jdl/models/jdl-enums.d.ts +6 -5
- package/dist/types/jdl/models/jdl-field.d.ts +10 -8
- package/dist/types/jdl/models/jdl-object-wrapper.d.ts +25 -0
- package/dist/types/jdl/models/jdl-object.d.ts +23 -19
- package/dist/types/jdl/models/jdl-options.d.ts +7 -24
- package/dist/types/jdl/models/jdl-relationship.d.ts +16 -10
- package/dist/types/jdl/models/jdl-relationships.d.ts +5 -5
- package/dist/types/jdl/models/jdl-validation.d.ts +3 -3
- package/dist/types/jdl/models/list-jdl-application-configuration-option.d.ts +4 -3
- package/dist/types/jdl/models/string-jdl-application-configuration-option.d.ts +2 -2
- package/dist/types/jdl/parsing/jdl-ast-builder-visitor.d.ts +1 -0
- package/dist/types/jdl/parsing/jdl-parser.d.ts +1 -0
- package/dist/types/jdl/parsing/jdl-parsing-types.d.ts +23 -0
- package/dist/types/jdl/parsing/lexer/lexer.d.ts +6 -2
- package/dist/types/jdl/parsing/validator.d.ts +1 -1
- package/dist/types/jdl/utils/array-utils.d.ts +1 -0
- package/dist/types/jdl/utils/set-utils.d.ts +1 -19
- package/dist/types/jdl/validators/deployment-validator.d.ts +2 -1
- package/dist/types/testing/helpers.d.ts +13 -3
- package/package.json +24 -23
- /package/dist/jdl/converters/{types.js → parsed-jdl-to-jdl-object/types.js} +0 -0
|
@@ -2,10 +2,10 @@ import type BaseGenerator from '../../base-core/index.js';
|
|
|
2
2
|
import { Entity } from '../types/index.js';
|
|
3
3
|
import type CoreGenerator from '../../base-core/generator.js';
|
|
4
4
|
export declare const entityDefaultConfig: {
|
|
5
|
-
pagination:
|
|
5
|
+
pagination: any;
|
|
6
6
|
anyPropertyHasValidation: boolean;
|
|
7
|
-
dto:
|
|
8
|
-
service:
|
|
7
|
+
dto: any;
|
|
8
|
+
service: any;
|
|
9
9
|
jpaMetamodelFiltering: boolean;
|
|
10
10
|
readOnly: boolean;
|
|
11
11
|
embedded: boolean;
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
* See the License for the specific language governing permissions and
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
|
-
import {
|
|
19
|
+
import { JSONRelationship, JSONEntity } from '../../../jdl/converters/types.js';
|
|
20
20
|
import { ValidationResult } from '../../base/api.js';
|
|
21
21
|
export declare const otherRelationshipType: (relationshipType: any) => any;
|
|
22
|
-
export declare const findOtherRelationshipInRelationships: (entityName: string, relationship:
|
|
23
|
-
export declare const loadEntitiesAnnotations: (entities:
|
|
24
|
-
export declare const loadEntitiesOtherSide: (entities:
|
|
22
|
+
export declare const findOtherRelationshipInRelationships: (entityName: string, relationship: JSONRelationship, inRelationships: JSONRelationship[]) => JSONRelationship | undefined;
|
|
23
|
+
export declare const loadEntitiesAnnotations: (entities: JSONEntity[]) => void;
|
|
24
|
+
export declare const loadEntitiesOtherSide: (entities: JSONEntity[], { application }?: {
|
|
25
25
|
application?: any;
|
|
26
26
|
}) => ValidationResult;
|
|
27
|
-
export declare const addOtherRelationship: (entity:
|
|
27
|
+
export declare const addOtherRelationship: (entity: JSONEntity, otherEntity: JSONEntity, relationship: JSONRelationship) => JSONRelationship;
|
|
@@ -17,6 +17,7 @@ export default class CoreGenerator extends YeomanGenerator<JHipsterGeneratorOpti
|
|
|
17
17
|
static PROMPTING: string;
|
|
18
18
|
static CONFIGURING: string;
|
|
19
19
|
static COMPOSING: string;
|
|
20
|
+
static COMPOSING_COMPONENT: string;
|
|
20
21
|
static LOADING: string;
|
|
21
22
|
static PREPARING: string;
|
|
22
23
|
static POST_PREPARING: string;
|
|
@@ -62,6 +63,10 @@ export default class CoreGenerator extends YeomanGenerator<JHipsterGeneratorOpti
|
|
|
62
63
|
* @deprecated
|
|
63
64
|
*/
|
|
64
65
|
get needleApi(): NeedleApi;
|
|
66
|
+
/**
|
|
67
|
+
* JHipster config with default values fallback
|
|
68
|
+
*/
|
|
69
|
+
get jhipsterConfigWithDefaults(): any;
|
|
65
70
|
/**
|
|
66
71
|
* Warn or throws check failure based on current skipChecks option.
|
|
67
72
|
* @param message
|
|
@@ -72,7 +77,12 @@ export default class CoreGenerator extends YeomanGenerator<JHipsterGeneratorOpti
|
|
|
72
77
|
*
|
|
73
78
|
* @param {string} version - A valid semver version string
|
|
74
79
|
*/
|
|
75
|
-
isJhipsterVersionLessThan(version: any):
|
|
80
|
+
isJhipsterVersionLessThan(version: any): any;
|
|
81
|
+
/**
|
|
82
|
+
* Wrapper for `semver.lt` to check if the oldVersion exists and is less than the newVersion.
|
|
83
|
+
* Can be used by blueprints.
|
|
84
|
+
*/
|
|
85
|
+
isVersionLessThan(oldVersion: string | null, newVersion: string): any;
|
|
76
86
|
/**
|
|
77
87
|
* Get arguments for the priority
|
|
78
88
|
*/
|
|
@@ -109,6 +119,11 @@ export default class CoreGenerator extends YeomanGenerator<JHipsterGeneratorOpti
|
|
|
109
119
|
* Blueprints with command override takes precedence.
|
|
110
120
|
*/
|
|
111
121
|
promptCurrentJHipsterCommand(): Promise<any>;
|
|
122
|
+
/**
|
|
123
|
+
* Configure the current JHipster command.
|
|
124
|
+
* Blueprints with command override takes precedence.
|
|
125
|
+
*/
|
|
126
|
+
configureCurrentJHipsterCommandConfig(): Promise<void>;
|
|
112
127
|
/**
|
|
113
128
|
* Load the current JHipster command storage configuration into the context.
|
|
114
129
|
* Blueprints with command override takes precedence.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const BLUEPRINT_API_VERSION: "jhipster-8";
|
|
2
|
-
export const JHIPSTER_DEPENDENCIES_VERSION: "8.
|
|
2
|
+
export const JHIPSTER_DEPENDENCIES_VERSION: "8.5.0";
|
|
3
3
|
export const JAVA_VERSION: "17";
|
|
4
4
|
export const JAVA_COMPATIBLE_VERSIONS: string[];
|
|
5
5
|
export const ADD_SPRING_MILESTONE_REPOSITORY: false;
|
|
@@ -1,22 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
-
* you may not use this file except in compliance with the License.
|
|
9
|
-
* You may obtain a copy of the License at
|
|
10
|
-
*
|
|
11
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
-
*
|
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
-
* See the License for the specific language governing permissions and
|
|
17
|
-
* limitations under the License.
|
|
18
|
-
*/
|
|
19
|
-
export default function addJavaAnnotation(content: string, { package: packageName, annotation }: {
|
|
1
|
+
export type JavaImportType = {
|
|
2
|
+
staticImport?: boolean;
|
|
3
|
+
};
|
|
4
|
+
export declare function addJavaImport(indentifier: string, type?: JavaImportType): (content: string) => string;
|
|
5
|
+
export declare function addJavaImport(content: string, identifierOrType: string, type?: JavaImportType): string;
|
|
6
|
+
export type JavaAnnotation = {
|
|
20
7
|
package?: string;
|
|
21
8
|
annotation: string;
|
|
22
|
-
|
|
9
|
+
parameters?: (oldParameters?: string) => string;
|
|
10
|
+
};
|
|
11
|
+
export declare function addJavaAnnotation(annotation: JavaAnnotation): (content: string) => string;
|
|
12
|
+
export declare function addJavaAnnotation(content: string, annotation: JavaAnnotation): string;
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* @returns javadoc formatted string
|
|
7
7
|
*/
|
|
8
8
|
export declare const formatDocAsJavaDoc: (text: string, indentSize?: number) => string;
|
|
9
|
-
export declare const formatDocAsApiDescription: (text
|
|
9
|
+
export declare const formatDocAsApiDescription: (text?: string) => string | undefined;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* See the License for the specific language governing permissions and
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
|
-
export
|
|
19
|
+
export * from './add-java-annotation.js';
|
|
20
20
|
export * from './artifacts.js';
|
|
21
21
|
export * from './checks/index.js';
|
|
22
22
|
export * from './doc.js';
|
|
@@ -16,6 +16,6 @@
|
|
|
16
16
|
* See the License for the specific language governing permissions and
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
|
-
import {
|
|
19
|
+
import { JSONEntity } from '../../../jdl/converters/types.js';
|
|
20
20
|
import { ValidationResult } from '../../base/api.js';
|
|
21
|
-
export declare const addEntitiesOtherRelationships: (entities:
|
|
21
|
+
export declare const addEntitiesOtherRelationships: (entities: JSONEntity[]) => ValidationResult;
|
|
@@ -6,6 +6,7 @@ import { SpringCacheSourceType } from '../spring-cache/types.js';
|
|
|
6
6
|
import { MessageBrokerApplicationType } from './options/message-broker.js';
|
|
7
7
|
import type { DeterministicOptionWithDerivedProperties, OptionWithDerivedProperties } from '../base-application/application-options.js';
|
|
8
8
|
import { ApplicationPropertiesNeedles } from './support/needles.ts';
|
|
9
|
+
import { GatewayApplication } from '../spring-cloud/generators/gateway/types.ts';
|
|
9
10
|
|
|
10
11
|
export type SpringEntity = {
|
|
11
12
|
/* Generate entity's Entity */
|
|
@@ -91,6 +92,7 @@ export type SpringBootApplication = JavaApplication &
|
|
|
91
92
|
BuildToolApplication &
|
|
92
93
|
SearchEngine &
|
|
93
94
|
DatabaseTypeApplication &
|
|
95
|
+
GatewayApplication &
|
|
94
96
|
MessageBrokerApplicationType & {
|
|
95
97
|
jhipsterDependenciesVersion: string;
|
|
96
98
|
springBootDependencies: Record<string, string>;
|
|
@@ -111,4 +113,7 @@ export type SpringBootApplication = JavaApplication &
|
|
|
111
113
|
databaseMigrationLiquibase: boolean;
|
|
112
114
|
|
|
113
115
|
communicationSpringWebsocket: boolean;
|
|
116
|
+
requiresDeleteAllUsers: boolean;
|
|
117
|
+
reactorBlock: string;
|
|
118
|
+
reactorBlockOptional: string;
|
|
114
119
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import JDLObject from '../../models/jdl-object.js';
|
|
2
|
-
import {
|
|
2
|
+
import { JSONField } from '../types.js';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
convert: typeof convert;
|
|
5
5
|
};
|
|
@@ -9,4 +9,4 @@ export default _default;
|
|
|
9
9
|
* @param jdlObject - the JDL object containing entities, fields and enums.
|
|
10
10
|
* @return a map having for keys an entity's name and for values its JSON fields.
|
|
11
11
|
*/
|
|
12
|
-
export declare function convert(jdlObject: JDLObject): Map<string,
|
|
12
|
+
export declare function convert(jdlObject: JDLObject): Map<string, JSONField[]>;
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
* See the License for the specific language governing permissions and
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
|
+
import { JdlObjectWrapper } from '../../models/jdl-object-wrapper.js';
|
|
19
20
|
declare const _default: {
|
|
20
21
|
convert: typeof convert;
|
|
21
22
|
};
|
|
@@ -26,4 +27,4 @@ export default _default;
|
|
|
26
27
|
* @param {JDLObject} args.jdlObject - the JDLObject to convert to JSON
|
|
27
28
|
* @returns {Map} entities that can be exported to JSON
|
|
28
29
|
*/
|
|
29
|
-
export declare function convert(args
|
|
30
|
+
export declare function convert(args: JdlObjectWrapper): Map<string, any> | Map<any, never[]>;
|
package/dist/types/jdl/converters/jdl-to-json/jdl-without-application-to-json-converter.d.ts
CHANGED
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
* See the License for the specific language governing permissions and
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
|
+
import JSONEntity from '../../jhipster/json-entity.js';
|
|
20
|
+
import { JdlObjectWrapper } from '../../models/jdl-object-wrapper.js';
|
|
19
21
|
declare const _default: {
|
|
20
22
|
convert: typeof convert;
|
|
21
23
|
};
|
|
@@ -29,4 +31,4 @@ export default _default;
|
|
|
29
31
|
* @param {string} args.applicationType - the application's type
|
|
30
32
|
* @returns {Map} entities that can be exported to JSON
|
|
31
33
|
*/
|
|
32
|
-
export declare function convert(args
|
|
34
|
+
export declare function convert(args: JdlObjectWrapper): Map<string, JSONEntity[]>;
|
|
@@ -16,5 +16,12 @@
|
|
|
16
16
|
* See the License for the specific language governing permissions and
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
import JDLObject from '../models/jdl-object.js';
|
|
20
|
+
import { JHipsterYoRcContent, JHipsterYoRcContentWrapper } from './types.js';
|
|
21
|
+
type JHipsterYoRcContentAndJDLWrapper = {
|
|
22
|
+
applications?: JHipsterYoRcContent[];
|
|
23
|
+
jdl?: JDLObject;
|
|
24
|
+
};
|
|
25
|
+
export declare function convertApplicationsToJDL({ applications, jdl }?: JHipsterYoRcContentAndJDLWrapper): JDLObject;
|
|
26
|
+
export declare function convertApplicationToJDL({ application }?: JHipsterYoRcContentWrapper): import("../models/jdl-application.js").default;
|
|
27
|
+
export {};
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
19
|
import JDLObject from '../models/jdl-object.js';
|
|
20
|
-
import {
|
|
20
|
+
import { JSONEntity, JHipsterYoRcContent } from './types.js';
|
|
21
21
|
declare const _default: {
|
|
22
22
|
convertToJDL: typeof convertToJDL;
|
|
23
23
|
convertSingleContentToJDL: typeof convertSingleContentToJDL;
|
|
@@ -29,5 +29,5 @@ export default _default;
|
|
|
29
29
|
* @param output the file where the JDL will be written
|
|
30
30
|
*/
|
|
31
31
|
export declare function convertToJDL(directory?: string, output?: string | false): JDLObject | undefined;
|
|
32
|
-
export declare function convertSingleContentToJDL(yoRcFileContent:
|
|
33
|
-
export declare function getJDLObjectFromSingleApplication(yoRcFileContent:
|
|
32
|
+
export declare function convertSingleContentToJDL(yoRcFileContent: JHipsterYoRcContent, entities?: Map<string, JSONEntity>): string;
|
|
33
|
+
export declare function getJDLObjectFromSingleApplication(yoRcFileContent: JHipsterYoRcContent, entities?: Map<string, JSONEntity>, existingJDLObject?: JDLObject): JDLObject;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
19
|
import JDLObject from '../models/jdl-object.js';
|
|
20
|
-
import {
|
|
20
|
+
import { JSONEntity } from './types.js';
|
|
21
21
|
declare const _default: {
|
|
22
22
|
convertEntitiesToJDL: typeof convertEntitiesToJDL;
|
|
23
23
|
};
|
|
@@ -28,6 +28,4 @@ export default _default;
|
|
|
28
28
|
* @param params.entities - a Map having for keys the entity names and values the JSON entity files.
|
|
29
29
|
* @return the parsed entities in the JDL form.
|
|
30
30
|
*/
|
|
31
|
-
export declare function convertEntitiesToJDL(
|
|
32
|
-
entities: Map<string, Entity>;
|
|
33
|
-
}): JDLObject;
|
|
31
|
+
export declare function convertEntitiesToJDL(entities: Map<string, JSONEntity>): JDLObject;
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
* See the License for the specific language governing permissions and
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
|
+
import { ParsedJDLApplication } from './types.js';
|
|
20
|
+
import JDLApplication from '../../models/jdl-application.js';
|
|
19
21
|
declare const _default: {
|
|
20
22
|
convertApplications: typeof convertApplications;
|
|
21
23
|
};
|
|
@@ -25,4 +27,4 @@ export default _default;
|
|
|
25
27
|
* @param {Array<Object>} parsedApplications - the parsed applications.
|
|
26
28
|
* @return {Array} the converted JDL applications.
|
|
27
29
|
*/
|
|
28
|
-
export declare function convertApplications(parsedApplications:
|
|
30
|
+
export declare function convertApplications(parsedApplications: ParsedJDLApplication[]): JDLApplication[];
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
19
|
import JDLDeployment from '../../models/jdl-deployment.js';
|
|
20
|
+
import { ParsedJDLDeployment } from './types.js';
|
|
20
21
|
declare const _default: {
|
|
21
22
|
convertDeployments: typeof convertDeployments;
|
|
22
23
|
};
|
|
@@ -26,4 +27,4 @@ export default _default;
|
|
|
26
27
|
* @param {Array} parsedDeployments - parsed JDL deployments.
|
|
27
28
|
* @return the converted JDLDeployment objects.
|
|
28
29
|
*/
|
|
29
|
-
export declare function convertDeployments(parsedDeployments:
|
|
30
|
+
export declare function convertDeployments(parsedDeployments: ParsedJDLDeployment[]): JDLDeployment[];
|
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
19
|
import { JDLEntity } from '../../models/index.js';
|
|
20
|
+
import { ParsedJDLEntity } from './types.js';
|
|
21
|
+
import JDLField from '../../models/jdl-field.js';
|
|
20
22
|
declare const _default: {
|
|
21
23
|
convertEntities: typeof convertEntities;
|
|
22
24
|
};
|
|
@@ -27,4 +29,4 @@ export default _default;
|
|
|
27
29
|
* @param {Function} jdlFieldGetterFunction - the function called to retrieve JDL fields for an entity.
|
|
28
30
|
* @returns converted JDLEntity objects.
|
|
29
31
|
*/
|
|
30
|
-
export declare function convertEntities(parsedEntities:
|
|
32
|
+
export declare function convertEntities(parsedEntities: ParsedJDLEntity[], jdlFieldGetterFunction: (entity: ParsedJDLEntity) => JDLField[]): JDLEntity[];
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
19
|
import { JDLEnum } from '../../models/index.js';
|
|
20
|
+
import { ParsedJDLEnum } from './types.js';
|
|
20
21
|
declare const _default: {
|
|
21
22
|
convertEnums: typeof convertEnums;
|
|
22
23
|
};
|
|
@@ -26,4 +27,4 @@ export default _default;
|
|
|
26
27
|
* @param {Array} enumerations - parsed JDL enumerations.
|
|
27
28
|
* @return the converted JDLEnums.
|
|
28
29
|
*/
|
|
29
|
-
export declare function convertEnums(enumerations:
|
|
30
|
+
export declare function convertEnums(enumerations: ParsedJDLEnum[]): JDLEnum[];
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
19
|
import JDLField from '../../models/jdl-field.js';
|
|
20
|
+
import { ParsedJDLEntityField } from './types.js';
|
|
20
21
|
declare const _default: {
|
|
21
22
|
convertField: typeof convertField;
|
|
22
23
|
};
|
|
@@ -26,4 +27,4 @@ export default _default;
|
|
|
26
27
|
* @param {Object} field - a parsed JDL field.
|
|
27
28
|
* @return the converted JDLField.
|
|
28
29
|
*/
|
|
29
|
-
export declare function convertField(field:
|
|
30
|
+
export declare function convertField(field: ParsedJDLEntityField): JDLField;
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
* See the License for the specific language governing permissions and
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
|
-
import
|
|
20
|
-
import
|
|
19
|
+
import { ParsedJDLOption, ParsedJDLUseOption } from './types.js';
|
|
20
|
+
import AbstractJDLOption from '../../models/abstract-jdl-option.js';
|
|
21
21
|
declare const _default: {
|
|
22
22
|
convertOptions: typeof convertOptions;
|
|
23
23
|
};
|
|
@@ -28,4 +28,4 @@ export default _default;
|
|
|
28
28
|
* @param {Array<Object>} useOptions - the parsed option object, using the use form.
|
|
29
29
|
* @returns {Array<JDLUnaryOption|JDLBinaryOption>} the converted JDLUnaryOption & JDLBinaryOption objects.
|
|
30
30
|
*/
|
|
31
|
-
export declare function convertOptions(parsedOptions:
|
|
31
|
+
export declare function convertOptions(parsedOptions: Record<string, ParsedJDLOption | Record<string, ParsedJDLOption>> | undefined, useOptions: ParsedJDLUseOption[]): AbstractJDLOption[];
|
package/dist/types/jdl/converters/parsed-jdl-to-jdl-object/parsed-jdl-to-jdl-object-converter.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import JDLObject from '../../models/jdl-object.js';
|
|
2
|
+
import { ParsedJDLRoot } from './types.js';
|
|
2
3
|
/**
|
|
3
4
|
* Converts the intermediate parsedContent to a JDLObject from a configuration object.
|
|
4
5
|
* @param {Object} configurationObject - The configuration object.
|
|
@@ -9,7 +10,7 @@ import JDLObject from '../../models/jdl-object.js';
|
|
|
9
10
|
* @param {String} configurationObject.databaseType - The application's database type
|
|
10
11
|
* @return the built JDL object.
|
|
11
12
|
*/
|
|
12
|
-
export declare function parseFromConfigurationObject(configurationObject:
|
|
13
|
+
export declare function parseFromConfigurationObject(configurationObject: ParsedJDLRoot): JDLObject;
|
|
13
14
|
declare const _default: {
|
|
14
15
|
parseFromConfigurationObject: typeof parseFromConfigurationObject;
|
|
15
16
|
};
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
19
|
import JDLRelationship from '../../models/jdl-relationship.js';
|
|
20
|
+
import { ParsedJDLAnnotation, ParsedJDLRelationship } from './types.js';
|
|
20
21
|
declare const _default: {
|
|
21
22
|
convertRelationships: typeof convertRelationships;
|
|
22
23
|
};
|
|
@@ -27,4 +28,4 @@ export default _default;
|
|
|
27
28
|
* @param {Function} annotationToOptionConverter - the function that can convert annotations to options.
|
|
28
29
|
* @return the converted JDL relationships.
|
|
29
30
|
*/
|
|
30
|
-
export declare function convertRelationships(parsedRelationships:
|
|
31
|
+
export declare function convertRelationships(parsedRelationships: ParsedJDLRelationship[], annotationToOptionConverter: (annotations: ParsedJDLAnnotation[]) => Record<string, boolean | string | number | string[] | boolean[] | number[]>): JDLRelationship[];
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2013-2024 the original author or authors from the JHipster project.
|
|
3
|
+
*
|
|
4
|
+
* This file is part of the JHipster project, see https://www.jhipster.tech/
|
|
5
|
+
* for more information.
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
19
|
+
import { RelationshipType } from '../../basic-types/relationships.js';
|
|
20
|
+
export type ParsedJDLAnnotation = {
|
|
21
|
+
optionName: string;
|
|
22
|
+
type: 'UNARY' | string;
|
|
23
|
+
optionValue?: boolean | string | number;
|
|
24
|
+
};
|
|
25
|
+
export type ParsedJDLValidation = {
|
|
26
|
+
key: string;
|
|
27
|
+
value?: string | number | RegExp | boolean;
|
|
28
|
+
constant?: boolean;
|
|
29
|
+
};
|
|
30
|
+
export type ParsedJDLEntityField = {
|
|
31
|
+
annotations?: ParsedJDLAnnotation[];
|
|
32
|
+
validations: ParsedJDLValidation[];
|
|
33
|
+
name: string;
|
|
34
|
+
type: string;
|
|
35
|
+
documentation?: string;
|
|
36
|
+
};
|
|
37
|
+
export type ParsedJDLEntity = {
|
|
38
|
+
name: string;
|
|
39
|
+
tableName?: string;
|
|
40
|
+
documentation?: string;
|
|
41
|
+
annotations?: ParsedJDLAnnotation[];
|
|
42
|
+
body?: ParsedJDLEntityField[];
|
|
43
|
+
};
|
|
44
|
+
export type ParsedJDLApplicationConfig = {
|
|
45
|
+
baseName: string;
|
|
46
|
+
} & Record<string, any>;
|
|
47
|
+
export type ParsedJDLEnumValue = {
|
|
48
|
+
key: string;
|
|
49
|
+
value?: string;
|
|
50
|
+
comment?: string;
|
|
51
|
+
};
|
|
52
|
+
export type ParsedJDLEnum = {
|
|
53
|
+
name: string;
|
|
54
|
+
values: ParsedJDLEnumValue[];
|
|
55
|
+
documentation?: string;
|
|
56
|
+
};
|
|
57
|
+
export type ParsedJDLOption = {
|
|
58
|
+
list: string[];
|
|
59
|
+
excluded: string[];
|
|
60
|
+
};
|
|
61
|
+
export type ParsedJDLUseOption = {
|
|
62
|
+
optionValues: string[];
|
|
63
|
+
} & ParsedJDLOption;
|
|
64
|
+
export type ParsedJDLApplication = {
|
|
65
|
+
config: ParsedJDLApplicationConfig;
|
|
66
|
+
namespaceConfigs?: Record<string, Record<string, boolean | number | string[] | string>>;
|
|
67
|
+
entities?: string[];
|
|
68
|
+
options?: Record<string, ParsedJDLOption | Record<string, ParsedJDLOption>>;
|
|
69
|
+
useOptions?: ParsedJDLUseOption[];
|
|
70
|
+
};
|
|
71
|
+
export type ParsedJDLDeployment = {
|
|
72
|
+
deploymentType: string;
|
|
73
|
+
appsFolders?: string[];
|
|
74
|
+
dockerRepositoryName?: string;
|
|
75
|
+
};
|
|
76
|
+
export type ParsedJDLRelationshipSide = {
|
|
77
|
+
name: string;
|
|
78
|
+
injectedField?: string;
|
|
79
|
+
required: boolean;
|
|
80
|
+
documentation?: string;
|
|
81
|
+
};
|
|
82
|
+
export type ParsedJDLRelationshipOption = {
|
|
83
|
+
global: ParsedJDLAnnotation[];
|
|
84
|
+
source: ParsedJDLAnnotation[];
|
|
85
|
+
destination: ParsedJDLAnnotation[];
|
|
86
|
+
};
|
|
87
|
+
export type ParsedJDLRelationship = {
|
|
88
|
+
from: ParsedJDLRelationshipSide;
|
|
89
|
+
to: ParsedJDLRelationshipSide;
|
|
90
|
+
cardinality: RelationshipType;
|
|
91
|
+
options: ParsedJDLRelationshipOption;
|
|
92
|
+
};
|
|
93
|
+
export type ParsedJDLApplications = {
|
|
94
|
+
applications: ParsedJDLApplication[];
|
|
95
|
+
entities: ParsedJDLEntity[];
|
|
96
|
+
relationships: ParsedJDLRelationship[];
|
|
97
|
+
deployments: ParsedJDLDeployment[];
|
|
98
|
+
enums: ParsedJDLEnum[];
|
|
99
|
+
constants: Record<string, string>;
|
|
100
|
+
options: Record<string, ParsedJDLOption | Record<string, ParsedJDLOption>>;
|
|
101
|
+
useOptions: ParsedJDLUseOption[];
|
|
102
|
+
};
|
|
103
|
+
export type ParsedJDLRoot = {
|
|
104
|
+
parsedContent: ParsedJDLApplications;
|
|
105
|
+
document?: ParsedJDLApplications;
|
|
106
|
+
entities?: ParsedJDLEntity[];
|
|
107
|
+
applicationType?: string;
|
|
108
|
+
applicationName?: string;
|
|
109
|
+
databaseType?: string;
|
|
110
|
+
};
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
19
|
import JDLValidation from '../../models/jdl-validation.js';
|
|
20
|
+
import { ParsedJDLValidation } from './types.js';
|
|
20
21
|
declare const _default: {
|
|
21
22
|
convertValidations: typeof convertValidations;
|
|
22
23
|
};
|
|
@@ -27,4 +28,4 @@ export default _default;
|
|
|
27
28
|
* @param constantValueGetter - the function to get a constant's value.
|
|
28
29
|
* @return the converted JDLValidations.
|
|
29
30
|
*/
|
|
30
|
-
export declare function convertValidations(validations:
|
|
31
|
+
export declare function convertValidations(validations: ParsedJDLValidation[], constantValueGetter?: (constant: string) => string | number | boolean | RegExp): JDLValidation[];
|
|
@@ -1,18 +1,106 @@
|
|
|
1
1
|
import { RelationshipType, RelationshipSide } from '../basic-types/relationships.js';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { GENERATOR_JHIPSTER } from '../../generators/index.js';
|
|
3
|
+
|
|
4
|
+
export type JSONField = {
|
|
5
|
+
fieldName: string;
|
|
6
|
+
fieldType: string;
|
|
7
|
+
documentation?: string;
|
|
8
|
+
options?: Record<string, boolean | string | number>;
|
|
9
|
+
fieldValidateRules?: string[];
|
|
6
10
|
} & Record<string, any>;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
|
|
12
|
+
export type JSONBlobField = {
|
|
13
|
+
fieldTypeBlobContent: 'image' | 'any' | 'text';
|
|
14
|
+
} & JSONField;
|
|
15
|
+
|
|
16
|
+
export type JSONFieldEnum = JSONField & {
|
|
17
|
+
fieldValues: string;
|
|
18
|
+
fieldTypeDocumentation?: string;
|
|
19
|
+
fieldValuesJavadocs?: Record<string, string>;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export type JSONFieldBlob = JSONField & {
|
|
23
|
+
fieldTypeBlobContent: string;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export type JSONRelationship = {
|
|
27
|
+
relationshipSide?: RelationshipSide;
|
|
28
|
+
relationshipName: string;
|
|
29
|
+
relationshipType: RelationshipType;
|
|
30
|
+
otherEntityName: string;
|
|
31
|
+
options?: Record<string, boolean | string | number>;
|
|
13
32
|
} & Record<string, any>;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
33
|
+
|
|
34
|
+
export type JSONEntity = {
|
|
35
|
+
documentation?: string;
|
|
36
|
+
fields?: JSONField[];
|
|
37
|
+
relationships?: JSONRelationship[];
|
|
18
38
|
} & Record<string, any>;
|
|
39
|
+
|
|
40
|
+
export type JSONBlueprint = {
|
|
41
|
+
name: string;
|
|
42
|
+
version?: string;
|
|
43
|
+
} & Record<string, any>;
|
|
44
|
+
|
|
45
|
+
export type JSONMicrofrontend = {
|
|
46
|
+
baseName: string;
|
|
47
|
+
};
|
|
48
|
+
export type JSONGeneratorJhipsterContentDeployment = {
|
|
49
|
+
appsFolders?: string[];
|
|
50
|
+
clusteredDbApps?: string[];
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export type AbstractJSONGeneratorJhipsterContent = {
|
|
54
|
+
baseName: string;
|
|
55
|
+
applicationType?: string;
|
|
56
|
+
entities?: string[];
|
|
57
|
+
jhipsterVersion?: string;
|
|
58
|
+
packageName?: string;
|
|
59
|
+
packageFolder?: string;
|
|
60
|
+
serverPort?: string;
|
|
61
|
+
authenticationType?: string;
|
|
62
|
+
buildTool?: string;
|
|
63
|
+
cacheProvider?: string;
|
|
64
|
+
clientPackageManager?: string;
|
|
65
|
+
creationTimestamp?: number;
|
|
66
|
+
databaseType?: string;
|
|
67
|
+
devDatabaseType?: string;
|
|
68
|
+
enableHibernateCache?: boolean;
|
|
69
|
+
enableTranslation?: boolean;
|
|
70
|
+
jhiPrefix?: string;
|
|
71
|
+
jwtSecretKey?: string;
|
|
72
|
+
languages?: string[];
|
|
73
|
+
messageBroker?: string;
|
|
74
|
+
nativeLanguage?: string;
|
|
75
|
+
prodDatabaseType?: string;
|
|
76
|
+
searchEngine?: string;
|
|
77
|
+
serviceDiscoveryType?: string;
|
|
78
|
+
skipClient?: boolean;
|
|
79
|
+
skipUserManagement?: boolean;
|
|
80
|
+
testFrameworks?: string[];
|
|
81
|
+
websocket?: string;
|
|
82
|
+
} & JSONGeneratorJhipsterContentDeployment &
|
|
83
|
+
Record<string, any>;
|
|
84
|
+
|
|
85
|
+
export type JSONGeneratorJhipsterContent = {
|
|
86
|
+
promptValues?: Partial<JSONGeneratorJhipsterContent>;
|
|
87
|
+
blueprints?: JSONBlueprint[] | null;
|
|
88
|
+
microfrontends?: JSONMicrofrontend[] | null;
|
|
89
|
+
} & AbstractJSONGeneratorJhipsterContent;
|
|
90
|
+
|
|
91
|
+
export type PostProcessedJSONGeneratorJhipsterContent = {
|
|
92
|
+
blueprints?: string[];
|
|
93
|
+
microfrontends?: string[];
|
|
94
|
+
} & AbstractJSONGeneratorJhipsterContent;
|
|
95
|
+
|
|
96
|
+
export type PostProcessedJSONRootObject = {
|
|
97
|
+
[GENERATOR_JHIPSTER]: PostProcessedJSONGeneratorJhipsterContent;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export type JHipsterYoRcContent = {
|
|
101
|
+
[GENERATOR_JHIPSTER]: JSONGeneratorJhipsterContent;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export type JHipsterYoRcContentWrapper = {
|
|
105
|
+
application?: PostProcessedJSONRootObject | JHipsterYoRcContent;
|
|
106
|
+
};
|