ddd-ts-kit 0.27.0 → 0.83.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +232 -0
- package/README.fr.md +186 -72
- package/README.md +177 -71
- package/dist/check/canonical/role.d.ts +2 -0
- package/dist/check/canonical/role.d.ts.map +1 -1
- package/dist/check/canonical/roles.js +1 -1
- package/dist/check/canonical/roles.js.map +1 -1
- package/dist/check/catalogue/architecture-rules.d.ts.map +1 -1
- package/dist/check/catalogue/architecture-rules.js +6 -0
- package/dist/check/catalogue/architecture-rules.js.map +1 -1
- package/dist/check/catalogue/default-severities.d.ts.map +1 -1
- package/dist/check/catalogue/default-severities.js +2 -0
- package/dist/check/catalogue/default-severities.js.map +1 -1
- package/dist/check/catalogue/eslint-only-rules.js +3 -3
- package/dist/check/catalogue/eslint-only-rules.js.map +1 -1
- package/dist/check/commands/check-command.d.ts.map +1 -1
- package/dist/check/commands/check-command.js +4 -1
- package/dist/check/commands/check-command.js.map +1 -1
- package/dist/check/commands/explain-command.d.ts.map +1 -1
- package/dist/check/commands/explain-command.js +2 -9
- package/dist/check/commands/explain-command.js.map +1 -1
- package/dist/check/engine/format-check.d.ts +6 -1
- package/dist/check/engine/format-check.d.ts.map +1 -1
- package/dist/check/engine/format-check.js +33 -11
- package/dist/check/engine/format-check.js.map +1 -1
- package/dist/check/errors/builds-through-factories.d.ts +4 -1
- package/dist/check/errors/builds-through-factories.d.ts.map +1 -1
- package/dist/check/errors/builds-through-factories.js +6 -2
- package/dist/check/errors/builds-through-factories.js.map +1 -1
- package/dist/check/errors/code-entry.d.ts +8 -0
- package/dist/check/errors/code-entry.d.ts.map +1 -0
- package/dist/check/errors/code-entry.js +2 -0
- package/dist/check/errors/code-entry.js.map +1 -0
- package/dist/check/errors/code-list-name.d.ts +3 -0
- package/dist/check/errors/code-list-name.d.ts.map +1 -0
- package/dist/check/errors/code-list-name.js +6 -0
- package/dist/check/errors/code-list-name.js.map +1 -0
- package/dist/check/errors/code-list.d.ts +10 -0
- package/dist/check/errors/code-list.d.ts.map +1 -0
- package/dist/check/errors/code-list.js +2 -0
- package/dist/check/errors/code-list.js.map +1 -0
- package/dist/check/errors/codes-set-in.d.ts +9 -0
- package/dist/check/errors/codes-set-in.d.ts.map +1 -0
- package/dist/check/errors/codes-set-in.js +15 -0
- package/dist/check/errors/codes-set-in.js.map +1 -0
- package/dist/check/errors/error-codes.d.ts +2 -0
- package/dist/check/errors/error-codes.d.ts.map +1 -1
- package/dist/check/errors/error-codes.js +8 -0
- package/dist/check/errors/error-codes.js.map +1 -1
- package/dist/check/errors/is-codes-file.d.ts +4 -0
- package/dist/check/errors/is-codes-file.d.ts.map +1 -0
- package/dist/check/errors/is-codes-file.js +11 -0
- package/dist/check/errors/is-codes-file.js.map +1 -0
- package/dist/check/errors/is-error-file.d.ts +4 -0
- package/dist/check/errors/is-error-file.d.ts.map +1 -0
- package/dist/check/errors/is-error-file.js +6 -0
- package/dist/check/errors/is-error-file.js.map +1 -0
- package/dist/check/errors/listed-codes.d.ts +5 -0
- package/dist/check/errors/listed-codes.d.ts.map +1 -0
- package/dist/check/errors/listed-codes.js +12 -0
- package/dist/check/errors/listed-codes.js.map +1 -0
- package/dist/check/errors/names-refusals.d.ts +4 -0
- package/dist/check/errors/names-refusals.d.ts.map +1 -0
- package/dist/check/errors/names-refusals.js +5 -0
- package/dist/check/errors/names-refusals.js.map +1 -0
- package/dist/check/errors/read-code-list.d.ts +5 -0
- package/dist/check/errors/read-code-list.d.ts.map +1 -0
- package/dist/check/errors/read-code-list.js +32 -0
- package/dist/check/errors/read-code-list.js.map +1 -0
- package/dist/check/errors/refusal-classes.d.ts +8 -0
- package/dist/check/errors/refusal-classes.d.ts.map +1 -0
- package/dist/check/errors/refusal-classes.js +9 -0
- package/dist/check/errors/refusal-classes.js.map +1 -0
- package/dist/check/event-sourcing/declared-shape.d.ts +7 -1
- package/dist/check/event-sourcing/declared-shape.d.ts.map +1 -1
- package/dist/check/event-sourcing/declared-shape.js +12 -4
- package/dist/check/event-sourcing/declared-shape.js.map +1 -1
- package/dist/check/event-sourcing/read-stored-shape.d.ts.map +1 -1
- package/dist/check/event-sourcing/read-stored-shape.js +10 -2
- package/dist/check/event-sourcing/read-stored-shape.js.map +1 -1
- package/dist/check/event-sourcing/stored-event-declaration.d.ts +2 -0
- package/dist/check/event-sourcing/stored-event-declaration.d.ts.map +1 -1
- package/dist/check/event-sourcing/stored-event-declarations.js +1 -0
- package/dist/check/event-sourcing/stored-event-declarations.js.map +1 -1
- package/dist/check/event-sourcing/stored-shape.d.ts +2 -0
- package/dist/check/event-sourcing/stored-shape.d.ts.map +1 -1
- package/dist/check/explain/documented-rule.d.ts +8 -0
- package/dist/check/explain/documented-rule.d.ts.map +1 -0
- package/dist/check/explain/documented-rule.js +14 -0
- package/dist/check/explain/documented-rule.js.map +1 -0
- package/dist/check/explain/errors-docs.d.ts.map +1 -1
- package/dist/check/explain/errors-docs.js +30 -2
- package/dist/check/explain/errors-docs.js.map +1 -1
- package/dist/check/explain/explanations-of.d.ts +5 -0
- package/dist/check/explain/explanations-of.d.ts.map +1 -0
- package/dist/check/explain/explanations-of.js +16 -0
- package/dist/check/explain/explanations-of.js.map +1 -0
- package/dist/check/explain/language-docs.js +1 -1
- package/dist/check/explain/language-docs.js.map +1 -1
- package/dist/check/explain/persistence-docs.d.ts.map +1 -1
- package/dist/check/explain/persistence-docs.js +7 -0
- package/dist/check/explain/persistence-docs.js.map +1 -1
- package/dist/check/explain/wiring-docs.d.ts.map +1 -1
- package/dist/check/explain/wiring-docs.js +13 -0
- package/dist/check/explain/wiring-docs.js.map +1 -1
- package/dist/check/fixtures/authz-policy-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/authz-policy-fixtures.js +11 -0
- package/dist/check/fixtures/authz-policy-fixtures.js.map +1 -1
- package/dist/check/fixtures/declarations-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/declarations-fixtures.js +78 -1
- package/dist/check/fixtures/declarations-fixtures.js.map +1 -1
- package/dist/check/fixtures/errors-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/errors-fixtures.js +1 -1
- package/dist/check/fixtures/errors-fixtures.js.map +1 -1
- package/dist/check/fixtures/errors-route.d.ts +3 -0
- package/dist/check/fixtures/errors-route.d.ts.map +1 -0
- package/dist/check/fixtures/errors-route.js +6 -0
- package/dist/check/fixtures/errors-route.js.map +1 -0
- package/dist/check/fixtures/fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/fixtures.js +2 -0
- package/dist/check/fixtures/fixtures.js.map +1 -1
- package/dist/check/fixtures/named-refusal-fixtures.d.ts +4 -0
- package/dist/check/fixtures/named-refusal-fixtures.d.ts.map +1 -0
- package/dist/check/fixtures/named-refusal-fixtures.js +210 -0
- package/dist/check/fixtures/named-refusal-fixtures.js.map +1 -0
- package/dist/check/fixtures/persistence-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/persistence-fixtures.js +25 -0
- package/dist/check/fixtures/persistence-fixtures.js.map +1 -1
- package/dist/check/language/refusal-qualifiers.d.ts +8 -0
- package/dist/check/language/refusal-qualifiers.d.ts.map +1 -0
- package/dist/check/language/refusal-qualifiers.js +16 -0
- package/dist/check/language/refusal-qualifiers.js.map +1 -0
- package/dist/check/language/unknown-words.d.ts +2 -2
- package/dist/check/language/unknown-words.d.ts.map +1 -1
- package/dist/check/language/unknown-words.js +3 -2
- package/dist/check/language/unknown-words.js.map +1 -1
- package/dist/check/model/rule-explanation.d.ts +10 -0
- package/dist/check/model/rule-explanation.d.ts.map +1 -0
- package/dist/check/model/rule-explanation.js +2 -0
- package/dist/check/model/rule-explanation.js.map +1 -0
- package/dist/check/rules/authz-policy-asked.js +5 -2
- package/dist/check/rules/authz-policy-asked.js.map +1 -1
- package/dist/check/rules/declarations-port-adapter-wired.d.ts +3 -0
- package/dist/check/rules/declarations-port-adapter-wired.d.ts.map +1 -0
- package/dist/check/rules/declarations-port-adapter-wired.js +104 -0
- package/dist/check/rules/declarations-port-adapter-wired.js.map +1 -0
- package/dist/check/rules/errors-code-listed.d.ts +3 -0
- package/dist/check/rules/errors-code-listed.d.ts.map +1 -0
- package/dist/check/rules/errors-code-listed.js +160 -0
- package/dist/check/rules/errors-code-listed.js.map +1 -0
- package/dist/check/rules/errors-code-unique.d.ts.map +1 -1
- package/dist/check/rules/errors-code-unique.js +13 -8
- package/dist/check/rules/errors-code-unique.js.map +1 -1
- package/dist/check/rules/errors-known-code.d.ts.map +1 -1
- package/dist/check/rules/errors-known-code.js +17 -7
- package/dist/check/rules/errors-known-code.js.map +1 -1
- package/dist/check/rules/event-sourcing-upcaster-required.js +14 -4
- package/dist/check/rules/event-sourcing-upcaster-required.js.map +1 -1
- package/dist/check/rules/language-glossary-term.d.ts.map +1 -1
- package/dist/check/rules/language-glossary-term.js +10 -3
- package/dist/check/rules/language-glossary-term.js.map +1 -1
- package/dist/check/rules/naming-suffix.js +1 -1
- package/dist/check/rules/naming-suffix.js.map +1 -1
- package/dist/check/rules/persistence-primary-key-order.d.ts +3 -0
- package/dist/check/rules/persistence-primary-key-order.d.ts.map +1 -0
- package/dist/check/rules/persistence-primary-key-order.js +31 -0
- package/dist/check/rules/persistence-primary-key-order.js.map +1 -0
- package/dist/commands/docs.d.ts.map +1 -1
- package/dist/commands/docs.js +16 -7
- package/dist/commands/docs.js.map +1 -1
- package/dist/commands/doctor.d.ts +4 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +20 -4
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/error-factories.d.ts +4 -2
- package/dist/commands/error-factories.d.ts.map +1 -1
- package/dist/commands/error-factories.js +74 -17
- package/dist/commands/error-factories.js.map +1 -1
- package/dist/commands/lint.d.ts +7 -0
- package/dist/commands/lint.d.ts.map +1 -0
- package/dist/commands/lint.js +55 -0
- package/dist/commands/lint.js.map +1 -0
- package/dist/config/config.d.ts +2 -0
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/open-api-problems.js +7 -6
- package/dist/config/open-api-problems.js.map +1 -1
- package/dist/config/parse-config.d.ts.map +1 -1
- package/dist/config/parse-config.js +2 -0
- package/dist/config/parse-config.js.map +1 -1
- package/dist/config/restack-config-text.d.ts +3 -2
- package/dist/config/restack-config-text.d.ts.map +1 -1
- package/dist/config/restack-config-text.js +5 -3
- package/dist/config/restack-config-text.js.map +1 -1
- package/dist/config/serialize-config.d.ts.map +1 -1
- package/dist/config/serialize-config.js +2 -1
- package/dist/config/serialize-config.js.map +1 -1
- package/dist/config/stack.d.ts +9 -6
- package/dist/config/stack.d.ts.map +1 -1
- package/dist/config/stack.js +1 -1
- package/dist/config/stack.js.map +1 -1
- package/dist/describe/context-description.d.ts +7 -2
- package/dist/describe/context-description.d.ts.map +1 -1
- package/dist/describe/exposed-by.d.ts +7 -0
- package/dist/describe/exposed-by.d.ts.map +1 -0
- package/dist/describe/exposed-by.js +11 -0
- package/dist/describe/exposed-by.js.map +1 -0
- package/dist/describe/read-errors.d.ts +3 -1
- package/dist/describe/read-errors.d.ts.map +1 -1
- package/dist/describe/read-errors.js +18 -11
- package/dist/describe/read-errors.js.map +1 -1
- package/dist/describe/read-refusals.d.ts +11 -0
- package/dist/describe/read-refusals.d.ts.map +1 -0
- package/dist/describe/read-refusals.js +41 -0
- package/dist/describe/read-refusals.js.map +1 -0
- package/dist/describe/reference-lines.d.ts.map +1 -1
- package/dist/describe/reference-lines.js +18 -2
- package/dist/describe/reference-lines.js.map +1 -1
- package/dist/docs/formerly-recorded-stored-events.d.ts +9 -0
- package/dist/docs/formerly-recorded-stored-events.d.ts.map +1 -0
- package/dist/docs/formerly-recorded-stored-events.js +17 -0
- package/dist/docs/formerly-recorded-stored-events.js.map +1 -0
- package/dist/docs/write-stored-events-lock.d.ts +3 -2
- package/dist/docs/write-stored-events-lock.d.ts.map +1 -1
- package/dist/docs/write-stored-events-lock.js +10 -4
- package/dist/docs/write-stored-events-lock.js.map +1 -1
- package/dist/doctor/diagnose.d.ts +2 -0
- package/dist/doctor/diagnose.d.ts.map +1 -1
- package/dist/doctor/diagnose.js +22 -3
- package/dist/doctor/diagnose.js.map +1 -1
- package/dist/doctor/doctor-finding.d.ts +13 -5
- package/dist/doctor/doctor-finding.d.ts.map +1 -1
- package/dist/doctor/format-diagnosis.d.ts +4 -1
- package/dist/doctor/format-diagnosis.d.ts.map +1 -1
- package/dist/doctor/format-diagnosis.js +49 -3
- package/dist/doctor/format-diagnosis.js.map +1 -1
- package/dist/doctor/in-range.d.ts +7 -0
- package/dist/doctor/in-range.d.ts.map +1 -0
- package/dist/doctor/in-range.js +90 -0
- package/dist/doctor/in-range.js.map +1 -0
- package/dist/doctor/install-findings.d.ts +11 -0
- package/dist/doctor/install-findings.d.ts.map +1 -0
- package/dist/doctor/install-findings.js +119 -0
- package/dist/doctor/install-findings.js.map +1 -0
- package/dist/doctor/node-findings.d.ts +7 -0
- package/dist/doctor/node-findings.d.ts.map +1 -0
- package/dist/doctor/node-findings.js +19 -0
- package/dist/doctor/node-findings.js.map +1 -0
- package/dist/doctor/package-findings.d.ts +2 -0
- package/dist/doctor/package-findings.d.ts.map +1 -1
- package/dist/doctor/package-findings.js +1 -1
- package/dist/doctor/package-findings.js.map +1 -1
- package/dist/doctor/submodule-findings.d.ts +7 -0
- package/dist/doctor/submodule-findings.d.ts.map +1 -0
- package/dist/doctor/submodule-findings.js +22 -0
- package/dist/doctor/submodule-findings.js.map +1 -0
- package/dist/generate/concept.d.ts.map +1 -1
- package/dist/generate/concept.js +3 -29
- package/dist/generate/concept.js.map +1 -1
- package/dist/generate/errors/add-code.d.ts +13 -0
- package/dist/generate/errors/add-code.d.ts.map +1 -0
- package/dist/generate/errors/add-code.js +18 -0
- package/dist/generate/errors/add-code.js.map +1 -0
- package/dist/generate/errors/codes-list.d.ts +10 -0
- package/dist/generate/errors/codes-list.d.ts.map +1 -0
- package/dist/generate/errors/codes-list.js +25 -0
- package/dist/generate/errors/codes-list.js.map +1 -0
- package/dist/generate/errors/error-code-pattern.d.ts +3 -0
- package/dist/generate/errors/error-code-pattern.d.ts.map +1 -0
- package/dist/generate/errors/error-code-pattern.js +3 -0
- package/dist/generate/errors/error-code-pattern.js.map +1 -0
- package/dist/generate/errors/factory-prefix.d.ts +3 -0
- package/dist/generate/errors/factory-prefix.d.ts.map +1 -0
- package/dist/generate/errors/factory-prefix.js +3 -0
- package/dist/generate/errors/factory-prefix.js.map +1 -0
- package/dist/generate/errors/named-refusal-code.d.ts +17 -0
- package/dist/generate/errors/named-refusal-code.d.ts.map +1 -0
- package/dist/generate/errors/named-refusal-code.js +42 -0
- package/dist/generate/errors/named-refusal-code.js.map +1 -0
- package/dist/generate/errors/refusal-class-name.d.ts +8 -0
- package/dist/generate/errors/refusal-class-name.d.ts.map +1 -0
- package/dist/generate/errors/refusal-class-name.js +16 -0
- package/dist/generate/errors/refusal-class-name.js.map +1 -0
- package/dist/generate/errors/refusal-factory-name.d.ts +4 -0
- package/dist/generate/errors/refusal-factory-name.d.ts.map +1 -0
- package/dist/generate/errors/refusal-factory-name.js +15 -0
- package/dist/generate/errors/refusal-factory-name.js.map +1 -0
- package/dist/generate/errors/write-named-refusal.d.ts +18 -0
- package/dist/generate/errors/write-named-refusal.d.ts.map +1 -0
- package/dist/generate/errors/write-named-refusal.js +89 -0
- package/dist/generate/errors/write-named-refusal.js.map +1 -0
- package/dist/generate/kinds/domain-error-kind.d.ts.map +1 -1
- package/dist/generate/kinds/domain-error-kind.js +12 -5
- package/dist/generate/kinds/domain-error-kind.js.map +1 -1
- package/dist/generate/kinds/error-kind.d.ts.map +1 -1
- package/dist/generate/kinds/error-kind.js +27 -12
- package/dist/generate/kinds/error-kind.js.map +1 -1
- package/dist/generate/schedule/cron-problem.d.ts.map +1 -1
- package/dist/generate/schedule/cron-problem.js +16 -1
- package/dist/generate/schedule/cron-problem.js.map +1 -1
- package/dist/generate/spoken-in-language.d.ts +9 -0
- package/dist/generate/spoken-in-language.d.ts.map +1 -0
- package/dist/generate/spoken-in-language.js +39 -0
- package/dist/generate/spoken-in-language.js.map +1 -0
- package/dist/help/notes.d.ts +1 -1
- package/dist/help/notes.d.ts.map +1 -1
- package/dist/help/notes.js +32 -13
- package/dist/help/notes.js.map +1 -1
- package/dist/help/usage.d.ts +1 -1
- package/dist/help/usage.d.ts.map +1 -1
- package/dist/help/usage.js +4 -3
- package/dist/help/usage.js.map +1 -1
- package/dist/init/manifest/versions.js +24 -24
- package/dist/init/run-init.d.ts.map +1 -1
- package/dist/init/run-init.js +4 -2
- package/dist/init/run-init.js.map +1 -1
- package/dist/init/stack/resolve-stack.js +2 -2
- package/dist/init/stack/resolve-stack.js.map +1 -1
- package/dist/lint/eslint-in-project.d.ts +8 -0
- package/dist/lint/eslint-in-project.d.ts.map +1 -0
- package/dist/lint/eslint-in-project.js +33 -0
- package/dist/lint/eslint-in-project.js.map +1 -0
- package/dist/lint/format-verdict.d.ts +4 -0
- package/dist/lint/format-verdict.d.ts.map +1 -0
- package/dist/lint/format-verdict.js +11 -0
- package/dist/lint/format-verdict.js.map +1 -0
- package/dist/lint/lint-run.d.ts +8 -0
- package/dist/lint/lint-run.d.ts.map +1 -0
- package/dist/lint/lint-run.js +2 -0
- package/dist/lint/lint-run.js.map +1 -0
- package/dist/lint/lint-verdict.d.ts +19 -0
- package/dist/lint/lint-verdict.d.ts.map +1 -0
- package/dist/lint/lint-verdict.js +25 -0
- package/dist/lint/lint-verdict.js.map +1 -0
- package/dist/lint/parse-lint-answer.d.ts +13 -0
- package/dist/lint/parse-lint-answer.d.ts.map +1 -0
- package/dist/lint/parse-lint-answer.js +18 -0
- package/dist/lint/parse-lint-answer.js.map +1 -0
- package/dist/migration/plan-replay.d.ts +4 -3
- package/dist/migration/plan-replay.d.ts.map +1 -1
- package/dist/migration/plan-replay.js +21 -6
- package/dist/migration/plan-replay.js.map +1 -1
- package/dist/migration/rename-branch-migrations.d.ts +13 -0
- package/dist/migration/rename-branch-migrations.d.ts.map +1 -0
- package/dist/migration/rename-branch-migrations.js +25 -0
- package/dist/migration/rename-branch-migrations.js.map +1 -0
- package/dist/migration/replay-drizzle-migrations.d.ts +6 -3
- package/dist/migration/replay-drizzle-migrations.d.ts.map +1 -1
- package/dist/migration/replay-drizzle-migrations.js +48 -4
- package/dist/migration/replay-drizzle-migrations.js.map +1 -1
- package/dist/migration/replay-plan.d.ts +8 -0
- package/dist/migration/replay-plan.d.ts.map +1 -1
- package/dist/migration/restore-migration-folder.d.ts +4 -0
- package/dist/migration/restore-migration-folder.d.ts.map +1 -0
- package/dist/migration/restore-migration-folder.js +15 -0
- package/dist/migration/restore-migration-folder.js.map +1 -0
- package/dist/package-manager/lockfiles.d.ts +2 -0
- package/dist/package-manager/lockfiles.d.ts.map +1 -1
- package/dist/package-manager/lockfiles.js +5 -0
- package/dist/package-manager/lockfiles.js.map +1 -1
- package/dist/presets/identity-refusal.js +1 -1
- package/dist/presets/identity-refusal.js.map +1 -1
- package/dist/presets/identity-terms.d.ts.map +1 -1
- package/dist/presets/identity-terms.js +30 -0
- package/dist/presets/identity-terms.js.map +1 -1
- package/dist/presets/preset-files.d.ts.map +1 -1
- package/dist/presets/preset-files.js +4 -1
- package/dist/presets/preset-files.js.map +1 -1
- package/dist/refusals/aggregates-of.d.ts +10 -0
- package/dist/refusals/aggregates-of.d.ts.map +1 -0
- package/dist/refusals/aggregates-of.js +9 -0
- package/dist/refusals/aggregates-of.js.map +1 -0
- package/dist/refusals/applied-moves.d.ts +7 -0
- package/dist/refusals/applied-moves.d.ts.map +1 -0
- package/dist/refusals/applied-moves.js +2 -0
- package/dist/refusals/applied-moves.js.map +1 -0
- package/dist/refusals/apply-named-plan.d.ts +19 -0
- package/dist/refusals/apply-named-plan.d.ts.map +1 -0
- package/dist/refusals/apply-named-plan.js +46 -0
- package/dist/refusals/apply-named-plan.js.map +1 -0
- package/dist/refusals/apply-plan.d.ts.map +1 -1
- package/dist/refusals/apply-plan.js +21 -25
- package/dist/refusals/apply-plan.js.map +1 -1
- package/dist/refusals/code-without-imports.d.ts +3 -0
- package/dist/refusals/code-without-imports.d.ts.map +1 -0
- package/dist/refusals/code-without-imports.js +9 -0
- package/dist/refusals/code-without-imports.js.map +1 -0
- package/dist/refusals/concept-error-class.d.ts +26 -0
- package/dist/refusals/concept-error-class.d.ts.map +1 -0
- package/dist/refusals/concept-error-class.js +2 -0
- package/dist/refusals/concept-error-class.js.map +1 -0
- package/dist/refusals/concept-errors.d.ts +6 -0
- package/dist/refusals/concept-errors.d.ts.map +1 -0
- package/dist/refusals/concept-errors.js +16 -0
- package/dist/refusals/concept-errors.js.map +1 -0
- package/dist/refusals/concept-imports.d.ts +8 -0
- package/dist/refusals/concept-imports.d.ts.map +1 -0
- package/dist/refusals/concept-imports.js +33 -0
- package/dist/refusals/concept-imports.js.map +1 -0
- package/dist/refusals/concept-leftovers.d.ts +5 -0
- package/dist/refusals/concept-leftovers.d.ts.map +1 -0
- package/dist/refusals/concept-leftovers.js +26 -0
- package/dist/refusals/concept-leftovers.js.map +1 -0
- package/dist/refusals/concept-named.d.ts +3 -0
- package/dist/refusals/concept-named.d.ts.map +1 -0
- package/dist/refusals/concept-named.js +13 -0
- package/dist/refusals/concept-named.js.map +1 -0
- package/dist/refusals/concerns.d.ts +16 -0
- package/dist/refusals/concerns.d.ts.map +1 -0
- package/dist/refusals/concerns.js +9 -0
- package/dist/refusals/concerns.js.map +1 -0
- package/dist/refusals/cut-factories.d.ts +7 -0
- package/dist/refusals/cut-factories.d.ts.map +1 -0
- package/dist/refusals/cut-factories.js +30 -0
- package/dist/refusals/cut-factories.js.map +1 -0
- package/dist/refusals/earlier-guidance.d.ts +8 -0
- package/dist/refusals/earlier-guidance.d.ts.map +1 -0
- package/dist/refusals/earlier-guidance.js +21 -0
- package/dist/refusals/earlier-guidance.js.map +1 -0
- package/dist/refusals/factory-for-parameter.d.ts +7 -0
- package/dist/refusals/factory-for-parameter.d.ts.map +1 -0
- package/dist/refusals/factory-for-parameter.js +17 -0
- package/dist/refusals/factory-for-parameter.js.map +1 -0
- package/dist/refusals/first-parameter.d.ts +6 -0
- package/dist/refusals/first-parameter.d.ts.map +1 -0
- package/dist/refusals/first-parameter.js +12 -0
- package/dist/refusals/first-parameter.js.map +1 -0
- package/dist/refusals/ignore-code-types.d.ts +10 -0
- package/dist/refusals/ignore-code-types.d.ts.map +1 -0
- package/dist/refusals/ignore-code-types.js +53 -0
- package/dist/refusals/ignore-code-types.js.map +1 -0
- package/dist/refusals/imports-used-by.d.ts +6 -0
- package/dist/refusals/imports-used-by.d.ts.map +1 -0
- package/dist/refusals/imports-used-by.js +32 -0
- package/dist/refusals/imports-used-by.js.map +1 -0
- package/dist/refusals/leave-origins.d.ts +10 -0
- package/dist/refusals/leave-origins.d.ts.map +1 -0
- package/dist/refusals/leave-origins.js +35 -0
- package/dist/refusals/leave-origins.js.map +1 -0
- package/dist/refusals/legacy-move.d.ts +5 -0
- package/dist/refusals/legacy-move.d.ts.map +1 -0
- package/dist/refusals/legacy-move.js +14 -0
- package/dist/refusals/legacy-move.js.map +1 -0
- package/dist/refusals/markdown-files.d.ts +4 -0
- package/dist/refusals/markdown-files.d.ts.map +1 -0
- package/dist/refusals/markdown-files.js +13 -0
- package/dist/refusals/markdown-files.js.map +1 -0
- package/dist/refusals/member-start.d.ts +3 -0
- package/dist/refusals/member-start.d.ts.map +1 -0
- package/dist/refusals/member-start.js +14 -0
- package/dist/refusals/member-start.js.map +1 -0
- package/dist/refusals/migration-targets.d.ts +3 -0
- package/dist/refusals/migration-targets.d.ts.map +1 -0
- package/dist/refusals/migration-targets.js +3 -0
- package/dist/refusals/migration-targets.js.map +1 -0
- package/dist/refusals/move-named-specs.d.ts +16 -0
- package/dist/refusals/move-named-specs.d.ts.map +1 -0
- package/dist/refusals/move-named-specs.js +119 -0
- package/dist/refusals/move-named-specs.js.map +1 -0
- package/dist/refusals/move.d.ts +6 -1
- package/dist/refusals/move.d.ts.map +1 -1
- package/dist/refusals/named-move.d.ts +23 -0
- package/dist/refusals/named-move.d.ts.map +1 -0
- package/dist/refusals/named-move.js +2 -0
- package/dist/refusals/named-move.js.map +1 -0
- package/dist/refusals/named-moves.d.ts +10 -0
- package/dist/refusals/named-moves.d.ts.map +1 -0
- package/dist/refusals/named-moves.js +64 -0
- package/dist/refusals/named-moves.js.map +1 -0
- package/dist/refusals/named-plan.d.ts +7 -0
- package/dist/refusals/named-plan.d.ts.map +1 -0
- package/dist/refusals/named-plan.js +2 -0
- package/dist/refusals/named-plan.js.map +1 -0
- package/dist/refusals/own-factory.d.ts +14 -0
- package/dist/refusals/own-factory.d.ts.map +1 -0
- package/dist/refusals/own-factory.js +38 -0
- package/dist/refusals/own-factory.js.map +1 -0
- package/dist/refusals/plan-target.d.ts +7 -0
- package/dist/refusals/plan-target.d.ts.map +1 -0
- package/dist/refusals/plan-target.js +13 -0
- package/dist/refusals/plan-target.js.map +1 -0
- package/dist/refusals/planned-refusal.d.ts +13 -0
- package/dist/refusals/planned-refusal.d.ts.map +1 -0
- package/dist/refusals/planned-refusal.js +2 -0
- package/dist/refusals/planned-refusal.js.map +1 -0
- package/dist/refusals/propose-named-plan.d.ts +25 -0
- package/dist/refusals/propose-named-plan.d.ts.map +1 -0
- package/dist/refusals/propose-named-plan.js +67 -0
- package/dist/refusals/propose-named-plan.js.map +1 -0
- package/dist/refusals/propose-plan.d.ts.map +1 -1
- package/dist/refusals/propose-plan.js +3 -19
- package/dist/refusals/propose-plan.js.map +1 -1
- package/dist/refusals/read-concept-error.d.ts +9 -0
- package/dist/refusals/read-concept-error.d.ts.map +1 -0
- package/dist/refusals/read-concept-error.js +51 -0
- package/dist/refusals/read-concept-error.js.map +1 -0
- package/dist/refusals/read-named-plan.d.ts +4 -0
- package/dist/refusals/read-named-plan.d.ts.map +1 -0
- package/dist/refusals/read-named-plan.js +57 -0
- package/dist/refusals/read-named-plan.js.map +1 -0
- package/dist/refusals/refusal-class-file.d.ts +15 -0
- package/dist/refusals/refusal-class-file.d.ts.map +1 -0
- package/dist/refusals/refusal-class-file.js +38 -0
- package/dist/refusals/refusal-class-file.js.map +1 -0
- package/dist/refusals/rename-concept.d.ts +7 -0
- package/dist/refusals/rename-concept.d.ts.map +1 -0
- package/dist/refusals/rename-concept.js +15 -0
- package/dist/refusals/rename-concept.js.map +1 -0
- package/dist/refusals/render-factory.d.ts +1 -1
- package/dist/refusals/render-factory.d.ts.map +1 -1
- package/dist/refusals/render-factory.js +3 -2
- package/dist/refusals/render-factory.js.map +1 -1
- package/dist/refusals/rewrite-concept-usages.d.ts +11 -0
- package/dist/refusals/rewrite-concept-usages.d.ts.map +1 -0
- package/dist/refusals/rewrite-concept-usages.js +61 -0
- package/dist/refusals/rewrite-concept-usages.js.map +1 -0
- package/dist/refusals/rewrite-named-usages.d.ts +9 -0
- package/dist/refusals/rewrite-named-usages.d.ts.map +1 -0
- package/dist/refusals/rewrite-named-usages.js +14 -0
- package/dist/refusals/rewrite-named-usages.js.map +1 -0
- package/dist/refusals/rewrite-usages.d.ts.map +1 -1
- package/dist/refusals/rewrite-usages.js +10 -6
- package/dist/refusals/rewrite-usages.js.map +1 -1
- package/dist/refusals/say-refusals.d.ts +3 -0
- package/dist/refusals/say-refusals.d.ts.map +1 -0
- package/dist/refusals/say-refusals.js +8 -0
- package/dist/refusals/say-refusals.js.map +1 -0
- package/dist/refusals/split-concept-spec.d.ts +19 -0
- package/dist/refusals/split-concept-spec.d.ts.map +1 -0
- package/dist/refusals/split-concept-spec.js +74 -0
- package/dist/refusals/split-concept-spec.js.map +1 -0
- package/dist/refusals/stale-mentions.d.ts +10 -0
- package/dist/refusals/stale-mentions.d.ts.map +1 -0
- package/dist/refusals/stale-mentions.js +41 -0
- package/dist/refusals/stale-mentions.js.map +1 -0
- package/dist/refusals/undefined-words.d.ts +15 -0
- package/dist/refusals/undefined-words.d.ts.map +1 -0
- package/dist/refusals/undefined-words.js +26 -0
- package/dist/refusals/undefined-words.js.map +1 -0
- package/dist/refusals/with-codes.d.ts +11 -0
- package/dist/refusals/with-codes.d.ts.map +1 -0
- package/dist/refusals/with-codes.js +46 -0
- package/dist/refusals/with-codes.js.map +1 -0
- package/dist/refusals/with-imports.d.ts +3 -0
- package/dist/refusals/with-imports.d.ts.map +1 -0
- package/dist/refusals/with-imports.js +8 -0
- package/dist/refusals/with-imports.js.map +1 -0
- package/dist/refusals/write-refusal-classes.d.ts +9 -0
- package/dist/refusals/write-refusal-classes.d.ts.map +1 -0
- package/dist/refusals/write-refusal-classes.js +23 -0
- package/dist/refusals/write-refusal-classes.js.map +1 -0
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +2 -0
- package/dist/run.js.map +1 -1
- package/dist/stack/stack-vars.js +1 -1
- package/dist/stack/stack-vars.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/templates/aggregate/aggregate.ts.tpl +3 -0
- package/templates/aggregate/event-sourced.aggregate.ts.tpl +3 -0
- package/templates/command/handler.declared.ts.tpl +3 -0
- package/templates/command/handler.ts.tpl +3 -0
- package/templates/entity/entity.ts.tpl +3 -0
- package/templates/error/codes.ts.tpl +5 -0
- package/templates/error/refusal-case.spec.ts.tpl +8 -0
- package/templates/error/refusal-factory.ts.tpl +4 -0
- package/templates/error/refusal.spec.ts.tpl +7 -0
- package/templates/error/refusal.ts.tpl +8 -0
- package/templates/init/rules/domain.md.tpl +9 -2
- package/templates/init/rules/presentation.md.tpl +3 -0
- package/templates/pipeline/knip.json.tpl +5 -0
- package/templates/pipeline/package-scripts.json +3 -3
- package/templates/presets/identity/context/application/commands/accept-invitation/accept-invitation.handler.ts.tpl +22 -0
- package/templates/presets/identity/context/application/commands/change-member-role/change-member-role.handler.ts.tpl +16 -0
- package/templates/presets/identity/context/application/commands/deactivate-account/deactivate-account.handler.ts.tpl +16 -0
- package/templates/presets/identity/context/application/commands/decline-invitation/decline-invitation.handler.ts.tpl +16 -0
- package/templates/presets/identity/context/application/commands/grant-delegation/grant-delegation.handler.ts.tpl +10 -0
- package/templates/presets/identity/context/application/commands/open-organisation/open-organisation.handler.ts.tpl +16 -0
- package/templates/presets/identity/context/application/commands/provision-account/provision-account.handler.ts.tpl +10 -0
- package/templates/presets/identity/context/application/commands/remove-member/remove-member.handler.ts.tpl +16 -0
- package/templates/presets/identity/context/application/commands/revoke-delegation/revoke-delegation.handler.ts.tpl +10 -0
- package/templates/presets/identity/context/application/commands/revoke-invitation/revoke-invitation.handler.ts.tpl +10 -0
- package/templates/presets/identity/context/domain/aggregates/account.aggregate.ts.tpl +16 -0
- package/templates/presets/identity/context/domain/aggregates/delegation.aggregate.ts.tpl +28 -0
- package/templates/presets/identity/context/domain/aggregates/invitation.aggregate.ts.tpl +27 -0
- package/templates/presets/identity/context/domain/aggregates/member.aggregate.ts.tpl +31 -0
- package/templates/presets/identity/context/domain/errors/above-own-role.error.named.ts.tpl +13 -0
- package/templates/presets/identity/context/domain/errors/account-already-deactivated.error.named.ts.tpl +10 -0
- package/templates/presets/identity/context/domain/errors/already-member.error.named.ts.tpl +13 -0
- package/templates/presets/identity/context/domain/errors/codes.named.ts.tpl +33 -0
- package/templates/presets/identity/context/domain/errors/deactivated-account.error.named.ts.tpl +10 -0
- package/templates/presets/identity/context/domain/errors/delegation-not-active.error.named.ts.tpl +10 -0
- package/templates/presets/identity/context/domain/errors/delegation-period-inverted.error.named.ts.tpl +13 -0
- package/templates/presets/identity/context/domain/errors/delegation-to-oneself.error.named.ts.tpl +10 -0
- package/templates/presets/identity/context/domain/errors/delegation-too-long.error.named.ts.tpl +12 -0
- package/templates/presets/identity/context/domain/errors/delegation-with-no-right.error.named.ts.tpl +10 -0
- package/templates/presets/identity/context/domain/errors/email-not-verified.error.named.ts.tpl +13 -0
- package/templates/presets/identity/context/domain/errors/invalid-display-name.error.named.ts.tpl +10 -0
- package/templates/presets/identity/context/domain/errors/invalid-email-address.error.named.ts.tpl +10 -0
- package/templates/presets/identity/context/domain/errors/invalid-organisation-name.error.named.ts.tpl +10 -0
- package/templates/presets/identity/context/domain/errors/invalid-organisation-slug.error.named.ts.tpl +13 -0
- package/templates/presets/identity/context/domain/errors/invitation-expired.error.named.ts.tpl +13 -0
- package/templates/presets/identity/context/domain/errors/invitation-not-addressed-to-account.error.named.ts.tpl +13 -0
- package/templates/presets/identity/context/domain/errors/invitation-not-pending.error.named.ts.tpl +13 -0
- package/templates/presets/identity/context/domain/errors/last-owner.error.named.ts.tpl +12 -0
- package/templates/presets/identity/context/domain/errors/not-an-owner.error.named.ts.tpl +10 -0
- package/templates/presets/identity/context/domain/errors/organisation-slug-taken.error.named.ts.tpl +10 -0
- package/templates/presets/identity/context/domain/errors/own-role.error.named.ts.tpl +12 -0
- package/templates/presets/identity/context/domain/errors/right-not-in-role.error.named.ts.tpl +12 -0
- package/templates/presets/identity/context/domain/errors/unknown-account.error.named.ts.tpl +12 -0
- package/templates/presets/identity/context/domain/errors/unknown-delegation.error.named.ts.tpl +10 -0
- package/templates/presets/identity/context/domain/errors/unknown-invitation.error.named.ts.tpl +11 -0
- package/templates/presets/identity/context/domain/errors/unknown-member.error.named.ts.tpl +13 -0
- package/templates/presets/identity/context/domain/errors/unknown-organisation.error.named.ts.tpl +12 -0
- package/templates/presets/identity/context/domain/value-objects/delegation-period.vo.ts.tpl +16 -0
- package/templates/presets/identity/context/domain/value-objects/display-name.vo.ts.tpl +10 -0
- package/templates/presets/identity/context/domain/value-objects/email-address.vo.ts.tpl +10 -0
- package/templates/presets/identity/context/domain/value-objects/organisation-name.vo.ts.tpl +10 -0
- package/templates/presets/identity/context/domain/value-objects/organisation-slug.vo.ts.tpl +10 -0
- package/templates/state-machine/state-machine.ts.tpl +5 -0
- package/templates/value-object/value-object.ts.tpl +6 -0
- /package/templates/presets/identity/context/domain/errors/{account.error.ts.tpl → account.error.factories.ts.tpl} +0 -0
- /package/templates/presets/identity/context/domain/errors/{delegation.error.ts.tpl → delegation.error.factories.ts.tpl} +0 -0
- /package/templates/presets/identity/context/domain/errors/{invitation.error.ts.tpl → invitation.error.factories.ts.tpl} +0 -0
- /package/templates/presets/identity/context/domain/errors/{member.error.ts.tpl → member.error.factories.ts.tpl} +0 -0
- /package/templates/presets/identity/context/domain/errors/{organisation.error.ts.tpl → organisation.error.factories.ts.tpl} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eslint-in-project.js","sourceRoot":"","sources":["../../src/lint/eslint-in-project.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG,qBAAqB,CAAC;AAEvD;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;;;;;iEAKgC,iBAAiB;;;;;;;;;;;;;;;;;;;;CAoBjF,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { LintVerdict } from './lint-verdict.js';
|
|
2
|
+
/** The lines `ddd-ts-kit lint` adds after the report of ESLint: why it fails, and what is left to fix before an upgrade. */
|
|
3
|
+
export declare function formatVerdict({ errors, warnings, inTransition }: LintVerdict): string[];
|
|
4
|
+
//# sourceMappingURL=format-verdict.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-verdict.d.ts","sourceRoot":"","sources":["../../src/lint/format-verdict.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,4HAA4H;AAC5H,wBAAgB,aAAa,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE,WAAW,GAAG,MAAM,EAAE,CAcvF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** The lines `ddd-ts-kit lint` adds after the report of ESLint: why it fails, and what is left to fix before an upgrade. */
|
|
2
|
+
export function formatVerdict({ errors, warnings, inTransition }) {
|
|
3
|
+
const transition = inTransition.map(({ ruleId, until, warnings: count }) => `${ruleId}: ${count} warning(s), not counted while the rule is new; it becomes an error in ${until}: fix them before upgrading to it.`);
|
|
4
|
+
const failure = warnings > 0
|
|
5
|
+
? [
|
|
6
|
+
`${warnings} warning(s) fail the lint, as an error does: fix each one, or raise its rule to error and record the existing findings (docs/tools/quality-baseline.md, "Warnings fail the lint").`,
|
|
7
|
+
]
|
|
8
|
+
: [];
|
|
9
|
+
return [...transition, ...(errors > 0 ? [`${errors} error(s).`] : []), ...failure];
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=format-verdict.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-verdict.js","sourceRoot":"","sources":["../../src/lint/format-verdict.ts"],"names":[],"mappings":"AAEA,4HAA4H;AAC5H,MAAM,UAAU,aAAa,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAe;IAC3E,MAAM,UAAU,GAAG,YAAY,CAAC,GAAG,CACjC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,CACrC,GAAG,MAAM,KAAK,KAAK,0EAA0E,KAAK,oCAAoC,CACzI,CAAC;IAEF,MAAM,OAAO,GACX,QAAQ,GAAG,CAAC;QACV,CAAC,CAAC;YACE,GAAG,QAAQ,oLAAoL;SAChM;QACH,CAAC,CAAC,EAAE,CAAC;IAET,OAAO,CAAC,GAAG,UAAU,EAAE,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,OAAO,CAAC,CAAC;AACrF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** What `ddd-ts-kit lint` asks of the process that runs ESLint, in its environment. */
|
|
2
|
+
export interface LintRun {
|
|
3
|
+
readonly root: string;
|
|
4
|
+
readonly patterns: readonly string[];
|
|
5
|
+
readonly format: string;
|
|
6
|
+
readonly fix: boolean;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=lint-run.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lint-run.d.ts","sourceRoot":"","sources":["../../src/lint/lint-run.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lint-run.js","sourceRoot":"","sources":["../../src/lint/lint-run.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { LintAnswer } from './parse-lint-answer.js';
|
|
2
|
+
export interface LintVerdict {
|
|
3
|
+
readonly errors: number;
|
|
4
|
+
/** The warnings that fail the lint: every one but those of a rule in transition. */
|
|
5
|
+
readonly warnings: number;
|
|
6
|
+
/** Each rule of the kit in transition, the warnings it reported and the version in which it becomes an error. */
|
|
7
|
+
readonly inTransition: readonly {
|
|
8
|
+
readonly ruleId: string;
|
|
9
|
+
readonly until: string;
|
|
10
|
+
readonly warnings: number;
|
|
11
|
+
}[];
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* An error fails the lint, and so does a warning, unless its rule is one of the kit in transition:
|
|
15
|
+
* a new rule reaches projects as a warning first, and an upgrade of the kit never turns a green
|
|
16
|
+
* lint red. Its warnings are counted apart, to be fixed before the version that makes it an error.
|
|
17
|
+
*/
|
|
18
|
+
export declare function lintVerdict({ messages, transitions }: Pick<LintAnswer, 'messages' | 'transitions'>): LintVerdict;
|
|
19
|
+
//# sourceMappingURL=lint-verdict.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lint-verdict.d.ts","sourceRoot":"","sources":["../../src/lint/lint-verdict.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,oFAAoF;IACpF,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,iHAAiH;IACjH,QAAQ,CAAC,YAAY,EAAE,SAAS;QAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAClH;AAID;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,EAAE,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,aAAa,CAAC,GAAG,WAAW,CAmBhH"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const ERROR = 2;
|
|
2
|
+
/**
|
|
3
|
+
* An error fails the lint, and so does a warning, unless its rule is one of the kit in transition:
|
|
4
|
+
* a new rule reaches projects as a warning first, and an upgrade of the kit never turns a green
|
|
5
|
+
* lint red. Its warnings are counted apart, to be fixed before the version that makes it an error.
|
|
6
|
+
*/
|
|
7
|
+
export function lintVerdict({ messages, transitions }) {
|
|
8
|
+
const inTransition = new Map();
|
|
9
|
+
let warnings = 0;
|
|
10
|
+
for (const { ruleId } of messages.filter((message) => message.severity !== ERROR)) {
|
|
11
|
+
const until = ruleId === null ? undefined : transitions[ruleId];
|
|
12
|
+
if (ruleId === null || until === undefined) {
|
|
13
|
+
warnings += 1;
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
inTransition.set(ruleId, { ruleId, until, warnings: (inTransition.get(ruleId)?.warnings ?? 0) + 1 });
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return {
|
|
20
|
+
errors: messages.filter((message) => message.severity === ERROR).length,
|
|
21
|
+
warnings,
|
|
22
|
+
inTransition: [...inTransition.values()].sort((left, right) => left.ruleId.localeCompare(right.ruleId)),
|
|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AAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;KACxG,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** What the process that runs ESLint answers on its output: the report in the format asked, the messages, and the rules in transition. */
|
|
2
|
+
export interface LintAnswer {
|
|
3
|
+
readonly report: string;
|
|
4
|
+
readonly messages: readonly {
|
|
5
|
+
readonly ruleId: string | null;
|
|
6
|
+
readonly severity: number;
|
|
7
|
+
}[];
|
|
8
|
+
/** The version in which each rule of the kit in transition becomes an error, by rule id. */
|
|
9
|
+
readonly transitions: Readonly<Record<string, string>>;
|
|
10
|
+
}
|
|
11
|
+
/** The answer read from the output of that process, or undefined when it is not one. */
|
|
12
|
+
export declare function parseLintAnswer(output: string): LintAnswer | undefined;
|
|
13
|
+
//# sourceMappingURL=parse-lint-answer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse-lint-answer.d.ts","sourceRoot":"","sources":["../../src/lint/parse-lint-answer.ts"],"names":[],"mappings":"AAEA,0IAA0I;AAC1I,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,SAAS;QAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5F,4FAA4F;IAC5F,QAAQ,CAAC,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACxD;AAED,wFAAwF;AACxF,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAmBtE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { isRecord } from '../config/values/is-record.js';
|
|
2
|
+
/** The answer read from the output of that process, or undefined when it is not one. */
|
|
3
|
+
export function parseLintAnswer(output) {
|
|
4
|
+
const parsed = JSON.parse(output);
|
|
5
|
+
if (!isRecord(parsed) || typeof parsed['report'] !== 'string' || !Array.isArray(parsed['messages'])) {
|
|
6
|
+
return undefined;
|
|
7
|
+
}
|
|
8
|
+
const transitions = isRecord(parsed['transitions']) ? parsed['transitions'] : {};
|
|
9
|
+
return {
|
|
10
|
+
report: parsed['report'],
|
|
11
|
+
messages: parsed['messages'].filter(isRecord).map((message) => ({
|
|
12
|
+
ruleId: typeof message['ruleId'] === 'string' ? message['ruleId'] : null,
|
|
13
|
+
severity: typeof message['severity'] === 'number' ? message['severity'] : 2,
|
|
14
|
+
})),
|
|
15
|
+
transitions: Object.fromEntries(Object.entries(transitions).filter((entry) => typeof entry[1] === 'string')),
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=parse-lint-answer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse-lint-answer.js","sourceRoot":"","sources":["../../src/lint/parse-lint-answer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAUzD,wFAAwF;AACxF,MAAM,UAAU,eAAe,CAAC,MAAc;IAC5C,MAAM,MAAM,GAAY,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAE3C,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC;QACpG,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAEjF,OAAO;QACL,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC;QACxB,QAAQ,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;YAC9D,MAAM,EAAE,OAAO,OAAO,CAAC,QAAQ,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI;YACxE,QAAQ,EAAE,OAAO,OAAO,CAAC,UAAU,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;SAC5E,CAAC,CAAC;QACH,WAAW,EAAE,MAAM,CAAC,WAAW,CAC7B,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAA6B,EAAE,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC,CACvG;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { ReplayPlan } from './replay-plan.js';
|
|
2
2
|
/**
|
|
3
3
|
* The migrations of the branch that `base` does not have, by their `.sql` files, read before
|
|
4
|
-
* anything is deleted
|
|
5
|
-
* that
|
|
6
|
-
*
|
|
4
|
+
* anything is deleted, and whether the history forks from the base. Refused, with the fix: a
|
|
5
|
+
* journal that still holds conflict markers, a base that is not a commit, a base with migrations
|
|
6
|
+
* the branch has not merged, and, when the history forks, more than one migration of the branch
|
|
7
|
+
* that changes the schema.
|
|
7
8
|
*/
|
|
8
9
|
export declare function planReplay({ root, base }: Pick<ReplayPlan, 'root' | 'base'>): ReplayPlan;
|
|
9
10
|
//# sourceMappingURL=plan-replay.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-replay.d.ts","sourceRoot":"","sources":["../../src/migration/plan-replay.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plan-replay.d.ts","sourceRoot":"","sources":["../../src/migration/plan-replay.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAInD;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG,UAAU,CA0BxF"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
2
|
import path from 'node:path';
|
|
3
|
+
import { drizzleHistoryFindings } from '../check/migrations/drizzle-history-findings.js';
|
|
3
4
|
import { drizzleOutFolder } from '../check/migrations/drizzle-out-folder.js';
|
|
5
|
+
import { readDrizzleMigrations } from '../check/migrations/read-drizzle-migrations.js';
|
|
4
6
|
import { CliError } from '../cli-error.js';
|
|
5
7
|
import { runGit } from '../commit/run-git.js';
|
|
6
8
|
import { branchMigrations } from './branch-migrations.js';
|
|
@@ -8,9 +10,10 @@ import { migrationFiles } from './migration-files.js';
|
|
|
8
10
|
const CONFLICT_MARKER = /^(?:<{7}|={7}|>{7})(?: |$)/m;
|
|
9
11
|
/**
|
|
10
12
|
* The migrations of the branch that `base` does not have, by their `.sql` files, read before
|
|
11
|
-
* anything is deleted
|
|
12
|
-
* that
|
|
13
|
-
*
|
|
13
|
+
* anything is deleted, and whether the history forks from the base. Refused, with the fix: a
|
|
14
|
+
* journal that still holds conflict markers, a base that is not a commit, a base with migrations
|
|
15
|
+
* the branch has not merged, and, when the history forks, more than one migration of the branch
|
|
16
|
+
* that changes the schema.
|
|
14
17
|
*/
|
|
15
18
|
export function planReplay({ root, base }) {
|
|
16
19
|
const folder = drizzleOutFolder(root);
|
|
@@ -24,8 +27,20 @@ export function planReplay({ root, base }) {
|
|
|
24
27
|
throw new CliError(`${base} has migrations this branch does not have: ${notMerged.join(', ')}.`, `Merge it first (\`git merge ${base}\`), then run the replay again.`);
|
|
25
28
|
}
|
|
26
29
|
const migrations = branchMigrations({ files, folder, tags: here.filter((tag) => !onBase.includes(tag)) });
|
|
27
|
-
|
|
28
|
-
|
|
30
|
+
const forked = forks(root);
|
|
31
|
+
if (forked) {
|
|
32
|
+
refuseSeveralSchemaChanges(migrations);
|
|
33
|
+
}
|
|
34
|
+
return { root, base, folder, migrations, forked, found: files };
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Every migration of the base is here, so a history whose journal lists the files in the order
|
|
38
|
+
* they were generated, each snapshot from the one before, has those of the base first: the
|
|
39
|
+
* branch's follow the last of them, and generating them again would change nothing.
|
|
40
|
+
*/
|
|
41
|
+
function forks(root) {
|
|
42
|
+
const history = readDrizzleMigrations(root);
|
|
43
|
+
return history === undefined || drizzleHistoryFindings(history).length > 0;
|
|
29
44
|
}
|
|
30
45
|
function refuseConflictMarkers(root, journal, base) {
|
|
31
46
|
if (CONFLICT_MARKER.test(readIfPresent(path.join(root, journal)))) {
|
|
@@ -45,7 +60,7 @@ function refuseUnknownBase(root, base) {
|
|
|
45
60
|
function refuseSeveralSchemaChanges(migrations) {
|
|
46
61
|
const changing = migrations.filter((migration) => !migration.custom).map((migration) => migration.tag);
|
|
47
62
|
if (changing.length > 1) {
|
|
48
|
-
throw new CliError(`${changing.length} migrations of this branch change the schema (${changing.join(', ')}): drizzle-kit generates the difference between the schema files and the last snapshot, so it
|
|
63
|
+
throw new CliError(`${changing.length} migrations of this branch change the schema (${changing.join(', ')}): drizzle-kit generates the difference between the schema files and the last snapshot, so it cannot split them again into the steps they were, and one migration in their place would join steps planned apart (a table, then a constraint once it is filled).`, "Generate them again one at a time, in their order: delete them (each .sql file, its snapshot under meta/ and its journal entry), undo in the schema files every change of the branch but the first one's, run `npm run db:generate <its name>`, then bring back the next change and run it again, and so on (`git show <commit>:<schema file>` holds the schema of each step). Then the replay again for the custom ones. A worker keeps one working migration and generates it again when its slice changes the schema again.");
|
|
49
64
|
}
|
|
50
65
|
}
|
|
51
66
|
/** The names without `.sql` of the files listed one per line directly under the migrations folder. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-replay.js","sourceRoot":"","sources":["../../src/migration/plan-replay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAGtD,MAAM,eAAe,GAAG,6BAA6B,CAAC;AAEtD
|
|
1
|
+
{"version":3,"file":"plan-replay.js","sourceRoot":"","sources":["../../src/migration/plan-replay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;AACzF,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAC7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,gDAAgD,CAAC;AACvF,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAGtD,MAAM,eAAe,GAAG,6BAA6B,CAAC;AAEtD;;;;;;GAMG;AACH,MAAM,UAAU,UAAU,CAAC,EAAE,IAAI,EAAE,IAAI,EAAqC;IAC1E,MAAM,MAAM,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAEtC,qBAAqB,CA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AAggB,CACjgB,CAAC;IACJ,CAAC;AACH,CAAC;AAED,sGAAsG;AACtG,SAAS,OAAO,CAAC,OAAe;IAC9B,OAAO,OAAO;SACX,KAAK,CAAC,IAAI,CAAC;SACX,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;SAC1B,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;SACnE,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;SAChD,IAAI,EAAE,CAAC;AACZ,CAAC;AAED,SAAS,aAAa,CAAC,IAAY;IACjC,IAAI,CAAC;QACH,OAAO,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACvC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReplayPlan } from './replay-plan.js';
|
|
2
|
+
/** A migration of the branch whose name changes, from its tag to the one it takes. */
|
|
3
|
+
export interface RenamedMigration {
|
|
4
|
+
readonly from: string;
|
|
5
|
+
readonly to: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Gives the migrations of a branch that already follow the base the names a replay would give
|
|
9
|
+
* them, without generating them again: the `.sql` file and the tag of its journal entry are
|
|
10
|
+
* renamed, its number, its snapshot and its statements kept.
|
|
11
|
+
*/
|
|
12
|
+
export declare function renameBranchMigrations({ root, folder, migrations }: ReplayPlan, keepWorking: boolean): RenamedMigration[];
|
|
13
|
+
//# sourceMappingURL=rename-branch-migrations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rename-branch-migrations.d.ts","sourceRoot":"","sources":["../../src/migration/rename-branch-migrations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGnD,sFAAsF;AACtF,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,UAAU,EACxC,WAAW,EAAE,OAAO,GACnB,gBAAgB,EAAE,CAmBpB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { replayedName } from './replayed-name.js';
|
|
4
|
+
/**
|
|
5
|
+
* Gives the migrations of a branch that already follow the base the names a replay would give
|
|
6
|
+
* them, without generating them again: the `.sql` file and the tag of its journal entry are
|
|
7
|
+
* renamed, its number, its snapshot and its statements kept.
|
|
8
|
+
*/
|
|
9
|
+
export function renameBranchMigrations({ root, folder, migrations }, keepWorking) {
|
|
10
|
+
const journal = path.join(root, folder, 'meta', '_journal.json');
|
|
11
|
+
const renamed = [];
|
|
12
|
+
let text = fs.readFileSync(journal, 'utf8');
|
|
13
|
+
for (const { tag } of migrations) {
|
|
14
|
+
const at = tag.indexOf('_');
|
|
15
|
+
const to = at === -1 ? tag : `${tag.slice(0, at)}_${replayedName(tag, keepWorking)}`;
|
|
16
|
+
if (to !== tag) {
|
|
17
|
+
fs.renameSync(path.join(root, folder, `${tag}.sql`), path.join(root, folder, `${to}.sql`));
|
|
18
|
+
text = text.replace(JSON.stringify(tag), JSON.stringify(to));
|
|
19
|
+
renamed.push({ from: tag, to });
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
fs.writeFileSync(journal, text);
|
|
23
|
+
return renamed;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=rename-branch-migrations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rename-branch-migrations.js","sourceRoot":"","sources":["../../src/migration/rename-branch-migrations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAQlD;;;;GAIG;AACH,MAAM,UAAU,sBAAsB,CACpC,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAc,EACxC,WAAoB;IAEpB,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,CAAC,CAAC;IACjE,MAAM,OAAO,GAAuB,EAAE,CAAC;IACvC,IAAI,IAAI,GAAG,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAE5C,KAAK,MAAM,EAAE,GAAG,EAAE,IAAI,UAAU,EAAE,CAAC;QACjC,MAAM,EAAE,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAC5B,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,YAAY,CAAC,GAAG,EAAE,WAAW,CAAC,EAAE,CAAC;QAErF,IAAI,EAAE,KAAK,GAAG,EAAE,CAAC;YACf,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,GAAG,MAAM,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC;YAC3F,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC;YAC7D,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;IAED,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAEhC,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -12,9 +12,12 @@ export interface DrizzleReplay {
|
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* `drizzle-generate --replay`, after merging the trunk into a branch when both added migrations:
|
|
15
|
-
* deletes the migrations of the branch the base does not
|
|
16
|
-
* entries), then generates them again on top of the base,
|
|
17
|
-
* under their names. A custom migration gets its
|
|
15
|
+
* when the history forks from the base, deletes the migrations of the branch the base does not
|
|
16
|
+
* have (with their snapshots and journal entries), then generates them again on top of the base,
|
|
17
|
+
* one per deleted one, in their order and under their names. A custom migration gets its
|
|
18
|
+
* statements back; a generated one that drizzle-kit now writes otherwise (edited by hand, or a
|
|
19
|
+
* change of the base on what it changes) is refused and the folder put back. Migrations that
|
|
20
|
+
* already follow the base are only renamed, when their name changes.
|
|
18
21
|
*/
|
|
19
22
|
export declare function replayDrizzleMigrations(replay: DrizzleReplay, io: Io): number;
|
|
20
23
|
//# sourceMappingURL=replay-drizzle-migrations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replay-drizzle-migrations.d.ts","sourceRoot":"","sources":["../../src/migration/replay-drizzle-migrations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"replay-drizzle-migrations.d.ts","sourceRoot":"","sources":["../../src/migration/replay-drizzle-migrations.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAe5C,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,+FAA+F;IAC/F,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B;;;OAGG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,aAAa,EAAE,EAAE,EAAE,EAAE,GAAG,MAAM,CA8C7E"}
|
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
2
|
import path from 'node:path';
|
|
3
|
+
import { CliError } from '../cli-error.js';
|
|
3
4
|
import { WORKER_SCOPE_FILE } from '../commit/worker-scope-file.js';
|
|
4
5
|
import { deleteBranchMigrations } from './delete-branch-migrations.js';
|
|
5
6
|
import { generateAndRead } from './generate-and-read.js';
|
|
6
7
|
import { migrationFiles } from './migration-files.js';
|
|
7
8
|
import { planReplay } from './plan-replay.js';
|
|
9
|
+
import { renameBranchMigrations } from './rename-branch-migrations.js';
|
|
8
10
|
import { replayedName } from './replayed-name.js';
|
|
11
|
+
import { restoreMigrationFolder } from './restore-migration-folder.js';
|
|
12
|
+
import { sqlStatements } from './sql-statements.js';
|
|
9
13
|
import { tidyWrittenMigration } from './tidy-written-migration.js';
|
|
10
14
|
import { waitForNextSecond } from './wait-for-next-second.js';
|
|
11
15
|
/**
|
|
12
16
|
* `drizzle-generate --replay`, after merging the trunk into a branch when both added migrations:
|
|
13
|
-
* deletes the migrations of the branch the base does not
|
|
14
|
-
* entries), then generates them again on top of the base,
|
|
15
|
-
* under their names. A custom migration gets its
|
|
17
|
+
* when the history forks from the base, deletes the migrations of the branch the base does not
|
|
18
|
+
* have (with their snapshots and journal entries), then generates them again on top of the base,
|
|
19
|
+
* one per deleted one, in their order and under their names. A custom migration gets its
|
|
20
|
+
* statements back; a generated one that drizzle-kit now writes otherwise (edited by hand, or a
|
|
21
|
+
* change of the base on what it changes) is refused and the folder put back. Migrations that
|
|
22
|
+
* already follow the base are only renamed, when their name changes.
|
|
16
23
|
*/
|
|
17
24
|
export function replayDrizzleMigrations(replay, io) {
|
|
18
25
|
const plan = planReplay(replay);
|
|
@@ -20,10 +27,13 @@ export function replayDrizzleMigrations(replay, io) {
|
|
|
20
27
|
io.out(`No migration of this branch is missing from ${plan.base}: nothing to replay.`);
|
|
21
28
|
return 0;
|
|
22
29
|
}
|
|
30
|
+
const keepWorking = replay.final !== true && fs.existsSync(path.join(replay.root, WORKER_SCOPE_FILE));
|
|
31
|
+
if (!plan.forked) {
|
|
32
|
+
return renameInPlace(plan, keepWorking, io);
|
|
33
|
+
}
|
|
23
34
|
deleteBranchMigrations(plan);
|
|
24
35
|
io.out(`Deleted, with their snapshots and journal entries: ${plan.migrations.map((migration) => migration.tag).join(', ')}.`);
|
|
25
36
|
const written = new Set();
|
|
26
|
-
const keepWorking = replay.final !== true && fs.existsSync(path.join(replay.root, WORKER_SCOPE_FILE));
|
|
27
37
|
let since = 0;
|
|
28
38
|
for (const migration of plan.migrations) {
|
|
29
39
|
waitForNextSecond(since);
|
|
@@ -41,6 +51,19 @@ export function replayDrizzleMigrations(replay, io) {
|
|
|
41
51
|
io.out(`Stage ${plan.folder}/, then run \`npm run check:arch\`.`);
|
|
42
52
|
return 0;
|
|
43
53
|
}
|
|
54
|
+
/** The migrations of the branch follow the last one of the base already: drizzle-kit would write the same statements again. */
|
|
55
|
+
function renameInPlace(plan, keepWorking, io) {
|
|
56
|
+
const renamed = renameBranchMigrations(plan, keepWorking);
|
|
57
|
+
if (renamed.length === 0) {
|
|
58
|
+
io.out(`The migrations of this branch follow the last one of ${plan.base}: nothing to replay.`);
|
|
59
|
+
return 0;
|
|
60
|
+
}
|
|
61
|
+
for (const { from, to } of renamed) {
|
|
62
|
+
io.out(`Renamed ${from} to ${to}: it follows the last migration of ${plan.base}, nothing to generate again.`);
|
|
63
|
+
}
|
|
64
|
+
io.out(`Stage ${plan.folder}/, then run \`npm run check:arch\`.`);
|
|
65
|
+
return 0;
|
|
66
|
+
}
|
|
44
67
|
/** Generates one migration again: what it wrote, or the exit code of drizzle-kit when it failed. */
|
|
45
68
|
function generateAgain({ plan, migration, name }, replay, io) {
|
|
46
69
|
const { root, interactive } = replay;
|
|
@@ -57,7 +80,28 @@ function generateAgain({ plan, migration, name }, replay, io) {
|
|
|
57
80
|
if (migration.custom) {
|
|
58
81
|
fs.writeFileSync(path.join(root, sql), migration.sql);
|
|
59
82
|
}
|
|
83
|
+
else {
|
|
84
|
+
refuseChangedStatements({ plan, migration, name }, written.files.get(sql) ?? '');
|
|
85
|
+
}
|
|
60
86
|
io.out(`Generated ${path.posix.basename(sql, '.sql')} in place of ${migration.tag}.`);
|
|
61
87
|
return written.paths;
|
|
62
88
|
}
|
|
89
|
+
/**
|
|
90
|
+
* drizzle-kit writes the same statements for a change whichever schema it follows, unless the base
|
|
91
|
+
* changed the same thing: a generated migration whose statements differ from what it writes now was
|
|
92
|
+
* edited by hand, or needs a person. Generating it again would lose that, so the folder is put back.
|
|
93
|
+
*/
|
|
94
|
+
function refuseChangedStatements({ plan, migration, name }, generated) {
|
|
95
|
+
const branch = sqlStatements(migration.sql).map((statement) => statement.text);
|
|
96
|
+
const now = sqlStatements(generated).map((statement) => statement.text);
|
|
97
|
+
const at = Array.from({ length: Math.max(branch.length, now.length) }, (_, index) => index).find((index) => branch[index] !== now[index]);
|
|
98
|
+
if (at === undefined) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
restoreMigrationFolder(plan);
|
|
102
|
+
throw new CliError(`${migration.tag} is not what drizzle-kit writes for its change on top of ${plan.base}: the branch has ${quoted(branch[at])}, drizzle-kit writes ${quoted(now[at])}. Its SQL was edited by hand, or ${plan.base} changed what it changes, and generating it again would lose that: ${plan.folder}/ is back as the replay found it.`, `Generate it yourself on top of ${plan.base}: delete the migrations of the branch ${plan.base} does not have (each .sql file, its snapshot under meta/ and its journal entry), run \`npm run db:generate ${name}\`, write the edits again (\`git show HEAD:${plan.folder}/${migration.tag}.sql\` holds them; \`--custom\` for a migration written by hand). The replay then finds nothing forked.`);
|
|
103
|
+
}
|
|
104
|
+
function quoted(statement) {
|
|
105
|
+
return statement === undefined ? 'nothing more' : `\`${statement}\``;
|
|
106
|
+
}
|
|
63
107
|
//# sourceMappingURL=replay-drizzle-migrations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replay-drizzle-migrations.js","sourceRoot":"","sources":["../../src/migration/replay-drizzle-migrations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"replay-drizzle-migrations.js","sourceRoot":"","sources":["../../src/migration/replay-drizzle-migrations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAc9D;;;;;;;;GAQG;AACH,MAAM,UAAU,uBAAuB,CAAC,MAAqB,EA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,CAAC;AAED,SAAS,MAAM,CAAC,SAA6B;IAC3C,OAAO,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,KAAK,SAAS,IAAI,CAAC;AACvE,CAAC"}
|
|
@@ -7,5 +7,13 @@ export interface ReplayPlan {
|
|
|
7
7
|
readonly folder: string;
|
|
8
8
|
/** In their order. */
|
|
9
9
|
readonly migrations: readonly BranchMigration[];
|
|
10
|
+
/**
|
|
11
|
+
* The history on disk forks from the base: a snapshot of the branch was generated from one the
|
|
12
|
+
* base has since followed with its own, or the journal does not list the files as one chain.
|
|
13
|
+
* Otherwise the migrations of the branch already follow the last one of the base.
|
|
14
|
+
*/
|
|
15
|
+
readonly forked: boolean;
|
|
16
|
+
/** The files of the migrations folder and of its `meta/` as the replay found them, by path: what a refusal puts back. */
|
|
17
|
+
readonly found: ReadonlyMap<string, string>;
|
|
10
18
|
}
|
|
11
19
|
//# sourceMappingURL=replay-plan.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replay-plan.d.ts","sourceRoot":"","sources":["../../src/migration/replay-plan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,kFAAkF;AAClF,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,2DAA2D;IAC3D,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,sBAAsB;IACtB,QAAQ,CAAC,UAAU,EAAE,SAAS,eAAe,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"replay-plan.d.ts","sourceRoot":"","sources":["../../src/migration/replay-plan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,kFAAkF;AAClF,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,2DAA2D;IAC3D,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,sBAAsB;IACtB,QAAQ,CAAC,UAAU,EAAE,SAAS,eAAe,EAAE,CAAC;IAChD;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,yHAAyH;IACzH,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC7C"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ReplayPlan } from './replay-plan.js';
|
|
2
|
+
/** Puts the migrations folder and its `meta/` back as the replay found them: what it wrote is deleted, what it deleted written again. */
|
|
3
|
+
export declare function restoreMigrationFolder({ root, folder, found }: ReplayPlan): void;
|
|
4
|
+
//# sourceMappingURL=restore-migration-folder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restore-migration-folder.d.ts","sourceRoot":"","sources":["../../src/migration/restore-migration-folder.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,yIAAyI;AACzI,wBAAgB,sBAAsB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,UAAU,GAAG,IAAI,CAUhF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { migrationFiles } from './migration-files.js';
|
|
4
|
+
/** Puts the migrations folder and its `meta/` back as the replay found them: what it wrote is deleted, what it deleted written again. */
|
|
5
|
+
export function restoreMigrationFolder({ root, folder, found }) {
|
|
6
|
+
for (const file of migrationFiles(root, folder).keys()) {
|
|
7
|
+
if (!found.has(file)) {
|
|
8
|
+
fs.rmSync(path.join(root, file));
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
for (const [file, content] of found) {
|
|
12
|
+
fs.writeFileSync(path.join(root, file), content);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=restore-migration-folder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restore-migration-folder.js","sourceRoot":"","sources":["../../src/migration/restore-migration-folder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAGtD,yIAAyI;AACzI,MAAM,UAAU,sBAAsB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAc;IACxE,KAAK,MAAM,IAAI,IAAI,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;QACvD,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YACrB,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;QACnC,CAAC;IACH,CAAC;IAED,KAAK,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,KAAK,EAAE,CAAC;QACpC,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;AACH,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { Stack } from '../config/index.js';
|
|
2
2
|
/** The lockfile each package manager writes: what a cache of the installed dependencies is keyed on. */
|
|
3
3
|
export declare const LOCKFILES: Readonly<Record<Stack['packageManager'], string>>;
|
|
4
|
+
/** The copy of the lockfile each package manager writes under node_modules once an install ends: when it last installed. */
|
|
5
|
+
export declare const INSTALLED_LOCKFILES: Readonly<Record<Stack['packageManager'], string>>;
|
|
4
6
|
//# sourceMappingURL=lockfiles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lockfiles.d.ts","sourceRoot":"","sources":["../../src/package-manager/lockfiles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEhD,wGAAwG;AACxG,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,CAGvE,CAAC"}
|
|
1
|
+
{"version":3,"file":"lockfiles.d.ts","sourceRoot":"","sources":["../../src/package-manager/lockfiles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEhD,wGAAwG;AACxG,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,CAGvE,CAAC;AAEF,4HAA4H;AAC5H,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,CAGjF,CAAC"}
|
|
@@ -3,4 +3,9 @@ export const LOCKFILES = {
|
|
|
3
3
|
npm: 'package-lock.json',
|
|
4
4
|
pnpm: 'pnpm-lock.yaml',
|
|
5
5
|
};
|
|
6
|
+
/** The copy of the lockfile each package manager writes under node_modules once an install ends: when it last installed. */
|
|
7
|
+
export const INSTALLED_LOCKFILES = {
|
|
8
|
+
npm: 'node_modules/.package-lock.json',
|
|
9
|
+
pnpm: 'node_modules/.pnpm/lock.yaml',
|
|
10
|
+
};
|
|
6
11
|
//# sourceMappingURL=lockfiles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lockfiles.js","sourceRoot":"","sources":["../../src/package-manager/lockfiles.ts"],"names":[],"mappings":"AAEA,wGAAwG;AACxG,MAAM,CAAC,MAAM,SAAS,GAAsD;IAC1E,GAAG,EAAE,mBAAmB;IACxB,IAAI,EAAE,gBAAgB;CACvB,CAAC"}
|
|
1
|
+
{"version":3,"file":"lockfiles.js","sourceRoot":"","sources":["../../src/package-manager/lockfiles.ts"],"names":[],"mappings":"AAEA,wGAAwG;AACxG,MAAM,CAAC,MAAM,SAAS,GAAsD;IAC1E,GAAG,EAAE,mBAAmB;IACxB,IAAI,EAAE,gBAAgB;CACvB,CAAC;AAEF,4HAA4H;AAC5H,MAAM,CAAC,MAAM,mBAAmB,GAAsD;IACpF,GAAG,EAAE,iCAAiC;IACtC,IAAI,EAAE,8BAA8B;CACrC,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const NEEDED = [
|
|
3
3
|
{ key: 'style', values: ['declared'], flag: '--style declared' },
|
|
4
4
|
{ key: 'dependencies', values: ['signature'], flag: '--dependencies signature' },
|
|
5
|
-
{ key: 'refusals', values: ['factories'], flag: '--refusals factories' },
|
|
5
|
+
{ key: 'refusals', values: ['named', 'factories'], flag: '--refusals named or --refusals factories' },
|
|
6
6
|
{ key: 'valueObjects', values: ['throwing'], flag: '--value-objects throwing' },
|
|
7
7
|
{ key: 'routes', values: ['controllers'], flag: '--routes controllers' },
|
|
8
8
|
{ key: 'orm', values: ['knex', 'drizzle'], flag: '--orm knex or --orm drizzle' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity-refusal.js","sourceRoot":"","sources":["../../src/presets/identity-refusal.ts"],"names":[],"mappings":"AAGA,kHAAkH;AAClH,MAAM,MAAM,GAIN;IACJ,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE;IAChE,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,EAAE,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,0BAA0B,EAAE;IAChF,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,WAAW,CAAC,EAAE,I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U,eAAe,CAAC,MAAc;IAC5C,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAEtF,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO;QACL,OAAO,EAAE,iDAAiD,OAAO,CAAC,GAAG,OAAO,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI;QACzG,GAAG,EAAE,YAAY,OAAO,CAAC,IAAI,yKAAyK;KACvM,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity-terms.d.ts","sourceRoot":"","sources":["../../src/presets/identity-terms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE9D,mGAAmG;AACnG,eAAO,MAAM,cAAc,EAAE,SAAS,WAAW,
|
|
1
|
+
{"version":3,"file":"identity-terms.d.ts","sourceRoot":"","sources":["../../src/presets/identity-terms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE9D,mGAAmG;AACnG,eAAO,MAAM,cAAc,EAAE,SAAS,WAAW,EA4FhD,CAAC"}
|
|
@@ -53,5 +53,35 @@ export const IDENTITY_TERMS = [
|
|
|
53
53
|
term: 'Identity provider',
|
|
54
54
|
meaning: 'The system that authenticates the people (Keycloak): the application follows it, never stores its secrets',
|
|
55
55
|
},
|
|
56
|
+
{
|
|
57
|
+
term: 'Owner',
|
|
58
|
+
meaning: 'The highest role: an owner may do everything in an organisation, appointing or changing another owner included',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
term: 'Last owner',
|
|
62
|
+
meaning: 'The only owner an organisation has left: they are neither removed nor given another role, an organisation keeps one owner at least',
|
|
63
|
+
},
|
|
64
|
+
{ term: 'Above', meaning: 'Higher in the order of roles: an owner is above an admin, an admin above a member' },
|
|
65
|
+
{
|
|
66
|
+
term: 'Own role',
|
|
67
|
+
meaning: 'The role of the member who acts: they do not change it themselves, and act on no one above it',
|
|
68
|
+
},
|
|
69
|
+
{ term: 'Oneself', meaning: 'The member who acts, as the other party of their own act: no one delegates to oneself' },
|
|
70
|
+
{
|
|
71
|
+
term: 'Pending',
|
|
72
|
+
meaning: 'Said of an invitation issued and not yet accepted, declined, revoked or expired: the only state in which it is answered',
|
|
73
|
+
},
|
|
74
|
+
{ term: 'Expire', meaning: 'For an invitation, to pass its week unanswered: it is accepted or declined no more' },
|
|
75
|
+
{
|
|
76
|
+
term: 'Verified',
|
|
77
|
+
meaning: 'Said of an email address the identity provider confirmed belongs to the person: an account is provisioned with it only then',
|
|
78
|
+
},
|
|
79
|
+
{ term: 'Taken', meaning: 'Said of a slug an organisation holds already: two organisations never share one' },
|
|
80
|
+
{ term: 'Active', meaning: 'Said of a delegation granted and not ended yet: neither revoked nor past its period' },
|
|
81
|
+
{ term: 'Inverted', meaning: 'Said of a period whose end does not come after its start' },
|
|
82
|
+
{
|
|
83
|
+
term: 'Long',
|
|
84
|
+
meaning: 'Said of a delegation whose period lasts more than ninety days: a longer one is a role, not a delegation',
|
|
85
|
+
},
|
|
56
86
|
];
|
|
57
87
|
//# sourceMappingURL=identity-terms.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity-terms.js","sourceRoot":"","sources":["../../src/presets/identity-terms.ts"],"names":[],"mappings":"AAEA,mGAAmG;AACnG,MAAM,CAAC,MAAM,cAAc,GAA2B;IACpD;QACE,IAAI,EAAE,SAAS;QACf,OAAO,EACL,0JAA0J;KAC7J;IACD,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,qFAAqF,EAAE;IACnH;QACE,IAAI,EAAE,WAAW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IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,6EAA6E,EAAE;IAC1G,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,yEAAyE,EAAE;IACtG,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,uEAAuE,EAAE;IACpG;QACE,IAAI,EAAE,mBAAmB;QACzB,OAAO,EACL,2GAA2G;KAC9G;CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"identity-terms.js","sourceRoot":"","sources":["../../src/presets/identity-terms.ts"],"names":[],"mappings":"AAEA,mGAAmG;AACnG,MAAM,CAAC,MAAM,cAAc,GAA2B;IACpD;QACE,IAAI,EAAE,SAAS;QACf,OAAO,EACL,0JAA0J;KAC7J;IACD,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,qFAAqF,EAAE;IACnH;QACE,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,yGAAyG;KACnH;IACD,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,6EAA6E,EAAE;IAC9G;QACE,IAAI,EAAE,cAAc;QACpB,OAAO,EACL,qHAAqH;KACxH;IACD;QACE,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,iGAAiG;KAC3G;IACD,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,gEAAgE,EAAE;IAC7F,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,iFAAiF,EAAE;IAC5G;QACE,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,iGAAiG;KAC3G;IACD;QACE,IAAI,EAAE,YAAY;QAClB,OAAO,EACL,0HAA0H;KAC7H;IACD;QACE,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,4FAA4F;KACtG;IACD,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,4EAA4E,EAAE;IAC/G;QACE,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,4FAA4F;KACtG;IACD,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO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