├── .eslintignore ├── .eslintrc.js ├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .prettierrc ├── CHANGELOG.md ├── DEVELOPMENT.md ├── LICENSE.md ├── README.md ├── esbuild.mjs ├── eslint.config.js ├── package.json ├── pnpm-lock.yaml ├── scripts └── types.js ├── src ├── cli.ts ├── config │ ├── field-types.ts │ ├── index.ts │ ├── relationship-patterns.ts │ ├── system-collections.ts │ └── system-fields.ts ├── constants │ └── system_fields.ts ├── generators │ └── typescript.ts ├── index.ts ├── services │ ├── .eslintrc.json │ ├── CoreSchemaProcessor.ts │ ├── InterfaceGenerator.ts │ ├── PropertyGenerator.ts │ ├── RelationshipProcessor.ts │ ├── RelationshipResolver.ts │ ├── RelationshipTracker.ts │ ├── SchemaProcessor.ts │ ├── SchemaProcessor.ts.bak │ ├── SchemaReader.ts │ ├── SystemCollectionManager.ts │ ├── SystemFieldManager.ts │ ├── TypeDefinitionGenerator.ts │ ├── TypeNameManager.ts │ └── TypeTracker.ts ├── types │ └── index.ts └── utils │ ├── logger.ts │ ├── schema.ts │ └── string.ts ├── tsconfig.json └── types ├── openapi-types-extensions.d.ts └── yargs-helpers.d.ts /.eslintignore: -------------------------------------------------------------------------------- 1 | /build 2 | node_modules 3 | src/services/CoreSchemaProcessor.ts -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/.prettierrc -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /DEVELOPMENT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/DEVELOPMENT.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/README.md -------------------------------------------------------------------------------- /esbuild.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/esbuild.mjs -------------------------------------------------------------------------------- /eslint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/eslint.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /scripts/types.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/scripts/types.js -------------------------------------------------------------------------------- /src/cli.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/src/cli.ts -------------------------------------------------------------------------------- /src/config/field-types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/src/config/field-types.ts -------------------------------------------------------------------------------- /src/config/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/src/config/index.ts -------------------------------------------------------------------------------- /src/config/relationship-patterns.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/src/config/relationship-patterns.ts -------------------------------------------------------------------------------- /src/config/system-collections.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/src/config/system-collections.ts -------------------------------------------------------------------------------- /src/config/system-fields.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/src/config/system-fields.ts -------------------------------------------------------------------------------- /src/constants/system_fields.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/src/constants/system_fields.ts -------------------------------------------------------------------------------- /src/generators/typescript.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/services/.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/src/services/.eslintrc.json -------------------------------------------------------------------------------- /src/services/CoreSchemaProcessor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/src/services/CoreSchemaProcessor.ts -------------------------------------------------------------------------------- /src/services/InterfaceGenerator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/src/services/InterfaceGenerator.ts -------------------------------------------------------------------------------- /src/services/PropertyGenerator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/src/services/PropertyGenerator.ts -------------------------------------------------------------------------------- /src/services/RelationshipProcessor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/src/services/RelationshipProcessor.ts -------------------------------------------------------------------------------- /src/services/RelationshipResolver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/src/services/RelationshipResolver.ts -------------------------------------------------------------------------------- /src/services/RelationshipTracker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/src/services/RelationshipTracker.ts -------------------------------------------------------------------------------- /src/services/SchemaProcessor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/src/services/SchemaProcessor.ts -------------------------------------------------------------------------------- /src/services/SchemaProcessor.ts.bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/src/services/SchemaProcessor.ts.bak -------------------------------------------------------------------------------- /src/services/SchemaReader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/src/services/SchemaReader.ts -------------------------------------------------------------------------------- /src/services/SystemCollectionManager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/src/services/SystemCollectionManager.ts -------------------------------------------------------------------------------- /src/services/SystemFieldManager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/src/services/SystemFieldManager.ts -------------------------------------------------------------------------------- /src/services/TypeDefinitionGenerator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/src/services/TypeDefinitionGenerator.ts -------------------------------------------------------------------------------- /src/services/TypeNameManager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/src/services/TypeNameManager.ts -------------------------------------------------------------------------------- /src/services/TypeTracker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/src/services/TypeTracker.ts -------------------------------------------------------------------------------- /src/types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/src/types/index.ts -------------------------------------------------------------------------------- /src/utils/logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/src/utils/logger.ts -------------------------------------------------------------------------------- /src/utils/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/src/utils/schema.ts -------------------------------------------------------------------------------- /src/utils/string.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/src/utils/string.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/tsconfig.json -------------------------------------------------------------------------------- /types/openapi-types-extensions.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/types/openapi-types-extensions.d.ts -------------------------------------------------------------------------------- /types/yargs-helpers.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenGunn/directus-typeforge/HEAD/types/yargs-helpers.d.ts --------------------------------------------------------------------------------