├── .gitignore ├── README.md ├── package.json ├── samples ├── csv-indexed │ ├── test.7aM3oA2Vey.csv │ ├── test.INDEX.csv │ ├── test.WrZcYDcSEK.csv │ ├── test.ZAeXu3t9C1.csv │ ├── test.bqXnVStK7.csv │ ├── test.iIuPVhg34y.csv │ ├── test.pdLpX1tVHd.csv │ ├── test.tCyFRILto0.csv │ └── test.wba2gQC7m-.csv ├── test-db.json ├── test-obj-subcoll.json ├── test-obj.json ├── test.csv ├── test.indexed.xlsx ├── test.json ├── test.simple-with-empty-fields.csv ├── test.simple-with-empty-fields.xlsx └── test.simple.xlsx ├── src ├── exportCollection │ └── index.ts ├── importCollection │ └── index.ts ├── index.ts └── shared.ts └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | credentials.json 3 | /scraps/* 4 | /dist/* 5 | 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codediodeio/firestore-migrator/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codediodeio/firestore-migrator/HEAD/package.json -------------------------------------------------------------------------------- /samples/csv-indexed/test.7aM3oA2Vey.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codediodeio/firestore-migrator/HEAD/samples/csv-indexed/test.7aM3oA2Vey.csv -------------------------------------------------------------------------------- /samples/csv-indexed/test.INDEX.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codediodeio/firestore-migrator/HEAD/samples/csv-indexed/test.INDEX.csv -------------------------------------------------------------------------------- /samples/csv-indexed/test.WrZcYDcSEK.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codediodeio/firestore-migrator/HEAD/samples/csv-indexed/test.WrZcYDcSEK.csv -------------------------------------------------------------------------------- /samples/csv-indexed/test.ZAeXu3t9C1.csv: -------------------------------------------------------------------------------- 1 | doc_id,text,timestamp 2 | qQELC2QgHbD31ohBSo46,hi,018-03-30T14:01:03.652Z 3 | -------------------------------------------------------------------------------- /samples/csv-indexed/test.bqXnVStK7.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codediodeio/firestore-migrator/HEAD/samples/csv-indexed/test.bqXnVStK7.csv -------------------------------------------------------------------------------- /samples/csv-indexed/test.iIuPVhg34y.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codediodeio/firestore-migrator/HEAD/samples/csv-indexed/test.iIuPVhg34y.csv -------------------------------------------------------------------------------- /samples/csv-indexed/test.pdLpX1tVHd.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codediodeio/firestore-migrator/HEAD/samples/csv-indexed/test.pdLpX1tVHd.csv -------------------------------------------------------------------------------- /samples/csv-indexed/test.tCyFRILto0.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codediodeio/firestore-migrator/HEAD/samples/csv-indexed/test.tCyFRILto0.csv -------------------------------------------------------------------------------- /samples/csv-indexed/test.wba2gQC7m-.csv: -------------------------------------------------------------------------------- 1 | doc_id,timestamp,text 2 | GXkDFRSeMIhcEuMZ9GTH,018-03-30T14:01:03.652Z,hi 3 | -------------------------------------------------------------------------------- /samples/test-db.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codediodeio/firestore-migrator/HEAD/samples/test-db.json -------------------------------------------------------------------------------- /samples/test-obj-subcoll.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codediodeio/firestore-migrator/HEAD/samples/test-obj-subcoll.json -------------------------------------------------------------------------------- /samples/test-obj.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codediodeio/firestore-migrator/HEAD/samples/test-obj.json -------------------------------------------------------------------------------- /samples/test.csv: -------------------------------------------------------------------------------- 1 | Name,Price,SKU,Color 2 | Lamp,23.34,2123m12mxi,Blue 3 | Rug,99.98,n232ej23m,Orange -------------------------------------------------------------------------------- /samples/test.indexed.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codediodeio/firestore-migrator/HEAD/samples/test.indexed.xlsx -------------------------------------------------------------------------------- /samples/test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codediodeio/firestore-migrator/HEAD/samples/test.json -------------------------------------------------------------------------------- /samples/test.simple-with-empty-fields.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codediodeio/firestore-migrator/HEAD/samples/test.simple-with-empty-fields.csv -------------------------------------------------------------------------------- /samples/test.simple-with-empty-fields.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codediodeio/firestore-migrator/HEAD/samples/test.simple-with-empty-fields.xlsx -------------------------------------------------------------------------------- /samples/test.simple.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codediodeio/firestore-migrator/HEAD/samples/test.simple.xlsx -------------------------------------------------------------------------------- /src/exportCollection/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codediodeio/firestore-migrator/HEAD/src/exportCollection/index.ts -------------------------------------------------------------------------------- /src/importCollection/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codediodeio/firestore-migrator/HEAD/src/importCollection/index.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codediodeio/firestore-migrator/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/shared.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codediodeio/firestore-migrator/HEAD/src/shared.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codediodeio/firestore-migrator/HEAD/tsconfig.json --------------------------------------------------------------------------------