├── .contentful └── vault-secrets.yaml ├── .eslintrc.js ├── .github ├── CODEOWNERS ├── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── config.yml │ └── feature_request.md ├── PULL_REQUEST_TEMPLATE.md ├── dependabot.yml └── workflows │ ├── build.yaml │ ├── check.yaml │ ├── codeql.yaml │ ├── dependabot-approve-and-request-merge.yaml │ ├── main.yaml │ ├── release.yaml │ └── test-integration.yaml ├── .gitignore ├── .npmrc ├── .nvmrc ├── CONTRIBUTION.md ├── LICENSE ├── README.md ├── big-space.json ├── bin └── contentful-import ├── catalog-info.yaml ├── example-config.json ├── jest.config.js ├── lib ├── index.ts ├── parseOptions.ts ├── tasks │ ├── get-destination-data.ts │ ├── init-client.ts │ └── push-to-space │ │ ├── assets.ts │ │ ├── creation.ts │ │ ├── publishing.ts │ │ └── push-to-space.ts ├── transform │ ├── transform-space.ts │ └── transformers.ts ├── types.ts ├── usageParams.ts └── utils │ ├── errors.ts │ ├── headers.ts │ ├── schema.ts │ ├── sort-entries.ts │ ├── sort-locales.ts │ └── validations.ts ├── package.json ├── test ├── integration │ ├── exports │ │ ├── simple │ │ │ └── sample-space.json │ │ ├── with-assets │ │ │ ├── images.ctfassets.net │ │ │ │ └── n96dbk12ti8z │ │ │ │ │ ├── 3zWbCFcZmV1WzzRYhVrd0O │ │ │ │ │ └── 3caa2d1f9d016cd0745ee74df1946137 │ │ │ │ │ │ └── logo.jpg │ │ │ │ │ └── t6Oc5OEaU8RMODFvQq96P │ │ │ │ │ └── 81fd6977c1b90cbe65b36dd9afac4861 │ │ │ │ │ └── logo.jpg │ │ │ └── space-with-downloaded-assets.json │ │ └── with-custom-editor-interface │ │ │ └── custom-editor-interface.json │ └── import-lib.test.ts ├── types.ts └── unit │ ├── __mocks__ │ ├── fs.ts │ └── mock-content-file.json │ ├── __snapshots__ │ └── validations.test.ts.snap │ ├── example-config.json │ ├── example-content.json │ ├── index.test.ts │ ├── parseOptions.test.ts │ ├── sort-entries.test.ts │ ├── sort-locales.test.ts │ ├── tasks │ ├── get-destination-data.test.ts │ ├── init-client.test.ts │ └── push │ │ ├── assets.test.ts │ │ ├── creation.test.ts │ │ ├── publishing.test.ts │ │ └── push-to-space.test.ts │ ├── transform │ ├── transform-space.test.ts │ └── transformers.test.ts │ ├── utils │ ├── headers.test.ts │ └── schema.test.ts │ ├── validations.test.ts │ └── yargs.test.ts ├── tsconfig.json └── tsconfig.test.json /.contentful/vault-secrets.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/.contentful/vault-secrets.yaml -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/.github/CODEOWNERS -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/.github/ISSUE_TEMPLATE/config.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/build.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/.github/workflows/build.yaml -------------------------------------------------------------------------------- /.github/workflows/check.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/.github/workflows/check.yaml -------------------------------------------------------------------------------- /.github/workflows/codeql.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/.github/workflows/codeql.yaml -------------------------------------------------------------------------------- /.github/workflows/dependabot-approve-and-request-merge.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/.github/workflows/dependabot-approve-and-request-merge.yaml -------------------------------------------------------------------------------- /.github/workflows/main.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/.github/workflows/main.yaml -------------------------------------------------------------------------------- /.github/workflows/release.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/.github/workflows/release.yaml -------------------------------------------------------------------------------- /.github/workflows/test-integration.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/.github/workflows/test-integration.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | v18 2 | -------------------------------------------------------------------------------- /CONTRIBUTION.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/CONTRIBUTION.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/README.md -------------------------------------------------------------------------------- /big-space.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/big-space.json -------------------------------------------------------------------------------- /bin/contentful-import: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/bin/contentful-import -------------------------------------------------------------------------------- /catalog-info.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/catalog-info.yaml -------------------------------------------------------------------------------- /example-config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/example-config.json -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/jest.config.js -------------------------------------------------------------------------------- /lib/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/lib/index.ts -------------------------------------------------------------------------------- /lib/parseOptions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/lib/parseOptions.ts -------------------------------------------------------------------------------- /lib/tasks/get-destination-data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/lib/tasks/get-destination-data.ts -------------------------------------------------------------------------------- /lib/tasks/init-client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/lib/tasks/init-client.ts -------------------------------------------------------------------------------- /lib/tasks/push-to-space/assets.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/lib/tasks/push-to-space/assets.ts -------------------------------------------------------------------------------- /lib/tasks/push-to-space/creation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/lib/tasks/push-to-space/creation.ts -------------------------------------------------------------------------------- /lib/tasks/push-to-space/publishing.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/lib/tasks/push-to-space/publishing.ts -------------------------------------------------------------------------------- /lib/tasks/push-to-space/push-to-space.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/lib/tasks/push-to-space/push-to-space.ts -------------------------------------------------------------------------------- /lib/transform/transform-space.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/lib/transform/transform-space.ts -------------------------------------------------------------------------------- /lib/transform/transformers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/lib/transform/transformers.ts -------------------------------------------------------------------------------- /lib/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/lib/types.ts -------------------------------------------------------------------------------- /lib/usageParams.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/lib/usageParams.ts -------------------------------------------------------------------------------- /lib/utils/errors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/lib/utils/errors.ts -------------------------------------------------------------------------------- /lib/utils/headers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/lib/utils/headers.ts -------------------------------------------------------------------------------- /lib/utils/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/lib/utils/schema.ts -------------------------------------------------------------------------------- /lib/utils/sort-entries.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/lib/utils/sort-entries.ts -------------------------------------------------------------------------------- /lib/utils/sort-locales.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/lib/utils/sort-locales.ts -------------------------------------------------------------------------------- /lib/utils/validations.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/lib/utils/validations.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/package.json -------------------------------------------------------------------------------- /test/integration/exports/simple/sample-space.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/test/integration/exports/simple/sample-space.json -------------------------------------------------------------------------------- /test/integration/exports/with-assets/images.ctfassets.net/n96dbk12ti8z/3zWbCFcZmV1WzzRYhVrd0O/3caa2d1f9d016cd0745ee74df1946137/logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/test/integration/exports/with-assets/images.ctfassets.net/n96dbk12ti8z/3zWbCFcZmV1WzzRYhVrd0O/3caa2d1f9d016cd0745ee74df1946137/logo.jpg -------------------------------------------------------------------------------- /test/integration/exports/with-assets/images.ctfassets.net/n96dbk12ti8z/t6Oc5OEaU8RMODFvQq96P/81fd6977c1b90cbe65b36dd9afac4861/logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/test/integration/exports/with-assets/images.ctfassets.net/n96dbk12ti8z/t6Oc5OEaU8RMODFvQq96P/81fd6977c1b90cbe65b36dd9afac4861/logo.jpg -------------------------------------------------------------------------------- /test/integration/exports/with-assets/space-with-downloaded-assets.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/test/integration/exports/with-assets/space-with-downloaded-assets.json -------------------------------------------------------------------------------- /test/integration/exports/with-custom-editor-interface/custom-editor-interface.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/test/integration/exports/with-custom-editor-interface/custom-editor-interface.json -------------------------------------------------------------------------------- /test/integration/import-lib.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/test/integration/import-lib.test.ts -------------------------------------------------------------------------------- /test/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/test/types.ts -------------------------------------------------------------------------------- /test/unit/__mocks__/fs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/test/unit/__mocks__/fs.ts -------------------------------------------------------------------------------- /test/unit/__mocks__/mock-content-file.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/test/unit/__mocks__/mock-content-file.json -------------------------------------------------------------------------------- /test/unit/__snapshots__/validations.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/test/unit/__snapshots__/validations.test.ts.snap -------------------------------------------------------------------------------- /test/unit/example-config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/test/unit/example-config.json -------------------------------------------------------------------------------- /test/unit/example-content.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/test/unit/example-content.json -------------------------------------------------------------------------------- /test/unit/index.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/test/unit/index.test.ts -------------------------------------------------------------------------------- /test/unit/parseOptions.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/test/unit/parseOptions.test.ts -------------------------------------------------------------------------------- /test/unit/sort-entries.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/test/unit/sort-entries.test.ts -------------------------------------------------------------------------------- /test/unit/sort-locales.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/test/unit/sort-locales.test.ts -------------------------------------------------------------------------------- /test/unit/tasks/get-destination-data.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/test/unit/tasks/get-destination-data.test.ts -------------------------------------------------------------------------------- /test/unit/tasks/init-client.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/test/unit/tasks/init-client.test.ts -------------------------------------------------------------------------------- /test/unit/tasks/push/assets.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/test/unit/tasks/push/assets.test.ts -------------------------------------------------------------------------------- /test/unit/tasks/push/creation.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/test/unit/tasks/push/creation.test.ts -------------------------------------------------------------------------------- /test/unit/tasks/push/publishing.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/test/unit/tasks/push/publishing.test.ts -------------------------------------------------------------------------------- /test/unit/tasks/push/push-to-space.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/test/unit/tasks/push/push-to-space.test.ts -------------------------------------------------------------------------------- /test/unit/transform/transform-space.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/test/unit/transform/transform-space.test.ts -------------------------------------------------------------------------------- /test/unit/transform/transformers.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/test/unit/transform/transformers.test.ts -------------------------------------------------------------------------------- /test/unit/utils/headers.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/test/unit/utils/headers.test.ts -------------------------------------------------------------------------------- /test/unit/utils/schema.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/test/unit/utils/schema.test.ts -------------------------------------------------------------------------------- /test/unit/validations.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/test/unit/validations.test.ts -------------------------------------------------------------------------------- /test/unit/yargs.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/test/unit/yargs.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/contentful/contentful-import/HEAD/tsconfig.test.json --------------------------------------------------------------------------------