@baseplate-dev/project-builder-lib 0.1.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/LICENSE +390 -0
- package/dist/compiler/admin-crud-input-spec.d.ts +26 -0
- package/dist/compiler/admin-crud-input-spec.d.ts.map +1 -0
- package/dist/compiler/admin-crud-input-spec.js +29 -0
- package/dist/compiler/admin-crud-input-spec.js.map +1 -0
- package/dist/compiler/app-compiler-spec.d.ts +36 -0
- package/dist/compiler/app-compiler-spec.d.ts.map +1 -0
- package/dist/compiler/app-compiler-spec.js +42 -0
- package/dist/compiler/app-compiler-spec.js.map +1 -0
- package/dist/compiler/index.d.ts +5 -0
- package/dist/compiler/index.d.ts.map +1 -0
- package/dist/compiler/index.js +4 -0
- package/dist/compiler/index.js.map +1 -0
- package/dist/compiler/model-transformer-compiler-spec.d.ts +25 -0
- package/dist/compiler/model-transformer-compiler-spec.d.ts.map +1 -0
- package/dist/compiler/model-transformer-compiler-spec.js +29 -0
- package/dist/compiler/model-transformer-compiler-spec.js.map +1 -0
- package/dist/compiler/types.d.ts +2 -0
- package/dist/compiler/types.d.ts.map +1 -0
- package/dist/compiler/types.js +2 -0
- package/dist/compiler/types.js.map +1 -0
- package/dist/constants/colors.d.ts +294 -0
- package/dist/constants/colors.d.ts.map +1 -0
- package/dist/constants/colors.js +307 -0
- package/dist/constants/colors.js.map +1 -0
- package/dist/constants/index.d.ts +3 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/constants/index.js +3 -0
- package/dist/constants/index.js.map +1 -0
- package/dist/constants/theme-colors.d.ts +397 -0
- package/dist/constants/theme-colors.d.ts.map +1 -0
- package/dist/constants/theme-colors.js +247 -0
- package/dist/constants/theme-colors.js.map +1 -0
- package/dist/definition/apps/app-utils.d.ts +11 -0
- package/dist/definition/apps/app-utils.d.ts.map +1 -0
- package/dist/definition/apps/app-utils.js +30 -0
- package/dist/definition/apps/app-utils.js.map +1 -0
- package/dist/definition/feature/feature-utils.d.ts +27 -0
- package/dist/definition/feature/feature-utils.d.ts.map +1 -0
- package/dist/definition/feature/feature-utils.js +81 -0
- package/dist/definition/feature/feature-utils.js.map +1 -0
- package/dist/definition/index.d.ts +10 -0
- package/dist/definition/index.d.ts.map +1 -0
- package/dist/definition/index.js +10 -0
- package/dist/definition/index.js.map +1 -0
- package/dist/definition/model/enum-utils.d.ts +9 -0
- package/dist/definition/model/enum-utils.d.ts.map +1 -0
- package/dist/definition/model/enum-utils.js +15 -0
- package/dist/definition/model/enum-utils.js.map +1 -0
- package/dist/definition/model/model-field-utils.d.ts +17 -0
- package/dist/definition/model/model-field-utils.d.ts.map +1 -0
- package/dist/definition/model/model-field-utils.js +85 -0
- package/dist/definition/model/model-field-utils.js.map +1 -0
- package/dist/definition/model/model-transformer-utils.d.ts +11 -0
- package/dist/definition/model/model-transformer-utils.d.ts.map +1 -0
- package/dist/definition/model/model-transformer-utils.js +13 -0
- package/dist/definition/model/model-transformer-utils.js.map +1 -0
- package/dist/definition/model/model-utils.d.ts +32 -0
- package/dist/definition/model/model-utils.d.ts.map +1 -0
- package/dist/definition/model/model-utils.js +59 -0
- package/dist/definition/model/model-utils.js.map +1 -0
- package/dist/definition/plugins/index.d.ts +2 -0
- package/dist/definition/plugins/index.d.ts.map +1 -0
- package/dist/definition/plugins/index.js +2 -0
- package/dist/definition/plugins/index.js.map +1 -0
- package/dist/definition/plugins/plugin-utils.d.ts +14 -0
- package/dist/definition/plugins/plugin-utils.d.ts.map +1 -0
- package/dist/definition/plugins/plugin-utils.js +44 -0
- package/dist/definition/plugins/plugin-utils.js.map +1 -0
- package/dist/definition/project-definition-container.d.ts +65 -0
- package/dist/definition/project-definition-container.d.ts.map +1 -0
- package/dist/definition/project-definition-container.js +118 -0
- package/dist/definition/project-definition-container.js.map +1 -0
- package/dist/definition/project-definition-container.test-helper.d.ts +5 -0
- package/dist/definition/project-definition-container.test-helper.d.ts.map +1 -0
- package/dist/definition/project-definition-container.test-helper.js +36 -0
- package/dist/definition/project-definition-container.test-helper.js.map +1 -0
- package/dist/feature-flags/flags.d.ts +3 -0
- package/dist/feature-flags/flags.d.ts.map +1 -0
- package/dist/feature-flags/flags.js +2 -0
- package/dist/feature-flags/flags.js.map +1 -0
- package/dist/feature-flags/index.d.ts +2 -0
- package/dist/feature-flags/index.d.ts.map +1 -0
- package/dist/feature-flags/index.js +2 -0
- package/dist/feature-flags/index.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -0
- package/dist/migrations/index.d.ts +15 -0
- package/dist/migrations/index.d.ts.map +1 -0
- package/dist/migrations/index.js +68 -0
- package/dist/migrations/index.js.map +1 -0
- package/dist/migrations/migration-005-primaryUniqueRefs.d.ts +37 -0
- package/dist/migrations/migration-005-primaryUniqueRefs.d.ts.map +1 -0
- package/dist/migrations/migration-005-primaryUniqueRefs.js +40 -0
- package/dist/migrations/migration-005-primaryUniqueRefs.js.map +1 -0
- package/dist/migrations/migration-006-individual-service-controllers.d.ts +42 -0
- package/dist/migrations/migration-006-individual-service-controllers.d.ts.map +1 -0
- package/dist/migrations/migration-006-individual-service-controllers.js +31 -0
- package/dist/migrations/migration-006-individual-service-controllers.js.map +1 -0
- package/dist/migrations/migration-007-model-graphql.d.ts +59 -0
- package/dist/migrations/migration-007-model-graphql.d.ts.map +1 -0
- package/dist/migrations/migration-007-model-graphql.js +62 -0
- package/dist/migrations/migration-007-model-graphql.js.map +1 -0
- package/dist/migrations/migration-008-anonymous-public-role.d.ts +22 -0
- package/dist/migrations/migration-008-anonymous-public-role.d.ts.map +1 -0
- package/dist/migrations/migration-008-anonymous-public-role.js +52 -0
- package/dist/migrations/migration-008-anonymous-public-role.js.map +1 -0
- package/dist/migrations/migration-009-rename-refs.d.ts +2 -0
- package/dist/migrations/migration-009-rename-refs.d.ts.map +1 -0
- package/dist/migrations/migration-009-rename-refs.js +59 -0
- package/dist/migrations/migration-009-rename-refs.js.map +1 -0
- package/dist/migrations/migration-010-hex-to-oklch.d.ts +2 -0
- package/dist/migrations/migration-010-hex-to-oklch.d.ts.map +1 -0
- package/dist/migrations/migration-010-hex-to-oklch.js +24 -0
- package/dist/migrations/migration-010-hex-to-oklch.js.map +1 -0
- package/dist/migrations/migration-011-plugin-id.d.ts +2 -0
- package/dist/migrations/migration-011-plugin-id.d.ts.map +1 -0
- package/dist/migrations/migration-011-plugin-id.js +10 -0
- package/dist/migrations/migration-011-plugin-id.js.map +1 -0
- package/dist/migrations/migration-012-migrate-auth-config.d.ts +36 -0
- package/dist/migrations/migration-012-migrate-auth-config.d.ts.map +1 -0
- package/dist/migrations/migration-012-migrate-auth-config.js +48 -0
- package/dist/migrations/migration-012-migrate-auth-config.js.map +1 -0
- package/dist/migrations/migration-013-move-general-settings.d.ts +38 -0
- package/dist/migrations/migration-013-move-general-settings.d.ts.map +1 -0
- package/dist/migrations/migration-013-move-general-settings.js +22 -0
- package/dist/migrations/migration-013-move-general-settings.js.map +1 -0
- package/dist/migrations/migration-014-migrate-plugin-ids.d.ts +21 -0
- package/dist/migrations/migration-014-migrate-plugin-ids.d.ts.map +1 -0
- package/dist/migrations/migration-014-migrate-plugin-ids.js +32 -0
- package/dist/migrations/migration-014-migrate-plugin-ids.js.map +1 -0
- package/dist/migrations/transform-json-path.d.ts +13 -0
- package/dist/migrations/transform-json-path.d.ts.map +1 -0
- package/dist/migrations/transform-json-path.js +66 -0
- package/dist/migrations/transform-json-path.js.map +1 -0
- package/dist/migrations/types.d.ts +29 -0
- package/dist/migrations/types.d.ts.map +1 -0
- package/dist/migrations/types.js +4 -0
- package/dist/migrations/types.js.map +1 -0
- package/dist/migrations/utils.d.ts +3 -0
- package/dist/migrations/utils.d.ts.map +1 -0
- package/dist/migrations/utils.js +10 -0
- package/dist/migrations/utils.js.map +1 -0
- package/dist/parser/index.d.ts +3 -0
- package/dist/parser/index.d.ts.map +1 -0
- package/dist/parser/index.js +2 -0
- package/dist/parser/index.js.map +1 -0
- package/dist/parser/parser.d.ts +35 -0
- package/dist/parser/parser.d.ts.map +1 -0
- package/dist/parser/parser.js +84 -0
- package/dist/parser/parser.js.map +1 -0
- package/dist/parser/types.d.ts +8 -0
- package/dist/parser/types.d.ts.map +1 -0
- package/dist/parser/types.js +2 -0
- package/dist/parser/types.js.map +1 -0
- package/dist/plugin-tools/index.d.ts +2 -0
- package/dist/plugin-tools/index.d.ts.map +1 -0
- package/dist/plugin-tools/index.js +2 -0
- package/dist/plugin-tools/index.js.map +1 -0
- package/dist/plugin-tools/plugin-loader.d.ts +16 -0
- package/dist/plugin-tools/plugin-loader.d.ts.map +1 -0
- package/dist/plugin-tools/plugin-loader.js +166 -0
- package/dist/plugin-tools/plugin-loader.js.map +1 -0
- package/dist/plugins/imports/index.d.ts +3 -0
- package/dist/plugins/imports/index.d.ts.map +1 -0
- package/dist/plugins/imports/index.js +3 -0
- package/dist/plugins/imports/index.js.map +1 -0
- package/dist/plugins/imports/loader.d.ts +23 -0
- package/dist/plugins/imports/loader.d.ts.map +1 -0
- package/dist/plugins/imports/loader.js +81 -0
- package/dist/plugins/imports/loader.js.map +1 -0
- package/dist/plugins/imports/types.d.ts +27 -0
- package/dist/plugins/imports/types.d.ts.map +1 -0
- package/dist/plugins/imports/types.js +4 -0
- package/dist/plugins/imports/types.js.map +1 -0
- package/dist/plugins/index.d.ts +7 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/index.js +7 -0
- package/dist/plugins/index.js.map +1 -0
- package/dist/plugins/manifest/manifest.d.ts +13 -0
- package/dist/plugins/manifest/manifest.d.ts.map +1 -0
- package/dist/plugins/manifest/manifest.js +6 -0
- package/dist/plugins/manifest/manifest.js.map +1 -0
- package/dist/plugins/metadata/index.d.ts +2 -0
- package/dist/plugins/metadata/index.d.ts.map +1 -0
- package/dist/plugins/metadata/index.js +2 -0
- package/dist/plugins/metadata/index.js.map +1 -0
- package/dist/plugins/metadata/types.d.ts +163 -0
- package/dist/plugins/metadata/types.d.ts.map +1 -0
- package/dist/plugins/metadata/types.js +59 -0
- package/dist/plugins/metadata/types.js.map +1 -0
- package/dist/plugins/migrations/index.d.ts +2 -0
- package/dist/plugins/migrations/index.d.ts.map +1 -0
- package/dist/plugins/migrations/index.js +2 -0
- package/dist/plugins/migrations/index.js.map +1 -0
- package/dist/plugins/migrations/run-migrations.d.ts +4 -0
- package/dist/plugins/migrations/run-migrations.d.ts.map +1 -0
- package/dist/plugins/migrations/run-migrations.js +30 -0
- package/dist/plugins/migrations/run-migrations.js.map +1 -0
- package/dist/plugins/schema/common.d.ts +6 -0
- package/dist/plugins/schema/common.d.ts.map +1 -0
- package/dist/plugins/schema/common.js +2 -0
- package/dist/plugins/schema/common.js.map +1 -0
- package/dist/plugins/schema/index.d.ts +4 -0
- package/dist/plugins/schema/index.d.ts.map +1 -0
- package/dist/plugins/schema/index.js +4 -0
- package/dist/plugins/schema/index.js.map +1 -0
- package/dist/plugins/schema/parser.d.ts +19 -0
- package/dist/plugins/schema/parser.d.ts.map +1 -0
- package/dist/plugins/schema/parser.js +41 -0
- package/dist/plugins/schema/parser.js.map +1 -0
- package/dist/plugins/schema/store.d.ts +8 -0
- package/dist/plugins/schema/store.d.ts.map +1 -0
- package/dist/plugins/schema/store.js +21 -0
- package/dist/plugins/schema/store.js.map +1 -0
- package/dist/plugins/schema/zod-with-plugins.d.ts +12 -0
- package/dist/plugins/schema/zod-with-plugins.d.ts.map +1 -0
- package/dist/plugins/schema/zod-with-plugins.js +26 -0
- package/dist/plugins/schema/zod-with-plugins.js.map +1 -0
- package/dist/plugins/spec/auth-config-spec.d.ts +21 -0
- package/dist/plugins/spec/auth-config-spec.d.ts.map +1 -0
- package/dist/plugins/spec/auth-config-spec.js +6 -0
- package/dist/plugins/spec/auth-config-spec.js.map +1 -0
- package/dist/plugins/spec/config-spec.d.ts +31 -0
- package/dist/plugins/spec/config-spec.d.ts.map +1 -0
- package/dist/plugins/spec/config-spec.js +58 -0
- package/dist/plugins/spec/config-spec.js.map +1 -0
- package/dist/plugins/spec/index.d.ts +5 -0
- package/dist/plugins/spec/index.d.ts.map +1 -0
- package/dist/plugins/spec/index.js +5 -0
- package/dist/plugins/spec/index.js.map +1 -0
- package/dist/plugins/spec/types.d.ts +29 -0
- package/dist/plugins/spec/types.d.ts.map +1 -0
- package/dist/plugins/spec/types.js +17 -0
- package/dist/plugins/spec/types.js.map +1 -0
- package/dist/plugins/spec/web-config-spec.d.ts +22 -0
- package/dist/plugins/spec/web-config-spec.d.ts.map +1 -0
- package/dist/plugins/spec/web-config-spec.js +23 -0
- package/dist/plugins/spec/web-config-spec.js.map +1 -0
- package/dist/references/deserialize-schema.d.ts +4 -0
- package/dist/references/deserialize-schema.d.ts.map +1 -0
- package/dist/references/deserialize-schema.js +68 -0
- package/dist/references/deserialize-schema.js.map +1 -0
- package/dist/references/fix-ref-deletions.d.ts +22 -0
- package/dist/references/fix-ref-deletions.d.ts.map +1 -0
- package/dist/references/fix-ref-deletions.js +99 -0
- package/dist/references/fix-ref-deletions.js.map +1 -0
- package/dist/references/index.d.ts +6 -0
- package/dist/references/index.d.ts.map +1 -0
- package/dist/references/index.js +6 -0
- package/dist/references/index.js.map +1 -0
- package/dist/references/parse-schema-with-references.d.ts +14 -0
- package/dist/references/parse-schema-with-references.d.ts.map +1 -0
- package/dist/references/parse-schema-with-references.js +16 -0
- package/dist/references/parse-schema-with-references.js.map +1 -0
- package/dist/references/ref-builder.d.ts +346 -0
- package/dist/references/ref-builder.d.ts.map +1 -0
- package/dist/references/ref-builder.js +494 -0
- package/dist/references/ref-builder.js.map +1 -0
- package/dist/references/resolve-zod-ref-payload-names.d.ts +26 -0
- package/dist/references/resolve-zod-ref-payload-names.d.ts.map +1 -0
- package/dist/references/resolve-zod-ref-payload-names.js +52 -0
- package/dist/references/resolve-zod-ref-payload-names.js.map +1 -0
- package/dist/references/serialize-schema.d.ts +5 -0
- package/dist/references/serialize-schema.d.ts.map +1 -0
- package/dist/references/serialize-schema.js +22 -0
- package/dist/references/serialize-schema.js.map +1 -0
- package/dist/references/types.d.ts +126 -0
- package/dist/references/types.d.ts.map +1 -0
- package/dist/references/types.js +59 -0
- package/dist/references/types.js.map +1 -0
- package/dist/schema/apps/admin/app.d.ts +1144 -0
- package/dist/schema/apps/admin/app.d.ts.map +1 -0
- package/dist/schema/apps/admin/app.js +27 -0
- package/dist/schema/apps/admin/app.js.map +1 -0
- package/dist/schema/apps/admin/index.d.ts +3 -0
- package/dist/schema/apps/admin/index.d.ts.map +1 -0
- package/dist/schema/apps/admin/index.js +3 -0
- package/dist/schema/apps/admin/index.js.map +1 -0
- package/dist/schema/apps/admin/sections/base.d.ts +9 -0
- package/dist/schema/apps/admin/sections/base.d.ts.map +1 -0
- package/dist/schema/apps/admin/sections/base.js +15 -0
- package/dist/schema/apps/admin/sections/base.js.map +1 -0
- package/dist/schema/apps/admin/sections/crud-form/admin-crud-input.d.ts +11 -0
- package/dist/schema/apps/admin/sections/crud-form/admin-crud-input.d.ts.map +1 -0
- package/dist/schema/apps/admin/sections/crud-form/admin-crud-input.js +11 -0
- package/dist/schema/apps/admin/sections/crud-form/admin-crud-input.js.map +1 -0
- package/dist/schema/apps/admin/sections/crud-form/admin-input-spec.d.ts +17 -0
- package/dist/schema/apps/admin/sections/crud-form/admin-input-spec.d.ts.map +1 -0
- package/dist/schema/apps/admin/sections/crud-form/admin-input-spec.js +30 -0
- package/dist/schema/apps/admin/sections/crud-form/admin-input-spec.js.map +1 -0
- package/dist/schema/apps/admin/sections/crud-form/built-in-input.d.ts +138 -0
- package/dist/schema/apps/admin/sections/crud-form/built-in-input.d.ts.map +1 -0
- package/dist/schema/apps/admin/sections/crud-form/built-in-input.js +101 -0
- package/dist/schema/apps/admin/sections/crud-form/built-in-input.js.map +1 -0
- package/dist/schema/apps/admin/sections/crud-form/index.d.ts +5 -0
- package/dist/schema/apps/admin/sections/crud-form/index.d.ts.map +1 -0
- package/dist/schema/apps/admin/sections/crud-form/index.js +5 -0
- package/dist/schema/apps/admin/sections/crud-form/index.js.map +1 -0
- package/dist/schema/apps/admin/sections/crud-form/types.d.ts +19 -0
- package/dist/schema/apps/admin/sections/crud-form/types.d.ts.map +1 -0
- package/dist/schema/apps/admin/sections/crud-form/types.js +14 -0
- package/dist/schema/apps/admin/sections/crud-form/types.js.map +1 -0
- package/dist/schema/apps/admin/sections/crud.d.ts +988 -0
- package/dist/schema/apps/admin/sections/crud.d.ts.map +1 -0
- package/dist/schema/apps/admin/sections/crud.js +101 -0
- package/dist/schema/apps/admin/sections/crud.js.map +1 -0
- package/dist/schema/apps/admin/sections/index.d.ts +5 -0
- package/dist/schema/apps/admin/sections/index.d.ts.map +1 -0
- package/dist/schema/apps/admin/sections/index.js +5 -0
- package/dist/schema/apps/admin/sections/index.js.map +1 -0
- package/dist/schema/apps/admin/sections/types.d.ts +2 -0
- package/dist/schema/apps/admin/sections/types.d.ts.map +1 -0
- package/dist/schema/apps/admin/sections/types.js +6 -0
- package/dist/schema/apps/admin/sections/types.js.map +1 -0
- package/dist/schema/apps/backend/index.d.ts +49 -0
- package/dist/schema/apps/backend/index.d.ts.map +1 -0
- package/dist/schema/apps/backend/index.js +15 -0
- package/dist/schema/apps/backend/index.js.map +1 -0
- package/dist/schema/apps/base.d.ts +25 -0
- package/dist/schema/apps/base.d.ts.map +1 -0
- package/dist/schema/apps/base.js +16 -0
- package/dist/schema/apps/base.js.map +1 -0
- package/dist/schema/apps/index.d.ts +6 -0
- package/dist/schema/apps/index.d.ts.map +1 -0
- package/dist/schema/apps/index.js +6 -0
- package/dist/schema/apps/index.js.map +1 -0
- package/dist/schema/apps/types.d.ts +6 -0
- package/dist/schema/apps/types.d.ts.map +1 -0
- package/dist/schema/apps/types.js +6 -0
- package/dist/schema/apps/types.js.map +1 -0
- package/dist/schema/apps/web/index.d.ts +49 -0
- package/dist/schema/apps/web/index.d.ts.map +1 -0
- package/dist/schema/apps/web/index.js +22 -0
- package/dist/schema/apps/web/index.js.map +1 -0
- package/dist/schema/auth/index.d.ts +2 -0
- package/dist/schema/auth/index.d.ts.map +1 -0
- package/dist/schema/auth/index.js +3 -0
- package/dist/schema/auth/index.js.map +1 -0
- package/dist/schema/creator/index.d.ts +2 -0
- package/dist/schema/creator/index.d.ts.map +1 -0
- package/dist/schema/creator/index.js +2 -0
- package/dist/schema/creator/index.js.map +1 -0
- package/dist/schema/creator/schema-creator.d.ts +4 -0
- package/dist/schema/creator/schema-creator.d.ts.map +1 -0
- package/dist/schema/creator/schema-creator.js +4 -0
- package/dist/schema/creator/schema-creator.js.map +1 -0
- package/dist/schema/creator/types.d.ts +14 -0
- package/dist/schema/creator/types.d.ts.map +1 -0
- package/dist/schema/creator/types.js +2 -0
- package/dist/schema/creator/types.js.map +1 -0
- package/dist/schema/features/feature.d.ts +33 -0
- package/dist/schema/features/feature.d.ts.map +1 -0
- package/dist/schema/features/feature.js +21 -0
- package/dist/schema/features/feature.js.map +1 -0
- package/dist/schema/features/index.d.ts +3 -0
- package/dist/schema/features/index.d.ts.map +1 -0
- package/dist/schema/features/index.js +3 -0
- package/dist/schema/features/index.js.map +1 -0
- package/dist/schema/features/theme.d.ts +208 -0
- package/dist/schema/features/theme.d.ts.map +1 -0
- package/dist/schema/features/theme.js +34 -0
- package/dist/schema/features/theme.js.map +1 -0
- package/dist/schema/index.d.ts +11 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/index.js +11 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/schema/models/enums.d.ts +97 -0
- package/dist/schema/models/enums.d.ts.map +1 -0
- package/dist/schema/models/enums.js +25 -0
- package/dist/schema/models/enums.js.map +1 -0
- package/dist/schema/models/graphql.d.ts +181 -0
- package/dist/schema/models/graphql.d.ts.map +1 -0
- package/dist/schema/models/graphql.js +96 -0
- package/dist/schema/models/graphql.js.map +1 -0
- package/dist/schema/models/index.d.ts +1692 -0
- package/dist/schema/models/index.d.ts.map +1 -0
- package/dist/schema/models/index.js +220 -0
- package/dist/schema/models/index.js.map +1 -0
- package/dist/schema/models/mocks.d.ts +6 -0
- package/dist/schema/models/mocks.d.ts.map +1 -0
- package/dist/schema/models/mocks.js +55 -0
- package/dist/schema/models/mocks.js.map +1 -0
- package/dist/schema/models/transformers/built-in-transformers.d.ts +71 -0
- package/dist/schema/models/transformers/built-in-transformers.d.ts.map +1 -0
- package/dist/schema/models/transformers/built-in-transformers.js +59 -0
- package/dist/schema/models/transformers/built-in-transformers.js.map +1 -0
- package/dist/schema/models/transformers/index.d.ts +5 -0
- package/dist/schema/models/transformers/index.d.ts.map +1 -0
- package/dist/schema/models/transformers/index.js +5 -0
- package/dist/schema/models/transformers/index.js.map +1 -0
- package/dist/schema/models/transformers/model-transformer-spec.d.ts +17 -0
- package/dist/schema/models/transformers/model-transformer-spec.d.ts.map +1 -0
- package/dist/schema/models/transformers/model-transformer-spec.js +40 -0
- package/dist/schema/models/transformers/model-transformer-spec.js.map +1 -0
- package/dist/schema/models/transformers/transformers.d.ts +11 -0
- package/dist/schema/models/transformers/transformers.d.ts.map +1 -0
- package/dist/schema/models/transformers/transformers.js +11 -0
- package/dist/schema/models/transformers/transformers.js.map +1 -0
- package/dist/schema/models/transformers/types.d.ts +23 -0
- package/dist/schema/models/transformers/types.d.ts.map +1 -0
- package/dist/schema/models/transformers/types.js +12 -0
- package/dist/schema/models/transformers/types.js.map +1 -0
- package/dist/schema/models/types.d.ts +9 -0
- package/dist/schema/models/types.d.ts.map +1 -0
- package/dist/schema/models/types.js +14 -0
- package/dist/schema/models/types.js.map +1 -0
- package/dist/schema/plugins/definition.d.ts +128 -0
- package/dist/schema/plugins/definition.d.ts.map +1 -0
- package/dist/schema/plugins/definition.js +28 -0
- package/dist/schema/plugins/definition.js.map +1 -0
- package/dist/schema/plugins/entity-types.d.ts +2 -0
- package/dist/schema/plugins/entity-types.d.ts.map +1 -0
- package/dist/schema/plugins/entity-types.js +3 -0
- package/dist/schema/plugins/entity-types.js.map +1 -0
- package/dist/schema/plugins/index.d.ts +3 -0
- package/dist/schema/plugins/index.d.ts.map +1 -0
- package/dist/schema/plugins/index.js +3 -0
- package/dist/schema/plugins/index.js.map +1 -0
- package/dist/schema/project-definition.d.ts +2877 -0
- package/dist/schema/project-definition.d.ts.map +1 -0
- package/dist/schema/project-definition.js +34 -0
- package/dist/schema/project-definition.js.map +1 -0
- package/dist/schema/settings.d.ts +228 -0
- package/dist/schema/settings.d.ts.map +1 -0
- package/dist/schema/settings.js +32 -0
- package/dist/schema/settings.js.map +1 -0
- package/dist/schema/template-extractor/index.d.ts +25 -0
- package/dist/schema/template-extractor/index.d.ts.map +1 -0
- package/dist/schema/template-extractor/index.js +18 -0
- package/dist/schema/template-extractor/index.js.map +1 -0
- package/dist/schema/utils/validation.d.ts +8 -0
- package/dist/schema/utils/validation.d.ts.map +1 -0
- package/dist/schema/utils/validation.js +18 -0
- package/dist/schema/utils/validation.js.map +1 -0
- package/dist/tools/index.d.ts +2 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +2 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/model-merger/index.d.ts +2 -0
- package/dist/tools/model-merger/index.d.ts.map +1 -0
- package/dist/tools/model-merger/index.js +2 -0
- package/dist/tools/model-merger/index.js.map +1 -0
- package/dist/tools/model-merger/model-merger.d.ts +376 -0
- package/dist/tools/model-merger/model-merger.d.ts.map +1 -0
- package/dist/tools/model-merger/model-merger.js +229 -0
- package/dist/tools/model-merger/model-merger.js.map +1 -0
- package/dist/types/field-types.d.ts +3 -0
- package/dist/types/field-types.d.ts.map +1 -0
- package/dist/types/field-types.js +13 -0
- package/dist/types/field-types.js.map +1 -0
- package/dist/types/files.d.ts +8 -0
- package/dist/types/files.d.ts.map +1 -0
- package/dist/types/files.js +2 -0
- package/dist/types/files.js.map +1 -0
- package/dist/utils/color-conversions.d.ts +20 -0
- package/dist/utils/color-conversions.d.ts.map +1 -0
- package/dist/utils/color-conversions.js +38 -0
- package/dist/utils/color-conversions.js.map +1 -0
- package/dist/utils/color-names.d.ts +18 -0
- package/dist/utils/color-names.d.ts.map +1 -0
- package/dist/utils/color-names.js +54 -0
- package/dist/utils/color-names.js.map +1 -0
- package/dist/utils/definition-diff/definition-diff.d.ts +68 -0
- package/dist/utils/definition-diff/definition-diff.d.ts.map +1 -0
- package/dist/utils/definition-diff/definition-diff.js +149 -0
- package/dist/utils/definition-diff/definition-diff.js.map +1 -0
- package/dist/utils/definition-diff/index.d.ts +2 -0
- package/dist/utils/definition-diff/index.d.ts.map +1 -0
- package/dist/utils/definition-diff/index.js +2 -0
- package/dist/utils/definition-diff/index.js.map +1 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +6 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/path.d.ts +5 -0
- package/dist/utils/path.d.ts.map +1 -0
- package/dist/utils/path.js +27 -0
- package/dist/utils/path.js.map +1 -0
- package/dist/utils/strip.d.ts +18 -0
- package/dist/utils/strip.d.ts.map +1 -0
- package/dist/utils/strip.js +37 -0
- package/dist/utils/strip.js.map +1 -0
- package/dist/utils/theme.d.ts +10 -0
- package/dist/utils/theme.d.ts.map +1 -0
- package/dist/utils/theme.js +58 -0
- package/dist/utils/theme.js.map +1 -0
- package/dist/web/components/FeatureComboboxField.d.ts +17 -0
- package/dist/web/components/FeatureComboboxField.d.ts.map +1 -0
- package/dist/web/components/FeatureComboboxField.js +38 -0
- package/dist/web/components/FeatureComboboxField.js.map +1 -0
- package/dist/web/components/ModelComboboxField.d.ts +17 -0
- package/dist/web/components/ModelComboboxField.d.ts.map +1 -0
- package/dist/web/components/ModelComboboxField.js +38 -0
- package/dist/web/components/ModelComboboxField.js.map +1 -0
- package/dist/web/components/ModelMergerResultAlert.d.ts +8 -0
- package/dist/web/components/ModelMergerResultAlert.d.ts.map +1 -0
- package/dist/web/components/ModelMergerResultAlert.js +10 -0
- package/dist/web/components/ModelMergerResultAlert.js.map +1 -0
- package/dist/web/components/index.d.ts +4 -0
- package/dist/web/components/index.d.ts.map +1 -0
- package/dist/web/components/index.js +4 -0
- package/dist/web/components/index.js.map +1 -0
- package/dist/web/contexts/error-handler.d.ts +7 -0
- package/dist/web/contexts/error-handler.d.ts.map +1 -0
- package/dist/web/contexts/error-handler.js +3 -0
- package/dist/web/contexts/error-handler.js.map +1 -0
- package/dist/web/contexts/index.d.ts +2 -0
- package/dist/web/contexts/index.d.ts.map +1 -0
- package/dist/web/contexts/index.js +2 -0
- package/dist/web/contexts/index.js.map +1 -0
- package/dist/web/hooks/index.d.ts +8 -0
- package/dist/web/hooks/index.d.ts.map +1 -0
- package/dist/web/hooks/index.js +8 -0
- package/dist/web/hooks/index.js.map +1 -0
- package/dist/web/hooks/useBlockDirtyFormNavigate.d.ts +3 -0
- package/dist/web/hooks/useBlockDirtyFormNavigate.d.ts.map +1 -0
- package/dist/web/hooks/useBlockDirtyFormNavigate.js +14 -0
- package/dist/web/hooks/useBlockDirtyFormNavigate.js.map +1 -0
- package/dist/web/hooks/useBlockUnsavedChangesNavigate.d.ts +7 -0
- package/dist/web/hooks/useBlockUnsavedChangesNavigate.d.ts.map +1 -0
- package/dist/web/hooks/useBlockUnsavedChangesNavigate.js +47 -0
- package/dist/web/hooks/useBlockUnsavedChangesNavigate.js.map +1 -0
- package/dist/web/hooks/useBlockerDialog.d.ts +44 -0
- package/dist/web/hooks/useBlockerDialog.d.ts.map +1 -0
- package/dist/web/hooks/useBlockerDialog.js +77 -0
- package/dist/web/hooks/useBlockerDialog.js.map +1 -0
- package/dist/web/hooks/useErrorHandler.d.ts +3 -0
- package/dist/web/hooks/useErrorHandler.d.ts.map +1 -0
- package/dist/web/hooks/useErrorHandler.js +10 -0
- package/dist/web/hooks/useErrorHandler.js.map +1 -0
- package/dist/web/hooks/usePluginEnhancedSchema.d.ts +4 -0
- package/dist/web/hooks/usePluginEnhancedSchema.d.ts.map +1 -0
- package/dist/web/hooks/usePluginEnhancedSchema.js +8 -0
- package/dist/web/hooks/usePluginEnhancedSchema.js.map +1 -0
- package/dist/web/hooks/useProjectDefinition.d.ts +65 -0
- package/dist/web/hooks/useProjectDefinition.d.ts.map +1 -0
- package/dist/web/hooks/useProjectDefinition.js +10 -0
- package/dist/web/hooks/useProjectDefinition.js.map +1 -0
- package/dist/web/hooks/useResettableForm.d.ts +3 -0
- package/dist/web/hooks/useResettableForm.d.ts.map +1 -0
- package/dist/web/hooks/useResettableForm.js +29 -0
- package/dist/web/hooks/useResettableForm.js.map +1 -0
- package/dist/web/index.d.ts +6 -0
- package/dist/web/index.d.ts.map +1 -0
- package/dist/web/index.js +6 -0
- package/dist/web/index.js.map +1 -0
- package/dist/web/specs/admin-crud-input-web-spec.d.ts +36 -0
- package/dist/web/specs/admin-crud-input-web-spec.d.ts.map +1 -0
- package/dist/web/specs/admin-crud-input-web-spec.js +35 -0
- package/dist/web/specs/admin-crud-input-web-spec.js.map +1 -0
- package/dist/web/specs/index.d.ts +3 -0
- package/dist/web/specs/index.d.ts.map +1 -0
- package/dist/web/specs/index.js +3 -0
- package/dist/web/specs/index.js.map +1 -0
- package/dist/web/specs/model-transformer-web-spec.d.ts +40 -0
- package/dist/web/specs/model-transformer-web-spec.d.ts.map +1 -0
- package/dist/web/specs/model-transformer-web-spec.js +35 -0
- package/dist/web/specs/model-transformer-web-spec.js.map +1 -0
- package/dist/web/utils/form.d.ts +2 -0
- package/dist/web/utils/form.d.ts.map +1 -0
- package/dist/web/utils/form.js +6 -0
- package/dist/web/utils/form.js.map +1 -0
- package/dist/web/utils/index.d.ts +2 -0
- package/dist/web/utils/index.d.ts.map +1 -0
- package/dist/web/utils/index.js +2 -0
- package/dist/web/utils/index.js.map +1 -0
- package/package.json +78 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { createSchemaMigration } from './types.js';
|
|
2
|
+
import { stripUndefinedChildren, undefinedIfEmptyObject } from './utils.js';
|
|
3
|
+
export const migration007ModelGraphql = createSchemaMigration({
|
|
4
|
+
version: 7,
|
|
5
|
+
name: 'modelGraphql',
|
|
6
|
+
description: 'Migrate model schema to GraphQL schema',
|
|
7
|
+
migrate: (config) => ({
|
|
8
|
+
...config,
|
|
9
|
+
models: config.models.map((model) => {
|
|
10
|
+
const { schema, ...rest } = model;
|
|
11
|
+
const { buildObjectType, exposedFields, exposedLocalRelations, exposedForeignRelations, buildQuery, buildMutations, authorize, } = schema ?? {};
|
|
12
|
+
return stripUndefinedChildren({
|
|
13
|
+
...rest,
|
|
14
|
+
graphql: undefinedIfEmptyObject(stripUndefinedChildren({
|
|
15
|
+
objectType: buildObjectType
|
|
16
|
+
? {
|
|
17
|
+
enabled: !!buildObjectType,
|
|
18
|
+
fields: exposedFields ?? [],
|
|
19
|
+
localRelations: exposedLocalRelations ?? [],
|
|
20
|
+
foreignRelations: exposedForeignRelations ?? [],
|
|
21
|
+
}
|
|
22
|
+
: undefined,
|
|
23
|
+
queries: buildQuery
|
|
24
|
+
? {
|
|
25
|
+
get: {
|
|
26
|
+
enabled: buildQuery,
|
|
27
|
+
roles: authorize?.read ?? [],
|
|
28
|
+
},
|
|
29
|
+
list: {
|
|
30
|
+
enabled: buildQuery,
|
|
31
|
+
roles: authorize?.read ?? [],
|
|
32
|
+
},
|
|
33
|
+
}
|
|
34
|
+
: undefined,
|
|
35
|
+
mutations: buildMutations
|
|
36
|
+
? undefinedIfEmptyObject({
|
|
37
|
+
create: !authorize || authorize.create.length > 0
|
|
38
|
+
? {
|
|
39
|
+
enabled: true,
|
|
40
|
+
roles: authorize?.create ?? [],
|
|
41
|
+
}
|
|
42
|
+
: undefined,
|
|
43
|
+
update: !authorize || authorize.update.length > 0
|
|
44
|
+
? {
|
|
45
|
+
enabled: true,
|
|
46
|
+
roles: authorize?.update ?? [],
|
|
47
|
+
}
|
|
48
|
+
: undefined,
|
|
49
|
+
delete: !authorize || authorize.delete.length > 0
|
|
50
|
+
? {
|
|
51
|
+
enabled: true,
|
|
52
|
+
roles: authorize?.delete ?? [],
|
|
53
|
+
}
|
|
54
|
+
: undefined,
|
|
55
|
+
})
|
|
56
|
+
: undefined,
|
|
57
|
+
})),
|
|
58
|
+
});
|
|
59
|
+
}),
|
|
60
|
+
}),
|
|
61
|
+
});
|
|
62
|
+
//# sourceMappingURL=migration-007-model-graphql.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration-007-model-graphql.js","sourceRoot":"","sources":["../../src/migrations/migration-007-model-graphql.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AA4D5E,MAAM,CAAC,MAAM,wBAAwB,GAAG,qBAAqB,CAG3D;IACA,OAAO,EAAE,CAAC;IACV,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,wCAAwC;IACrD,OAAO,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QACpB,GAAG,MAAM;QACT,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;YAClC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;YAClC,MAAM,EACJ,eAAe,EACf,aAAa,EACb,qBAAqB,EACrB,uBAAuB,EACvB,UAAU,EACV,cAAc,EACd,SAAS,GACV,GAAG,MAAM,IAAI,EAAE,CAAC;YAEjB,OAAO,sBAAsB,CAAC;gBAC5B,GAAG,IAAI;gBACP,OAAO,EAAE,sBAAsB,CAC7B,sBAAsB,CAAC;oBACrB,UAAU,EAAE,eAAe;wBACzB,CAAC,CAAC;4BACE,OAAO,EAAE,CAAC,CAAC,eAAe;4BAC1B,MAAM,EAAE,aAAa,IAAI,EAAE;4BAC3B,cAAc,EAAE,qBAAqB,IAAI,EAAE;4BAC3C,gBAAgB,EAAE,uBAAuB,IAAI,EAAE;yBAChD;wBACH,CAAC,CAAC,SAAS;oBACb,OAAO,EAAE,UAAU;wBACjB,CAAC,CAAC;4BACE,GAAG,EAA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
|
12
|
+
roles?: {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
builtIn: boolean;
|
|
16
|
+
comment: string;
|
|
17
|
+
}[];
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export declare const migration008AnonymousPublicRole: import("./types.js").SchemaMigration<OldConfig, NewConfig>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=migration-008-anonymous-public-role.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration-008-anonymous-public-role.d.ts","sourceRoot":"","sources":["../../src/migrations/migration-008-anonymous-public-role.ts"],"names":[],"mappings":"AAsBA,UAAU,SAAS;IACjB,IAAI,CAAC,EAAE;QACL,KAAK,CAAC,EAAE;YACN,EAAE,EAAE,MAAM,CAAC;YACX,IAAI,EAAE,MAAM,CAAC;YACb,OAAO,EAAE,MAAM,CAAC;SACjB,EAAE,CAAC;KACL,CAAC;CACH;AAED,UAAU,SAAS;IACjB,IAAI,CAAC,EAAE;QACL,KAAK,CAAC,EAAE;YACN,EAAE,EAAE,MAAM,CAAC;YACX,IAAI,EAAE,MAAM,CAAC;YACb,OAAO,EAAE,OAAO,CAAC;YACjB,OAAO,EAAE,MAAM,CAAC;SACjB,EAAE,CAAC;KACL,CAAC;CACH;AAED,eAAO,MAAM,+BAA+B,4DAwC1C,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { authRoleEntityType } from '#src/schema/index.js';
|
|
2
|
+
import { createSchemaMigration } from './types.js';
|
|
3
|
+
const AUTH_DEFAULT_ROLES = [
|
|
4
|
+
{
|
|
5
|
+
name: 'public',
|
|
6
|
+
comment: 'All users (including unauthenticated and authenticated users)',
|
|
7
|
+
builtIn: true,
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
name: 'user',
|
|
11
|
+
comment: 'All authenticated users',
|
|
12
|
+
builtIn: true,
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
name: 'system',
|
|
16
|
+
comment: 'System processes without a user context, e.g. background jobs',
|
|
17
|
+
builtIn: true,
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
export const migration008AnonymousPublicRole = createSchemaMigration({
|
|
21
|
+
version: 8,
|
|
22
|
+
name: 'anonymousPublicRole',
|
|
23
|
+
description: 'Migrate anonymous to public role',
|
|
24
|
+
migrate: (config) => ({
|
|
25
|
+
...config,
|
|
26
|
+
auth: config.auth && {
|
|
27
|
+
...config.auth,
|
|
28
|
+
roles: [
|
|
29
|
+
...AUTH_DEFAULT_ROLES.map((role) => {
|
|
30
|
+
const existingRole = config.auth?.roles?.find((r) => r.name === role.name ||
|
|
31
|
+
(r.name === 'anonymous' && role.name === 'public'));
|
|
32
|
+
return {
|
|
33
|
+
id: existingRole?.id ?? authRoleEntityType.generateNewId(),
|
|
34
|
+
name: role.name,
|
|
35
|
+
comment: role.comment,
|
|
36
|
+
builtIn: true,
|
|
37
|
+
};
|
|
38
|
+
}),
|
|
39
|
+
...(config.auth.roles
|
|
40
|
+
?.filter((r) => !AUTH_DEFAULT_ROLES.some((role) => role.name === r.name) &&
|
|
41
|
+
r.name !== 'anonymous')
|
|
42
|
+
.map((r) => ({
|
|
43
|
+
id: r.id,
|
|
44
|
+
name: r.name,
|
|
45
|
+
comment: r.comment,
|
|
46
|
+
builtIn: false,
|
|
47
|
+
})) ?? []),
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
}),
|
|
51
|
+
});
|
|
52
|
+
//# sourceMappingURL=migration-008-anonymous-public-role.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration-008-anonymous-public-role.js","sourceRoot":"","sources":["../../src/migrations/migration-008-anonymous-public-role.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEnD,MAAM,kBAAkB,GAAG;IACzB;QAC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AI,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,CAAC;oBACxD,CAAC,CAAC,IAAI,KAAK,WAAW,CACzB;qBACA,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;oBACX,EAAE,EAAE,CAAC,CAAC,EAAE;oBACR,IAAI,EAAE,CAAC,CAAC,IAAI;oBACZ,OAAO,EAAE,CAAC,CAAC,OAAO;oBAClB,OAAO,EAAE,KAAK;iBACf,CAAC,CAAC,IAAI,EAAE,CAAC;aACb;SACF;KACF,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration-009-rename-refs.d.ts","sourceRoot":"","sources":["../../src/migrations/migration-009-rename-refs.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,sBAAsB,wDAqIjC,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { flow } from 'es-toolkit';
|
|
2
|
+
import { renameObjectKeysTransform, transformJsonPath, } from './transform-json-path.js';
|
|
3
|
+
import { createSchemaMigration } from './types.js';
|
|
4
|
+
export const migration009RenameRefs = createSchemaMigration({
|
|
5
|
+
version: 9,
|
|
6
|
+
name: 'renameRefs',
|
|
7
|
+
description: 'Rename zRefs to be suffixed with "Ref"',
|
|
8
|
+
migrate: (config) => {
|
|
9
|
+
// const definition: ProjectDefinition = config;
|
|
10
|
+
// const adminConfig: AdminAppConfig;
|
|
11
|
+
// adminConfig.sections?.[0].form.fields[0];
|
|
12
|
+
const transform = flow((c) => transformJsonPath(c, 'apps.*.sections.*', renameObjectKeysTransform({
|
|
13
|
+
feature: 'featureRef',
|
|
14
|
+
modelName: 'modelRef',
|
|
15
|
+
})), (c) => transformJsonPath(c, 'apps.*.sections.*.form.fields.*', renameObjectKeysTransform({
|
|
16
|
+
localRelationName: 'localRelationRef',
|
|
17
|
+
modelField: 'modelFieldRef',
|
|
18
|
+
localRelation: 'localRelationRef',
|
|
19
|
+
modelRelation: 'modelRelationRef',
|
|
20
|
+
embeddedFormName: 'embeddedFormRef',
|
|
21
|
+
})), (c) => transformJsonPath(c, 'apps.*.sections.*.embeddedForms.*.form.fields.*', renameObjectKeysTransform({
|
|
22
|
+
localRelationName: 'localRelationRef',
|
|
23
|
+
localRelation: 'localRelationRef',
|
|
24
|
+
modelField: 'modelFieldRef',
|
|
25
|
+
modelRelation: 'modelRelationRef',
|
|
26
|
+
embeddedFormName: 'embeddedFormRef',
|
|
27
|
+
})), (c) => transformJsonPath(c, 'apps.*.sections.*.table.columns.*.display', renameObjectKeysTransform({
|
|
28
|
+
modelField: 'modelFieldRef',
|
|
29
|
+
localRelationName: 'localRelationRef',
|
|
30
|
+
})), (c) => transformJsonPath(c, 'apps.*.sections.*.embeddedForms.*.table.columns.*.display', renameObjectKeysTransform({
|
|
31
|
+
modelField: 'modelFieldRef',
|
|
32
|
+
localRelationName: 'localRelationRef',
|
|
33
|
+
})), (c) => transformJsonPath(c, 'apps.*.sections.*.embeddedForms.*', renameObjectKeysTransform({
|
|
34
|
+
modelName: 'modelRef',
|
|
35
|
+
})), (c) => transformJsonPath(c, 'auth', renameObjectKeysTransform({
|
|
36
|
+
userModel: 'userModelRef',
|
|
37
|
+
userRoleModel: 'userRoleModelRef',
|
|
38
|
+
authFeaturePath: 'authFeatureRef',
|
|
39
|
+
accountsFeaturePath: 'accountsFeatureRef',
|
|
40
|
+
})), (c) => transformJsonPath(c, 'enums.*', renameObjectKeysTransform({
|
|
41
|
+
feature: 'featureRef',
|
|
42
|
+
})), (c) => transformJsonPath(c, 'models.*.model.fields.*.options', renameObjectKeysTransform({
|
|
43
|
+
enumType: 'enumRef',
|
|
44
|
+
defaultEnumValue: 'defaultEnumValueRef',
|
|
45
|
+
})), (c) => transformJsonPath(c, 'models.*', renameObjectKeysTransform({
|
|
46
|
+
feature: 'featureRef',
|
|
47
|
+
})), (c) => transformJsonPath(c, 'models.*.model.relations.*.references.*', renameObjectKeysTransform({
|
|
48
|
+
local: 'localRef',
|
|
49
|
+
foreign: 'foreignRef',
|
|
50
|
+
})), (c) => transformJsonPath(c, 'models.*.model.relations.*', renameObjectKeysTransform({
|
|
51
|
+
modelName: 'modelRef',
|
|
52
|
+
})), (c) => transformJsonPath(c, 'plugins.*.config.categories.*', renameObjectKeysTransform({
|
|
53
|
+
usedByRelation: 'usedByRelationRef',
|
|
54
|
+
defaultAdapter: 'defaultAdapterRef',
|
|
55
|
+
})));
|
|
56
|
+
return transform(config);
|
|
57
|
+
},
|
|
58
|
+
});
|
|
59
|
+
//# sourceMappingURL=migration-009-rename-refs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration-009-rename-refs.js","sourceRoot":"","sources":["../../src/migrations/migration-009-rename-refs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,OAAO,EACL,yBAAyB,EACzB,iBAAiB,GAClB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEnD,MAAM,CAAC,MAAM,sBAAsB,GAAG,qBAAqB,CAAmB;IAC5E,OAAO,EAAE,CAAC;IACV,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,wCAAwC;IACrD,OAAO,EAAE,CAAC,MAAM,EAAE,EAAE;QAClB,gDAAgD;QAChD,qCAAqC;QACrC,4CAA4C;QAC5C,MAAM,SAAS,GAAG,IAAI,CACpB,CAAC,CAAU,EAAE,EAAE,CACb,iBAAiB,CACf,CAAC,EACD,mBAAmB,EACnB,yBAAyB,CAAC;YACxB,OAAO,EAAE,YAAY;YACrB,SAAS,EAAE,UAAU;SACtB,CAAC,CACH,EACH,CAAC,CAAC,EAAE,EAAE,CACJ,iBAAiB,CACf,CAAC,EACD,iCAAiC,EACjC,yBAAyB,CAAC;YACxB,iBAAiB,EAAE,kBAAkB;YACrC,UAAU,EAAE,eAAe;YAC3B,aAAa,EAAE,kBAAkB;YACjC,aAAa,EAAE,kBAA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ACH,CAAC,CAAC,EAAE,EAAE,CACJ,iBAAiB,CACf,CAAC,EACD,UAAU,EACV,yBAAyB,CAAC;YACxB,OAAO,EAAE,YAAY;SACtB,CAAC,CACH,EACH,CAAC,CAAC,EAAE,EAAE,CACJ,iBAAiB,CACf,CAAC,EACD,yCAAyC,EACzC,yBAAyB,CAAC;YACxB,KAAK,EAAE,UAAU;YACjB,OAAO,EAAE,YAAY;SACtB,CAAC,CACH,EACH,CAAC,CAAC,EAAE,EAAE,CACJ,iBAAiB,CACf,CAAC,EACD,4BAA4B,EAC5B,yBAAyB,CAAC;YACxB,SAAS,EAAE,UAAU;SACtB,CAAC,CACH,EACH,CAAC,CAAC,EAAE,EAAE,CACJ,iBAAiB,CACf,CAAC,EACD,+BAA+B,EAC/B,yBAAyB,CAAC;YACxB,cAAc,EAAE,mBAAmB;YACnC,cAAc,EAAE,mBAAmB;SACpC,CAAC,CACH,CACJ,CAAC;QACF,OAAO,SAAS,CAAC,MAAM,CAAY,CAAC;IACtC,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration-010-hex-to-oklch.d.ts","sourceRoot":"","sources":["../../src/migrations/migration-010-hex-to-oklch.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,sBAAsB,wEA8BjC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { flow } from 'es-toolkit';
|
|
2
|
+
import { convertHexToOklch } from '#src/utils/color-conversions.js';
|
|
3
|
+
import { transformJsonPath } from './transform-json-path.js';
|
|
4
|
+
import { createSchemaMigration } from './types.js';
|
|
5
|
+
function transformThemeColor(color) {
|
|
6
|
+
if (color.startsWith('oklch'))
|
|
7
|
+
return color;
|
|
8
|
+
if (color.startsWith('#'))
|
|
9
|
+
return convertHexToOklch(color);
|
|
10
|
+
throw new Error(`Invalid color: ${color}`);
|
|
11
|
+
}
|
|
12
|
+
export const migration010HexToOklch = createSchemaMigration({
|
|
13
|
+
version: 10,
|
|
14
|
+
name: 'hexToOklch',
|
|
15
|
+
description: 'Convert hex colors to OKLCH in theme configuration',
|
|
16
|
+
migrate: (config) => {
|
|
17
|
+
if (!config.theme) {
|
|
18
|
+
return config;
|
|
19
|
+
}
|
|
20
|
+
const transform = flow((c) => transformJsonPath(c, 'theme.palettes.**.customBase', transformThemeColor), (c) => transformJsonPath(c, 'theme.palettes.**.shades.**', transformThemeColor), (c) => transformJsonPath(c, 'theme.colors.**.**', transformThemeColor));
|
|
21
|
+
return transform(config);
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=migration-010-hex-to-oklch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration-010-hex-to-oklch.js","sourceRoot":"","sources":["../../src/migrations/migration-010-hex-to-oklch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAEpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEnD,SAAS,mBAAmB,CAAC,KAAa;IACxC,IAAI,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC;QAAE,OAAO,KAAK,CAAC;IAC5C,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC;QAAE,OAAO,iBAAiB,CAAC,KAAK,CAAC,CAAC;IAC3D,MAAM,IAAI,KAAK,CAAC,kBAAkB,KAAK,EAAE,CAAC,CAAC;AAC7C,CAAC;AAED,MAAM,CAAC,MAAM,sBAAsB,GAAG,qBAAqB,CAGzD;IACA,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,oDAAoD;IACjE,OAAO,EAAE,CAAC,MAAM,EAAE,EAAE;QAClB,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;YAClB,OAAO,MAAM,CAAC;QAChB,CAAC;QAED,MAAM,SAAS,GAAG,IAAI,CACpB,CAAC,CAAC,EAAE,EAAE,CACJ,iBAAiB,CACf,CAAC,EACD,8BAA8B,EAC9B,mBAAmB,CACpB,EACH,CAAC,CAAC,EAAE,EAAE,CACJ,iBAAiB,CACf,CAAC,EACD,6BAA6B,EAC7B,mBAAmB,CACpB,EACH,CAAC,CAAC,EAAE,EAAE,CAAC,iBAAiB,CAAC,CAAC,EAAE,oBAAoB,EAAE,mBAAmB,CAAC,CACvE,CAAC;QAEF,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;IAC3B,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration-011-plugin-id.d.ts","sourceRoot":"","sources":["../../src/migrations/migration-011-plugin-id.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB,wEAW/B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { pluginEntityType } from '#src/schema/plugins/index.js';
|
|
2
|
+
import { transformJsonPath } from './transform-json-path.js';
|
|
3
|
+
import { createSchemaMigration } from './types.js';
|
|
4
|
+
export const migration011PluginId = createSchemaMigration({
|
|
5
|
+
version: 11,
|
|
6
|
+
name: 'pluginId',
|
|
7
|
+
description: 'Convert plugin ids to use the plugin entity type',
|
|
8
|
+
migrate: (config) => transformJsonPath(config, 'plugins.*.id', (id) => pluginEntityType.fromUid(id)),
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=migration-011-plugin-id.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration-011-plugin-id.js","sourceRoot":"","sources":["../../src/migrations/migration-011-plugin-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEnD,MAAM,CAAC,MAAM,oBAAoB,GAAG,qBAAqB,CAGvD;IACA,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,UAAU;IAChB,WAAW,EAAE,kDAAkD;IAC/D,OAAO,EAAE,CAAC,MAAM,EAAE,EAAE,CAClB,iBAAiB,CAAC,MAAM,EAAE,cAAc,EAAE,CAAC,EAAU,EAAE,EAAE,CACvD,gBAAgB,CAAC,OAAO,CAAC,EAAE,CAAC,CAC7B;CACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
interface OldConfig {
|
|
2
|
+
auth?: {
|
|
3
|
+
userModelRef: string;
|
|
4
|
+
userRoleModelRef: string;
|
|
5
|
+
useAuth0: boolean;
|
|
6
|
+
authFeatureRef: string;
|
|
7
|
+
accountsFeatureRef: string;
|
|
8
|
+
passwordProvider?: boolean;
|
|
9
|
+
roles: {
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
comment: string;
|
|
13
|
+
builtIn: boolean;
|
|
14
|
+
}[];
|
|
15
|
+
};
|
|
16
|
+
plugins?: {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
packageName: string;
|
|
20
|
+
version: string;
|
|
21
|
+
config?: unknown;
|
|
22
|
+
}[];
|
|
23
|
+
}
|
|
24
|
+
interface NewConfig {
|
|
25
|
+
auth?: undefined;
|
|
26
|
+
plugins?: {
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
packageName: string;
|
|
30
|
+
version: string;
|
|
31
|
+
config?: unknown;
|
|
32
|
+
}[];
|
|
33
|
+
}
|
|
34
|
+
export declare const migration012MigrateAuthConfig: import("./types.js").SchemaMigration<OldConfig, NewConfig>;
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=migration-012-migrate-auth-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration-012-migrate-auth-config.d.ts","sourceRoot":"","sources":["../../src/migrations/migration-012-migrate-auth-config.ts"],"names":[],"mappings":"AAEA,UAAU,SAAS;IACjB,IAAI,CAAC,EAAE;QACL,YAAY,EAAE,MAAM,CAAC;QACrB,gBAAgB,EAAE,MAAM,CAAC;QACzB,QAAQ,EAAE,OAAO,CAAC;QAClB,cAAc,EAAE,MAAM,CAAC;QACvB,kBAAkB,EAAE,MAAM,CAAC;QAC3B,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,KAAK,EAAE;YACL,EAAE,EAAE,MAAM,CAAC;YACX,IAAI,EAAE,MAAM,CAAC;YACb,OAAO,EAAE,MAAM,CAAC;YAChB,OAAO,EAAE,OAAO,CAAC;SAClB,EAAE,CAAC;KACL,CAAC;IACF,OAAO,CAAC,EAAE;QACR,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,OAAO,CAAC;KAClB,EAAE,CAAC;CACL;AAED,UAAU,SAAS;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE;QACR,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,OAAO,CAAC;KAClB,EAAE,CAAC;CACL;AAED,eAAO,MAAM,6BAA6B,4DAoDxC,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { createSchemaMigration } from './types.js';
|
|
2
|
+
export const migration012MigrateAuthConfig = createSchemaMigration({
|
|
3
|
+
version: 12,
|
|
4
|
+
name: 'migrateAuthConfig',
|
|
5
|
+
description: 'Migrate auth config to auth0 plugin config',
|
|
6
|
+
migrate: (config) => {
|
|
7
|
+
if (!config.auth?.useAuth0) {
|
|
8
|
+
return {
|
|
9
|
+
...config,
|
|
10
|
+
auth: undefined,
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
const auth0PluginId = 'plugin:halfdomelabs_baseplate-plugin-auth_auth0';
|
|
14
|
+
const auth0Config = {
|
|
15
|
+
userAccountModelRef: config.auth.userModelRef,
|
|
16
|
+
authFeatureRef: config.auth.authFeatureRef,
|
|
17
|
+
roles: config.auth.roles.map((role) => ({
|
|
18
|
+
id: role.id,
|
|
19
|
+
name: role.name,
|
|
20
|
+
comment: role.comment,
|
|
21
|
+
builtIn: role.builtIn,
|
|
22
|
+
})),
|
|
23
|
+
};
|
|
24
|
+
const plugins = config.plugins ?? [];
|
|
25
|
+
const pluginIndex = plugins.findIndex((p) => p.id === auth0PluginId);
|
|
26
|
+
if (pluginIndex === -1) {
|
|
27
|
+
plugins.push({
|
|
28
|
+
id: auth0PluginId,
|
|
29
|
+
name: 'auth0',
|
|
30
|
+
packageName: '@halfdomelabs/baseplate-plugin-auth',
|
|
31
|
+
version: '0.1.0',
|
|
32
|
+
config: auth0Config,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
plugins[pluginIndex] = {
|
|
37
|
+
...plugins[pluginIndex],
|
|
38
|
+
config: auth0Config,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
...config,
|
|
43
|
+
auth: undefined,
|
|
44
|
+
plugins,
|
|
45
|
+
};
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=migration-012-migrate-auth-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration-012-migrate-auth-config.js","sourceRoot":"","sources":["../../src/migrations/migration-012-migrate-auth-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAqCnD,MAAM,CAAC,MAAM,6BAA6B,GAAG,qBAAqB,CAGhE;IACA,OAAO,EAAE,EAAE;IACX,IAAI,E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,MAAM;YACT,IAAI,EAAE,SAAS;YACf,OAAO;SACR,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
interface OldConfig {
|
|
2
|
+
name: string;
|
|
3
|
+
packageScope: string;
|
|
4
|
+
portOffset: number;
|
|
5
|
+
version?: string;
|
|
6
|
+
cliVersion?: string;
|
|
7
|
+
apps: unknown[];
|
|
8
|
+
features: unknown[];
|
|
9
|
+
models: unknown[];
|
|
10
|
+
enums?: unknown[];
|
|
11
|
+
isInitialized: boolean;
|
|
12
|
+
schemaVersion: number;
|
|
13
|
+
plugins?: unknown;
|
|
14
|
+
theme?: unknown;
|
|
15
|
+
templateExtractor?: unknown;
|
|
16
|
+
}
|
|
17
|
+
interface NewConfig {
|
|
18
|
+
settings: {
|
|
19
|
+
general: {
|
|
20
|
+
name: string;
|
|
21
|
+
packageScope: string;
|
|
22
|
+
portOffset: number;
|
|
23
|
+
};
|
|
24
|
+
templateExtractor?: unknown;
|
|
25
|
+
theme?: unknown;
|
|
26
|
+
};
|
|
27
|
+
cliVersion?: string;
|
|
28
|
+
apps: unknown[];
|
|
29
|
+
features: unknown[];
|
|
30
|
+
models: unknown[];
|
|
31
|
+
enums?: unknown[];
|
|
32
|
+
isInitialized: boolean;
|
|
33
|
+
schemaVersion: number;
|
|
34
|
+
plugins?: unknown;
|
|
35
|
+
}
|
|
36
|
+
export declare const migration013MoveGeneralSettings: import("./types.js").SchemaMigration<OldConfig, NewConfig>;
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=migration-013-move-general-settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration-013-move-general-settings.d.ts","sourceRoot":"","sources":["../../src/migrations/migration-013-move-general-settings.ts"],"names":[],"mappings":"AAEA,UAAU,SAAS;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,OAAO,EAAE,CAAC;IAChB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,MAAM,EAAE,OAAO,EAAE,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,UAAU,SAAS;IACjB,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,IAAI,EAAE,MAAM,CAAC;YACb,YAAY,EAAE,MAAM,CAAC;YACrB,UAAU,EAAE,MAAM,CAAC;SACpB,CAAC;QACF,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB,CAAC;IACF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,OAAO,EAAE,CAAC;IAChB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,MAAM,EAAE,OAAO,EAAE,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,+BAA+B,4DA8B1C,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { createSchemaMigration } from './types.js';
|
|
2
|
+
export const migration013MoveGeneralSettings = createSchemaMigration({
|
|
3
|
+
version: 13,
|
|
4
|
+
name: 'moveGeneralSettings',
|
|
5
|
+
description: 'Move general settings fields from root to settings.general',
|
|
6
|
+
migrate: (config) => {
|
|
7
|
+
const { name, packageScope, portOffset, templateExtractor, theme, ...rest } = config;
|
|
8
|
+
return {
|
|
9
|
+
...rest,
|
|
10
|
+
settings: {
|
|
11
|
+
general: {
|
|
12
|
+
name,
|
|
13
|
+
packageScope,
|
|
14
|
+
portOffset,
|
|
15
|
+
},
|
|
16
|
+
templateExtractor,
|
|
17
|
+
theme,
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=migration-013-move-general-settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration-013-move-general-settings.js","sourceRoot":"","sources":["../../src/migrations/migration-013-move-general-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAuCnD,MAAM,CAAC,MAAM,+BAA+B,GAAG,qBAAqB,CAGlE;IACA,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,4DAA4D;IACzE,OAAO,EAAE,CAAC,MAAM,EAAE,EAAE;QAClB,MAAM,EACJ,IAAI,EACJ,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,KAAK,EACL,GAAG,IAAI,EACR,GAAG,MAAM,CAAC;QAEX,OAAO;YACL,GAAG,IAAI;YACP,QAAQ,EAAE;gBACR,OAAO,EAAE;oBACP,IAAI;oBACJ,YAAY;oBACZ,UAAU;iBACX;gBACD,iBAAiB;gBACjB,KAAK;aACN;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface OldConfig {
|
|
2
|
+
plugins?: {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
packageName: string;
|
|
6
|
+
version: string;
|
|
7
|
+
config?: unknown;
|
|
8
|
+
}[];
|
|
9
|
+
}
|
|
10
|
+
interface NewConfig {
|
|
11
|
+
plugins?: {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
packageName: string;
|
|
15
|
+
version: string;
|
|
16
|
+
config?: unknown;
|
|
17
|
+
}[];
|
|
18
|
+
}
|
|
19
|
+
export declare const migration014MigratePluginIds: import("./types.js").SchemaMigration<OldConfig, NewConfig>;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=migration-014-migrate-plugin-ids.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration-014-migrate-plugin-ids.d.ts","sourceRoot":"","sources":["../../src/migrations/migration-014-migrate-plugin-ids.ts"],"names":[],"mappings":"AAEA,UAAU,SAAS;IACjB,OAAO,CAAC,EAAE;QACR,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,OAAO,CAAC;KAClB,EAAE,CAAC;CACL;AAED,UAAU,SAAS;IACjB,OAAO,CAAC,EAAE;QACR,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,OAAO,CAAC;KAClB,EAAE,CAAC;CACL;AASD,eAAO,MAAM,4BAA4B,4DAoCvC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { createSchemaMigration } from './types.js';
|
|
2
|
+
const PLUGIN_MAPPINGS = {
|
|
3
|
+
'plugin:halfdomelabs_baseplate-plugin-auth_auth0': 'plugin:baseplate-dev_plugin-auth_auth0',
|
|
4
|
+
'plugin:halfdomelabs_baseplate-plugin-storage_storage': 'plugin:baseplate-dev_plugin-storage_storage',
|
|
5
|
+
};
|
|
6
|
+
export const migration014MigratePluginIds = createSchemaMigration({
|
|
7
|
+
version: 14,
|
|
8
|
+
name: 'migratePluginIds',
|
|
9
|
+
description: 'Migrate plugin IDs and package names to new format and resets client version in preparation for 0.1.0 reset',
|
|
10
|
+
migrate: (config) => {
|
|
11
|
+
if (!config.plugins) {
|
|
12
|
+
return config;
|
|
13
|
+
}
|
|
14
|
+
const plugins = config.plugins.map((plugin) => {
|
|
15
|
+
const newId = plugin.id in PLUGIN_MAPPINGS
|
|
16
|
+
? PLUGIN_MAPPINGS[plugin.id]
|
|
17
|
+
: plugin.id;
|
|
18
|
+
const newPackageName = plugin.packageName.replace('@halfdomelabs/baseplate-', '@baseplate-dev/');
|
|
19
|
+
return {
|
|
20
|
+
...plugin,
|
|
21
|
+
id: newId,
|
|
22
|
+
packageName: newPackageName,
|
|
23
|
+
};
|
|
24
|
+
});
|
|
25
|
+
return {
|
|
26
|
+
...config,
|
|
27
|
+
plugins,
|
|
28
|
+
cliVersion: '0.1.0',
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
//# sourceMappingURL=migration-014-migrate-plugin-ids.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration-014-migrate-plugin-ids.js","sourceRoot":"","sources":["../../src/migrations/migration-014-migrate-plugin-ids.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAsBnD,MAAM,eAAe,GAAG;IACtB,iDAAiD,EAC/C,wCAAwC;IAC1C,sDAAsD,EACpD,6CAA6C;CACvC,CAAC;AAEX,MAAM,CAAC,MAAM,4BAA4B,GAAG,qBAAqB,CAG/D;IACA,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,kBAAkB;IACxB,WAAW,EACT,6GAA6G;IAC/G,OAAO,EAAE,CAAC,MAAM,EAAE,EAAE;QAClB,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;YACpB,OAAO,MAAM,CAAC;QAChB,CAAC;QAED,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;YAC5C,MAAM,KAAK,GACT,MAAM,CAAC,EAAE,IAAI,eAAe;gBAC1B,CAAC,CAAC,eAAe,CAAC,MAAM,CAAC,EAAkC,CAAC;gBAC5D,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;YAChB,MAAM,cAAc,GAAG,MAAM,CAAC,WAAW,CAAC,OAAO,CAC/C,0BAA0B,EAC1B,iBAAiB,CAClB,CAAC;YAEF,OAAO;gBACL,GAAG,MAAM;gBACT,EAAE,EAAE,KAAK;gBACT,WAAW,EAAE,cAAc;aAC5B,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,OAAO;YACL,GAAG,MAAM;YACT,OAAO;YACP,UAAU,EAAE,OAAO;SACpB,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type TransformFn<From = unknown, To = unknown> = (input: From) => To;
|
|
2
|
+
/**
|
|
3
|
+
* Transform a value at a specific path in a JSON object.
|
|
4
|
+
*
|
|
5
|
+
* @param data - The JSON object to transform.
|
|
6
|
+
* @param path - The path to the value to transform, using dot notation (* matches all elements in an array and ** matches all elements in an object).
|
|
7
|
+
* @param transformFn - The transformation function to apply to the value.
|
|
8
|
+
* @returns The transformed JSON object.
|
|
9
|
+
*/
|
|
10
|
+
export declare function transformJsonPath(data: unknown, path: string, transformFn: TransformFn<any>): unknown;
|
|
11
|
+
export declare function renameObjectKeysTransform(renames: Record<string, string>): TransformFn;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=transform-json-path.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transform-json-path.d.ts","sourceRoot":"","sources":["../../src/migrations/transform-json-path.ts"],"names":[],"mappings":"AAEA,KAAK,WAAW,CAAC,IAAI,GAAG,OAAO,EAAE,EAAE,GAAG,OAAO,IAAI,CAAC,KAAK,EAAE,IAAI,KAAK,EAAE,CAAC;AAErE;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,OAAO,EACb,IAAI,EAAE,MAAM,EAEZ,WAAW,EAAE,WAAW,CAAC,GAAG,CAAC,GAC5B,OAAO,CAwDT;AAED,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC9B,WAAW,CAUb"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { cloneDeep } from 'es-toolkit';
|
|
2
|
+
/**
|
|
3
|
+
* Transform a value at a specific path in a JSON object.
|
|
4
|
+
*
|
|
5
|
+
* @param data - The JSON object to transform.
|
|
6
|
+
* @param path - The path to the value to transform, using dot notation (* matches all elements in an array and ** matches all elements in an object).
|
|
7
|
+
* @param transformFn - The transformation function to apply to the value.
|
|
8
|
+
* @returns The transformed JSON object.
|
|
9
|
+
*/
|
|
10
|
+
export function transformJsonPath(data, path,
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- make it easier to use any transform functions
|
|
12
|
+
transformFn) {
|
|
13
|
+
// Split the path into parts
|
|
14
|
+
const pathParts = path.split('.');
|
|
15
|
+
// Recursive function to navigate and transform the JSON
|
|
16
|
+
const navigateAndTransform = (current, parts) => {
|
|
17
|
+
if (parts.length === 0) {
|
|
18
|
+
// If at the end of the path, apply the transformation function
|
|
19
|
+
return transformFn(cloneDeep(current));
|
|
20
|
+
}
|
|
21
|
+
const [currentPart, ...remainingParts] = parts;
|
|
22
|
+
if (currentPart === '*') {
|
|
23
|
+
// If the current path part is a wildcard
|
|
24
|
+
if (!Array.isArray(current)) {
|
|
25
|
+
throw new TypeError(`Expected an array at ${pathParts.join('.')}`);
|
|
26
|
+
}
|
|
27
|
+
// Apply transformation recursively for each item
|
|
28
|
+
return current.map((item) => navigateAndTransform(item, remainingParts));
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
if (typeof current !== 'object') {
|
|
32
|
+
throw new TypeError(`Expected an object at ${pathParts.join('.')}, got ${typeof current}`);
|
|
33
|
+
}
|
|
34
|
+
// Navigate deeper
|
|
35
|
+
if (current === null) {
|
|
36
|
+
return current;
|
|
37
|
+
}
|
|
38
|
+
if (currentPart === '**') {
|
|
39
|
+
return Object.fromEntries(Object.entries(current).map(([key, value]) => [
|
|
40
|
+
key,
|
|
41
|
+
navigateAndTransform(value, remainingParts),
|
|
42
|
+
]));
|
|
43
|
+
}
|
|
44
|
+
if (!(currentPart in current)) {
|
|
45
|
+
return current;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
...current,
|
|
49
|
+
[currentPart]: navigateAndTransform(current[currentPart], remainingParts),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
// Start the navigation and transformation process
|
|
54
|
+
return navigateAndTransform(data, pathParts);
|
|
55
|
+
}
|
|
56
|
+
export function renameObjectKeysTransform(renames) {
|
|
57
|
+
return (data) => {
|
|
58
|
+
if (data === null)
|
|
59
|
+
return null;
|
|
60
|
+
if (typeof data !== 'object') {
|
|
61
|
+
throw new TypeError(`Expected an object, got ${typeof data}`);
|
|
62
|
+
}
|
|
63
|
+
return Object.fromEntries(Object.entries(data).map(([key, value]) => [renames[key] || key, value]));
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=transform-json-path.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transform-json-path.js","sourceRoot":"","sources":["../../src/migrations/transform-json-path.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAIvC;;;;;;;GAOG;AACH,MAAM,UAAU,iBAAiB,CAC/B,IAAa,EACb,IAAY;AACZ,+GAA+G;AAC/G,WAA6B;IAE7B,4BAA4B;IAC5B,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAElC,wDAAwD;IACxD,MAAM,oBAAoB,GAAG,CAAC,OAAgB,EAAE,KAAe,EAAW,EAAE;QAC1E,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACvB,+DAA+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