200ok-ch/organice

View on GitHub
src/sync_backend_clients/fixtures/directory_listing.js

Summary

Maintainability
F
4 days
Test Coverage
// This is sample output from `dropboxClient.filesListFolder({ path })`
export const dropboxDirectoryListing = [
  {
    '.tag': 'folder',
    name: '.git',
    path_lower: '/org/.git',
    path_display: '/org/.git',
    id: 'id:F5f1JjqwcRQAAAAAAA3mgA',
  },
  {
    '.tag': 'folder',
    name: 'assets',
    path_lower: '/org/assets',
    path_display: '/org/assets',
    id: 'id:F5f1JjqwcRQAAAAAAA3nCw',
  },
  {
    '.tag': 'folder',
    name: 'files',
    path_lower: '/org/files',
    path_display: '/org/files',
    id: 'id:F5f1JjqwcRQAAAAAAA3nDQ',
  },
  {
    '.tag': 'file',
    name: '.gitattributes',
    path_lower: '/org/.gitattributes',
    path_display: '/org/.gitattributes',
    id: 'id:F5f1JjqwcRQAAAAAAA3nCA',
    client_modified: '2019-06-23T07:32:09Z',
    server_modified: '2019-07-20T09:34:26Z',
    rev: '53fe96ed00161b6f',
    size: 91,
    is_downloadable: true,
    content_hash: '43d523f9a28ed2f1b591a06445e83f91987df47e13c5081b28c3a25719fd35d5',
  },
  {
    '.tag': 'file',
    name: '.gitmodules',
    path_lower: '/org/.gitmodules',
    path_display: '/org/.gitmodules',
    id: 'id:F5f1JjqwcRQAAAAAAA3nCg',
    client_modified: '2018-11-03T09:40:52Z',
    server_modified: '2019-07-20T09:34:26Z',
    rev: '53fe96ef00161b6f',
    size: 171,
    is_downloadable: true,
    content_hash: '6480b740a3462fb3dd9341a730b3898f7ce389aa06d09fed9eea61f9f29c78a0',
  },
  {
    '.tag': 'file',
    name: 'cookies.org.gpg',
    path_lower: '/org/cookies.org.gpg',
    path_display: '/org/cookies.org.gpg',
    id: 'id:F5f1JjqwcRQAAAAAAA3nDA',
    client_modified: '2019-07-18T14:18:33Z',
    server_modified: '2019-07-20T09:34:26Z',
    rev: '53fe96f100161b6f',
    size: 1312,
    is_downloadable: true,
    content_hash: '2f23c846ad59f104def0d856e8cd924e093ebace68a777a134c9522dc90ee049',
  },
  {
    '.tag': 'file',
    name: 'media.org_archive',
    path_lower: '/org/media.org_archive',
    path_display: '/org/media.org_archive',
    id: 'id:F5f1JjqwcRQAAAAAAA3nEQ',
    client_modified: '2019-06-11T18:02:09Z',
    server_modified: '2019-07-20T09:34:26Z',
    rev: '53fe96f600161b6f',
    size: 1177,
    is_downloadable: true,
    content_hash: '296c905d8e188ab7119c0cf28cb527f3f9cfb4c752e93457f18431a9d69810f3',
  },
  {
    '.tag': 'file',
    name: 'mobileorg.org',
    path_lower: '/org/mobileorg.org',
    path_display: '/org/mobileorg.org',
    id: 'id:F5f1JjqwcRQAAAAAAA3nEg',
    client_modified: '2019-05-26T16:50:22Z',
    server_modified: '2019-07-20T09:34:26Z',
    rev: '53fe96f700161b6f',
    size: 0,
    is_downloadable: true,
    content_hash: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855',
  },
  {
    '.tag': 'file',
    name: 'mobileorg.org_archive',
    path_lower: '/org/mobileorg.org_archive',
    path_display: '/org/mobileorg.org_archive',
    id: 'id:F5f1JjqwcRQAAAAAAA3nEw',
    client_modified: '2019-05-26T16:50:24Z',
    server_modified: '2019-07-20T09:34:26Z',
    rev: '53fe96f800161b6f',
    size: 18509,
    is_downloadable: true,
    content_hash: 'a030093b47d52438f959e8cfa8994e750de91071de56e44f10e0f4ae7e0b92b4',
  },
  {
    '.tag': 'file',
    name: 'orgmode-export.conf',
    path_lower: '/org/orgmode-export.conf',
    path_display: '/org/orgmode-export.conf',
    id: 'id:F5f1JjqwcRQAAAAAAA3nFA',
    client_modified: '2018-12-20T12:34:42Z',
    server_modified: '2019-07-20T09:34:26Z',
    rev: '53fe96f900161b6f',
    size: 496,
    is_downloadable: true,
    content_hash: '442e11b83e4463f10bf7e003f0872bc36fe77e81dbe782958d5e50f66b9aa68e',
  },
  {
    '.tag': 'file',
    name: 'pivotal_todos.org',
    path_lower: '/org/pivotal_todos.org',
    path_display: '/org/pivotal_todos.org',
    id: 'id:F5f1JjqwcRQAAAAAAA3nFQ',
    client_modified: '2019-07-20T09:30:03Z',
    server_modified: '2019-07-20T09:34:26Z',
    rev: '53fe96fa00161b6f',
    size: 2529,
    is_downloadable: true,
    content_hash: '37b0c0d13c54efe15dbd4c2c41ba02d4ce1941e4b366fb44997b2f5f9ec2c562',
  },
  {
    '.tag': 'file',
    name: 'reference.org_archive',
    path_lower: '/org/reference.org_archive',
    path_display: '/org/reference.org_archive',
    id: 'id:F5f1JjqwcRQAAAAAAA3nGA',
    client_modified: '2019-06-04T19:23:54Z',
    server_modified: '2019-07-20T09:34:26Z',
    rev: '53fe96fd00161b6f',
    size: 13571,
    is_downloadable: true,
    content_hash: '27829d96298d1c66d19a686a9d293fa4eae05526ec3f717eb203f92c87471bbb',
  },
  {
    '.tag': 'file',
    name: 'reference.tex',
    path_lower: '/org/reference.tex',
    path_display: '/org/reference.tex',
    id: 'id:F5f1JjqwcRQAAAAAAA3nGQ',
    client_modified: '2018-10-22T15:32:57Z',
    server_modified: '2019-07-20T09:34:26Z',
    rev: '53fe96fe00161b6f',
    size: 5590,
    is_downloadable: true,
    content_hash: '8813eff49ffd76463514dd20f6f844097dd7f3f8cf7d2304052b29cc53672ee7',
  },
  {
    '.tag': 'file',
    name: 'things.tex',
    path_lower: '/org/things.tex',
    path_display: '/org/things.tex',
    id: 'id:F5f1JjqwcRQAAAAAAA3nHw',
    client_modified: '2019-07-29T14:59:36Z',
    server_modified: '2019-07-29T14:59:40Z',
    rev: '53feb21000161b6f',
    size: 1624,
    is_downloadable: true,
    content_hash: 'cd3908481ed780594823fef8eb84f90280ef3d576ec63cc434ba0c34c6baff23',
  },
  {
    '.tag': 'file',
    name: 'things.pdf',
    path_lower: '/org/things.pdf',
    path_display: '/org/things.pdf',
    id: 'id:F5f1JjqwcRQAAAAAAA343w',
    client_modified: '2019-07-29T14:59:37Z',
    server_modified: '2019-07-29T14:59:42Z',
    rev: '53feb21100161b6f',
    size: 51296,
    is_downloadable: true,
    content_hash: '54afdc8cd5b567cdf3e9cefdcb924b329943450ce89c4d22ec94c8653efc4947',
  },
  {
    '.tag': 'file',
    name: 'media.org.organice-bak',
    path_lower: '/org/media.org.organice-bak',
    path_display: '/org/media.org.organice-bak',
    id: 'id:F5f1JjqwcRQAAAAAAA36SQ',
    client_modified: '2019-08-04T18:06:58Z',
    server_modified: '2019-08-04T18:06:58Z',
    rev: '58f4e7518d42f00161b6f',
    size: 17199,
    is_downloadable: true,
    content_hash: 'f5890908046fc1567769aa7166294c5617edf784d1f6c6a6f15836d3e1d863bc',
  },
  {
    '.tag': 'file',
    name: 'reference.org',
    path_lower: '/org/reference.org',
    path_display: '/org/reference.org',
    id: 'id:F5f1JjqwcRQAAAAAAA3nFw',
    client_modified: '2019-08-04T21:05:48Z',
    server_modified: '2019-08-04T21:05:49Z',
    rev: '58f50f4bdbb7500161b6f',
    size: 108469,
    is_downloadable: true,
    content_hash: '09fa7405af9239344891da102e8f92a0582d4ff2d568fdcb8708b20b3bdb6fe5',
  },
  {
    '.tag': 'file',
    name: 'reference.org.organice-bak',
    path_lower: '/org/reference.org.organice-bak',
    path_display: '/org/reference.org.organice-bak',
    id: 'id:F5f1JjqwcRQAAAAAAA36tQ',
    client_modified: '2019-08-08T21:53:35Z',
    server_modified: '2019-08-08T21:53:35Z',
    rev: '58fa216eb98ad00161b6f',
    size: 108461,
    is_downloadable: true,
    content_hash: 'ec524f03585f72c03b822e3f8bc0efd3a9439bb311dbbd0a96235b158dcaa3af',
  },
  {
    '.tag': 'file',
    name: '.gitignore',
    path_lower: '/org/.gitignore',
    path_display: '/org/.gitignore',
    id: 'id:F5f1JjqwcRQAAAAAAA3nCQ',
    client_modified: '2019-08-09T08:36:00Z',
    server_modified: '2019-08-09T08:36:04Z',
    rev: '58fab109ebc0500161b6f',
    size: 1653,
    is_downloadable: true,
    content_hash: '06d1c3c279a8f970e8f97f55f3a999beac733c0e68098c747d330afba498ba1a',
  },
  {
    '.tag': 'file',
    name: 'media.org',
    path_lower: '/org/media.org',
    path_display: '/org/media.org',
    id: 'id:F5f1JjqwcRQAAAAAAA3nEA',
    client_modified: '2019-08-10T06:35:22Z',
    server_modified: '2019-08-10T06:35:27Z',
    rev: '58fbd7f16f2c400161b6f',
    size: 17397,
    is_downloadable: true,
    content_hash: 'e190f9bcf364548aab4f271e36e941a291b204837d116e3764c6d32b9037e60b',
  },
  {
    '.tag': 'file',
    name: 'refile-beorg.org',
    path_lower: '/org/refile-beorg.org',
    path_display: '/org/refile-beorg.org',
    id: 'id:F5f1JjqwcRQAAAAAAA3n7g',
    client_modified: '2019-08-10T17:55:04Z',
    server_modified: '2019-08-10T17:55:08Z',
    rev: '58fc6fdd32a4c00161b6f',
    size: 908,
    is_downloadable: true,
    content_hash: 'bf7ed771dc291c780a0180261a2c786d48d445949774bab059ae10c366a5a260',
  },
  {
    '.tag': 'file',
    name: 'things.org_archive',
    path_lower: '/org/things.org_archive',
    path_display: '/org/things.org_archive',
    id: 'id:F5f1JjqwcRQAAAAAAA3nHg',
    client_modified: '2019-08-10T17:55:05Z',
    server_modified: '2019-08-10T17:55:09Z',
    rev: '58fc6fde191d000161b6f',
    size: 541138,
    is_downloadable: true,
    content_hash: '740b573edc3b230678f2add459785bcca28aa0b0a158fa4b48a49cd755d3ddc5',
  },
  {
    '.tag': 'file',
    name: 'refile-beorg.org_archive',
    path_lower: '/org/refile-beorg.org_archive',
    path_display: '/org/refile-beorg.org_archive',
    id: 'id:F5f1JjqwcRQAAAAAAA3n7w',
    client_modified: '2019-08-10T17:55:06Z',
    server_modified: '2019-08-10T17:55:10Z',
    rev: '58fc6fdf0e47f00161b6f',
    size: 21180,
    is_downloadable: true,
    content_hash: '009299dcc211675bca958d7d1398b3594cebd67dec2d405519f98319ad273fae',
  },
  {
    '.tag': 'file',
    name: 'things.org',
    path_lower: '/org/things.org',
    path_display: '/org/things.org',
    id: 'id:F5f1JjqwcRQAAAAAAA36QQ',
    client_modified: '2019-08-10T17:55:53Z',
    server_modified: '2019-08-10T17:55:56Z',
    rev: '58fc700b67f9300161b6f',
    size: 347486,
    is_downloadable: true,
    content_hash: '096648647781a670b3e9277614a1203547be62b08f01cd8297dc098e16ea6c14',
  },
  {
    '.tag': 'file',
    name: 'reference.org_archive.organice-bak',
    path_lower: '/org/reference.org_archive.organice-bak',
    path_display: '/org/reference.org_archive.organice-bak',
    id: 'id:F5f1JjqwcRQAAAAAAA37bA',
    client_modified: '2019-08-10T20:43:53Z',
    server_modified: '2019-08-10T20:43:53Z',
    rev: '58fc95951104900161b6f',
    size: 13571,
    is_downloadable: true,
    content_hash: '27829d96298d1c66d19a686a9d293fa4eae05526ec3f717eb203f92c87471bbb',
  },
  {
    '.tag': 'file',
    name: 'things.org.organice-bak',
    path_lower: '/org/things.org.organice-bak',
    path_display: '/org/things.org.organice-bak',
    id: 'id:F5f1JjqwcRQAAAAAAA36SA',
    client_modified: '2019-08-10T20:44:01Z',
    server_modified: '2019-08-10T20:44:01Z',
    rev: '58fc959d0760100161b6f',
    size: 347486,
    is_downloadable: true,
    content_hash: '096648647781a670b3e9277614a1203547be62b08f01cd8297dc098e16ea6c14',
  },
];
export const dropboxDirectoryListingSorted = [
  {
    '.tag': 'folder',
    name: '.git',
    path_lower: '/org/.git',
    path_display: '/org/.git',
    id: 'id:F5f1JjqwcRQAAAAAAA3mgA',
  },
  {
    '.tag': 'folder',
    name: 'assets',
    path_lower: '/org/assets',
    path_display: '/org/assets',
    id: 'id:F5f1JjqwcRQAAAAAAA3nCw',
  },
  {
    '.tag': 'folder',
    name: 'files',
    path_lower: '/org/files',
    path_display: '/org/files',
    id: 'id:F5f1JjqwcRQAAAAAAA3nDQ',
  },
  {
    '.tag': 'file',
    name: 'media.org',
    path_lower: '/org/media.org',
    path_display: '/org/media.org',
    id: 'id:F5f1JjqwcRQAAAAAAA3nEA',
    client_modified: '2019-08-10T06:35:22Z',
    server_modified: '2019-08-10T06:35:27Z',
    rev: '58fbd7f16f2c400161b6f',
    size: 17397,
    is_downloadable: true,
    content_hash: 'e190f9bcf364548aab4f271e36e941a291b204837d116e3764c6d32b9037e60b',
  },
  {
    '.tag': 'file',
    name: 'media.org_archive',
    path_lower: '/org/media.org_archive',
    path_display: '/org/media.org_archive',
    id: 'id:F5f1JjqwcRQAAAAAAA3nEQ',
    client_modified: '2019-06-11T18:02:09Z',
    server_modified: '2019-07-20T09:34:26Z',
    rev: '53fe96f600161b6f',
    size: 1177,
    is_downloadable: true,
    content_hash: '296c905d8e188ab7119c0cf28cb527f3f9cfb4c752e93457f18431a9d69810f3',
  },
  {
    '.tag': 'file',
    name: 'mobileorg.org',
    path_lower: '/org/mobileorg.org',
    path_display: '/org/mobileorg.org',
    id: 'id:F5f1JjqwcRQAAAAAAA3nEg',
    client_modified: '2019-05-26T16:50:22Z',
    server_modified: '2019-07-20T09:34:26Z',
    rev: '53fe96f700161b6f',
    size: 0,
    is_downloadable: true,
    content_hash: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855',
  },
  {
    '.tag': 'file',
    name: 'mobileorg.org_archive',
    path_lower: '/org/mobileorg.org_archive',
    path_display: '/org/mobileorg.org_archive',
    id: 'id:F5f1JjqwcRQAAAAAAA3nEw',
    client_modified: '2019-05-26T16:50:24Z',
    server_modified: '2019-07-20T09:34:26Z',
    rev: '53fe96f800161b6f',
    size: 18509,
    is_downloadable: true,
    content_hash: 'a030093b47d52438f959e8cfa8994e750de91071de56e44f10e0f4ae7e0b92b4',
  },
  {
    '.tag': 'file',
    name: 'pivotal_todos.org',
    path_lower: '/org/pivotal_todos.org',
    path_display: '/org/pivotal_todos.org',
    id: 'id:F5f1JjqwcRQAAAAAAA3nFQ',
    client_modified: '2019-07-20T09:30:03Z',
    server_modified: '2019-07-20T09:34:26Z',
    rev: '53fe96fa00161b6f',
    size: 2529,
    is_downloadable: true,
    content_hash: '37b0c0d13c54efe15dbd4c2c41ba02d4ce1941e4b366fb44997b2f5f9ec2c562',
  },
  {
    '.tag': 'file',
    name: 'reference.org',
    path_lower: '/org/reference.org',
    path_display: '/org/reference.org',
    id: 'id:F5f1JjqwcRQAAAAAAA3nFw',
    client_modified: '2019-08-04T21:05:48Z',
    server_modified: '2019-08-04T21:05:49Z',
    rev: '58f50f4bdbb7500161b6f',
    size: 108469,
    is_downloadable: true,
    content_hash: '09fa7405af9239344891da102e8f92a0582d4ff2d568fdcb8708b20b3bdb6fe5',
  },
  {
    '.tag': 'file',
    name: 'reference.org_archive',
    path_lower: '/org/reference.org_archive',
    path_display: '/org/reference.org_archive',
    id: 'id:F5f1JjqwcRQAAAAAAA3nGA',
    client_modified: '2019-06-04T19:23:54Z',
    server_modified: '2019-07-20T09:34:26Z',
    rev: '53fe96fd00161b6f',
    size: 13571,
    is_downloadable: true,
    content_hash: '27829d96298d1c66d19a686a9d293fa4eae05526ec3f717eb203f92c87471bbb',
  },
  {
    '.tag': 'file',
    name: 'refile-beorg.org',
    path_lower: '/org/refile-beorg.org',
    path_display: '/org/refile-beorg.org',
    id: 'id:F5f1JjqwcRQAAAAAAA3n7g',
    client_modified: '2019-08-10T17:55:04Z',
    server_modified: '2019-08-10T17:55:08Z',
    rev: '58fc6fdd32a4c00161b6f',
    size: 908,
    is_downloadable: true,
    content_hash: 'bf7ed771dc291c780a0180261a2c786d48d445949774bab059ae10c366a5a260',
  },
  {
    '.tag': 'file',
    name: 'refile-beorg.org_archive',
    path_lower: '/org/refile-beorg.org_archive',
    path_display: '/org/refile-beorg.org_archive',
    id: 'id:F5f1JjqwcRQAAAAAAA3n7w',
    client_modified: '2019-08-10T17:55:06Z',
    server_modified: '2019-08-10T17:55:10Z',
    rev: '58fc6fdf0e47f00161b6f',
    size: 21180,
    is_downloadable: true,
    content_hash: '009299dcc211675bca958d7d1398b3594cebd67dec2d405519f98319ad273fae',
  },
  {
    '.tag': 'file',
    name: 'things.org',
    path_lower: '/org/things.org',
    path_display: '/org/things.org',
    id: 'id:F5f1JjqwcRQAAAAAAA36QQ',
    client_modified: '2019-08-10T17:55:53Z',
    server_modified: '2019-08-10T17:55:56Z',
    rev: '58fc700b67f9300161b6f',
    size: 347486,
    is_downloadable: true,
    content_hash: '096648647781a670b3e9277614a1203547be62b08f01cd8297dc098e16ea6c14',
  },
  {
    '.tag': 'file',
    name: 'things.org_archive',
    path_lower: '/org/things.org_archive',
    path_display: '/org/things.org_archive',
    id: 'id:F5f1JjqwcRQAAAAAAA3nHg',
    client_modified: '2019-08-10T17:55:05Z',
    server_modified: '2019-08-10T17:55:09Z',
    rev: '58fc6fde191d000161b6f',
    size: 541138,
    is_downloadable: true,
    content_hash: '740b573edc3b230678f2add459785bcca28aa0b0a158fa4b48a49cd755d3ddc5',
  },
];