@emuanalytics/flow-cli 1.3.31

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.
Files changed (143) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +0 -0
  3. package/dist/commands/apikeys/create.js +144 -0
  4. package/dist/commands/apikeys/create.js.map +1 -0
  5. package/dist/commands/apikeys/delete.js +74 -0
  6. package/dist/commands/apikeys/delete.js.map +1 -0
  7. package/dist/commands/apikeys/list.js +53 -0
  8. package/dist/commands/apikeys/list.js.map +1 -0
  9. package/dist/commands/apikeys/metadata.js +59 -0
  10. package/dist/commands/apikeys/metadata.js.map +1 -0
  11. package/dist/commands/apikeys.js +13 -0
  12. package/dist/commands/apikeys.js.map +1 -0
  13. package/dist/commands/applications.js +13 -0
  14. package/dist/commands/applications.js.map +1 -0
  15. package/dist/commands/apps/create.js +167 -0
  16. package/dist/commands/apps/create.js.map +1 -0
  17. package/dist/commands/apps/delete.js +74 -0
  18. package/dist/commands/apps/delete.js.map +1 -0
  19. package/dist/commands/apps/export.js +94 -0
  20. package/dist/commands/apps/export.js.map +1 -0
  21. package/dist/commands/apps/import.js +119 -0
  22. package/dist/commands/apps/import.js.map +1 -0
  23. package/dist/commands/apps/list.js +54 -0
  24. package/dist/commands/apps/list.js.map +1 -0
  25. package/dist/commands/apps/metadata.js +61 -0
  26. package/dist/commands/apps/metadata.js.map +1 -0
  27. package/dist/commands/apps/update.js +110 -0
  28. package/dist/commands/apps/update.js.map +1 -0
  29. package/dist/commands/databases/create.js +190 -0
  30. package/dist/commands/databases/create.js.map +1 -0
  31. package/dist/commands/databases/delete.js +74 -0
  32. package/dist/commands/databases/delete.js.map +1 -0
  33. package/dist/commands/databases/list.js +52 -0
  34. package/dist/commands/databases/list.js.map +1 -0
  35. package/dist/commands/databases.js +13 -0
  36. package/dist/commands/databases.js.map +1 -0
  37. package/dist/commands/datasets/attributes.js +48 -0
  38. package/dist/commands/datasets/attributes.js.map +1 -0
  39. package/dist/commands/datasets/create.js +180 -0
  40. package/dist/commands/datasets/create.js.map +1 -0
  41. package/dist/commands/datasets/delete.js +74 -0
  42. package/dist/commands/datasets/delete.js.map +1 -0
  43. package/dist/commands/datasets/export.js +95 -0
  44. package/dist/commands/datasets/export.js.map +1 -0
  45. package/dist/commands/datasets/list.js +52 -0
  46. package/dist/commands/datasets/list.js.map +1 -0
  47. package/dist/commands/datasets/metadata.js +59 -0
  48. package/dist/commands/datasets/metadata.js.map +1 -0
  49. package/dist/commands/datasets/query.js +86 -0
  50. package/dist/commands/datasets/query.js.map +1 -0
  51. package/dist/commands/datasets/update.js +166 -0
  52. package/dist/commands/datasets/update.js.map +1 -0
  53. package/dist/commands/datasets.js +13 -0
  54. package/dist/commands/datasets.js.map +1 -0
  55. package/dist/commands/job.js +13 -0
  56. package/dist/commands/job.js.map +1 -0
  57. package/dist/commands/jobs/delete.js +74 -0
  58. package/dist/commands/jobs/delete.js.map +1 -0
  59. package/dist/commands/jobs/list.js +52 -0
  60. package/dist/commands/jobs/list.js.map +1 -0
  61. package/dist/commands/jobs/metadata.js +36 -0
  62. package/dist/commands/jobs/metadata.js.map +1 -0
  63. package/dist/commands/new.js +63 -0
  64. package/dist/commands/new.js.map +1 -0
  65. package/dist/commands/styles/create.js +130 -0
  66. package/dist/commands/styles/create.js.map +1 -0
  67. package/dist/commands/styles/delete.js +74 -0
  68. package/dist/commands/styles/delete.js.map +1 -0
  69. package/dist/commands/styles/edit.js +37 -0
  70. package/dist/commands/styles/edit.js.map +1 -0
  71. package/dist/commands/styles/list.js +51 -0
  72. package/dist/commands/styles/list.js.map +1 -0
  73. package/dist/commands/styles/metadata.js +61 -0
  74. package/dist/commands/styles/metadata.js.map +1 -0
  75. package/dist/commands/styles/view.js +37 -0
  76. package/dist/commands/styles/view.js.map +1 -0
  77. package/dist/commands/styles.js +13 -0
  78. package/dist/commands/styles.js.map +1 -0
  79. package/dist/commands/tiles/create.js +221 -0
  80. package/dist/commands/tiles/create.js.map +1 -0
  81. package/dist/commands/tiles/delete.js +74 -0
  82. package/dist/commands/tiles/delete.js.map +1 -0
  83. package/dist/commands/tiles/list.js +51 -0
  84. package/dist/commands/tiles/list.js.map +1 -0
  85. package/dist/commands/tiles/metadata.js +61 -0
  86. package/dist/commands/tiles/metadata.js.map +1 -0
  87. package/dist/commands/tiles/preview.js +33 -0
  88. package/dist/commands/tiles/preview.js.map +1 -0
  89. package/dist/commands/tiles/tilespec.js +44 -0
  90. package/dist/commands/tiles/tilespec.js.map +1 -0
  91. package/dist/commands/tiles/update.js +194 -0
  92. package/dist/commands/tiles/update.js.map +1 -0
  93. package/dist/commands/tiles.js +13 -0
  94. package/dist/commands/tiles.js.map +1 -0
  95. package/dist/commands/upload/list.js +51 -0
  96. package/dist/commands/upload/list.js.map +1 -0
  97. package/dist/commands/upload/upload.js +171 -0
  98. package/dist/commands/upload/upload.js.map +1 -0
  99. package/dist/commands/upload.js +13 -0
  100. package/dist/commands/upload.js.map +1 -0
  101. package/dist/commands/users/create.js +140 -0
  102. package/dist/commands/users/create.js.map +1 -0
  103. package/dist/commands/users/delete.js +74 -0
  104. package/dist/commands/users/delete.js.map +1 -0
  105. package/dist/commands/users/list.js +52 -0
  106. package/dist/commands/users/list.js.map +1 -0
  107. package/dist/commands/users/metadata.js +61 -0
  108. package/dist/commands/users/metadata.js.map +1 -0
  109. package/dist/commands/users/update.js +151 -0
  110. package/dist/commands/users/update.js.map +1 -0
  111. package/dist/commands/users.js +13 -0
  112. package/dist/commands/users.js.map +1 -0
  113. package/dist/commands/version.js +35 -0
  114. package/dist/commands/version.js.map +1 -0
  115. package/dist/create-app/create-app.js +147 -0
  116. package/dist/create-app/create-app.js.map +1 -0
  117. package/dist/create-app/download.js +52 -0
  118. package/dist/create-app/download.js.map +1 -0
  119. package/dist/create-app/starters.js +18 -0
  120. package/dist/create-app/starters.js.map +1 -0
  121. package/dist/create-app/unzip.js +89 -0
  122. package/dist/create-app/unzip.js.map +1 -0
  123. package/dist/create-app/utils.js +134 -0
  124. package/dist/create-app/utils.js.map +1 -0
  125. package/dist/create-app/version.js +9 -0
  126. package/dist/create-app/version.js.map +1 -0
  127. package/dist/index.js +71 -0
  128. package/dist/index.js.map +1 -0
  129. package/dist/style-server/app.js +119 -0
  130. package/dist/style-server/app.js.map +1 -0
  131. package/dist/style-server/index.js +97 -0
  132. package/dist/style-server/index.js.map +1 -0
  133. package/dist/utils/index.js +263 -0
  134. package/dist/utils/index.js.map +1 -0
  135. package/maputnik/app.8c54efadcc6633a431f7.js +64 -0
  136. package/maputnik/bundle-stats.html +53 -0
  137. package/maputnik/bundle-stats.json +93486 -0
  138. package/maputnik/favicon.ico +0 -0
  139. package/maputnik/fonts/Roboto-Medium.ttf +0 -0
  140. package/maputnik/fonts/Roboto-Regular.ttf +0 -0
  141. package/maputnik/index.html +131 -0
  142. package/maputnik/manifest.json +9 -0
  143. package/package.json +84 -0
Binary file
Binary file
@@ -0,0 +1,131 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>Maputnik</title>
6
+ <meta name="viewport" content="width=device-width, initial-scale=1">
7
+ <link rel="manifest" href="manifest.json">
8
+ <style>
9
+ html {
10
+ background-color: rgb(28, 31, 36);
11
+ }
12
+
13
+ .loading {
14
+ text-align: center;
15
+ position: absolute;
16
+ width: 100vw;
17
+ height: 100vh;
18
+ top: 0;
19
+ left: 0;
20
+ display: flex;
21
+ flex-direction: column;
22
+ justify-content: center;
23
+ align-items: center;
24
+ }
25
+
26
+ .loading__logo svg {
27
+ width: 200px;
28
+ height: 200px;
29
+ }
30
+
31
+ .loading__text {
32
+ font-family: sans-serif;
33
+ color: white;
34
+ font-size: 1.2em;
35
+ padding-bottom: 2em;
36
+ }
37
+
38
+ </style>
39
+ </head>
40
+ <body>
41
+ <!-- TODO: Import dynamically -->
42
+ <!-- From <https://github.com/hail2u/color-blindness-emulation> -->
43
+ <svg
44
+ xmlns="http://www.w3.org/2000/svg"
45
+ version="1.1">
46
+ <defs>
47
+ <filter id="protanopia">
48
+ <feColorMatrix
49
+ in="SourceGraphic"
50
+ type="matrix"
51
+ values="0.567, 0.433, 0, 0, 0
52
+ 0.558, 0.442, 0, 0, 0
53
+ 0, 0.242, 0.758, 0, 0
54
+ 0, 0, 0, 1, 0"/>
55
+ </filter>
56
+ <filter id="protanomaly">
57
+ <feColorMatrix
58
+ in="SourceGraphic"
59
+ type="matrix"
60
+ values="0.817, 0.183, 0, 0, 0
61
+ 0.333, 0.667, 0, 0, 0
62
+ 0, 0.125, 0.875, 0, 0
63
+ 0, 0, 0, 1, 0"/>
64
+ </filter>
65
+ <filter id="deuteranopia">
66
+ <feColorMatrix
67
+ in="SourceGraphic"
68
+ type="matrix"
69
+ values="0.625, 0.375, 0, 0, 0
70
+ 0.7, 0.3, 0, 0, 0
71
+ 0, 0.3, 0.7, 0, 0
72
+ 0, 0, 0, 1, 0"/>
73
+ </filter>
74
+ <filter id="deuteranomaly">
75
+ <feColorMatrix
76
+ in="SourceGraphic"
77
+ type="matrix"
78
+ values="0.8, 0.2, 0, 0, 0
79
+ 0.258, 0.742, 0, 0, 0
80
+ 0, 0.142, 0.858, 0, 0
81
+ 0, 0, 0, 1, 0"/>
82
+ </filter>
83
+ <filter id="tritanopia">
84
+ <feColorMatrix
85
+ in="SourceGraphic"
86
+ type="matrix"
87
+ values="0.95, 0.05, 0, 0, 0
88
+ 0, 0.433, 0.567, 0, 0
89
+ 0, 0.475, 0.525, 0, 0
90
+ 0, 0, 0, 1, 0"/>
91
+ </filter>
92
+ <filter id="tritanomaly">
93
+ <feColorMatrix
94
+ in="SourceGraphic"
95
+ type="matrix"
96
+ values="0.967, 0.033, 0, 0, 0
97
+ 0, 0.733, 0.267, 0, 0
98
+ 0, 0.183, 0.817, 0, 0
99
+ 0, 0, 0, 1, 0"/>
100
+ </filter>
101
+ <filter id="achromatopsia">
102
+ <feColorMatrix
103
+ in="SourceGraphic"
104
+ type="matrix"
105
+ values="0.299, 0.587, 0.114, 0, 0
106
+ 0.299, 0.587, 0.114, 0, 0
107
+ 0.299, 0.587, 0.114, 0, 0
108
+ 0, 0, 0, 1, 0"/>
109
+ </filter>
110
+ <filter id="achromatomaly">
111
+ <feColorMatrix
112
+ in="SourceGraphic"
113
+ type="matrix"
114
+ values="0.618, 0.320, 0.062, 0, 0
115
+ 0.163, 0.775, 0.062, 0, 0
116
+ 0.163, 0.320, 0.516, 0, 0
117
+ 0, 0, 0, 1, 0"/>
118
+ </filter>
119
+ </defs>
120
+ </svg>
121
+
122
+ <div id="app"></div>
123
+ <div class="loading">
124
+ <div class="loading__logo">
125
+ <!-- replaced by 'html-webpack-inline-svg-plugin' -->
126
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100"><style>@keyframes circle-anim{0%,40%{fill-opacity:0}60%{fill-opacity:1}}</style><g stroke="#000" class="map"><use fill="#4eba6f" xlink:href="#1/map__main"/><use fill="none" xlink:href="#1/map__line1"/><use fill="none" xlink:href="#1/map__line2"/><use fill="none" xlink:href="#1/map__line3"/></g><g class="palette"><use fill="#fff" stroke="#000" xlink:href="#1/palette__main"/><use fill="none" stroke="#000" xlink:href="#1/palette__inner"/><use fill="#f7c44c" stroke-opacity="0" xlink:href="#1/palette__circle5" style="animation-delay:600ms;animation-name:circle-anim;will-change:transform;animation-timing-function:east-in-out;animation-duration:800ms;animation-iteration-count:infinite;animation-direction:alternate"/><use fill="#4eba6f" stroke-opacity="0" xlink:href="#1/palette__circle4" style="animation-delay:500ms;animation-name:circle-anim;will-change:transform;animation-timing-function:east-in-out;animation-duration:800ms;animation-iteration-count:infinite;animation-direction:alternate"/><use fill="#f7c44c" stroke-opacity="0" xlink:href="#1/palette__circle3" style="animation-delay:400ms;animation-name:circle-anim;will-change:transform;animation-timing-function:east-in-out;animation-duration:800ms;animation-iteration-count:infinite;animation-direction:alternate"/><use fill="#4eba6f" stroke-opacity="0" xlink:href="#1/palette__circle2" style="animation-delay:300ms;animation-name:circle-anim;will-change:transform;animation-timing-function:east-in-out;animation-duration:800ms;animation-iteration-count:infinite;animation-direction:alternate"/><use fill="#f7c44c" stroke-opacity="0" xlink:href="#1/palette__circle1" style="animation-delay:200ms;animation-name:circle-anim;will-change:transform;animation-timing-function:east-in-out;animation-duration:800ms;animation-iteration-count:infinite;animation-direction:alternate"/><use fill="#4eba6f" stroke-opacity="0" xlink:href="#1/palette__circle0" style="animation-delay:100ms;animation-name:circle-anim;will-change:transform;animation-timing-function:east-in-out;animation-duration:800ms;animation-iteration-count:infinite;animation-direction:alternate"/></g><g stroke="#000" class="brush"><use fill="#f7c44c" xlink:href="#1/brush__bottom"/><use fill="#fff" xlink:href="#1/brush__top"/></g><defs><circle id="1/palette__inner" cx="41.873" cy="61.901" r="6.389" stroke-width="2.3"/><circle id="1/palette__circle5" cx="54.347" cy="44.56" r="4.336"/><circle id="1/palette__circle4" cx="40.443" cy="41.555" r="4.336"/><circle id="1/palette__circle3" cx="29.651" cy="51.102" r="4.336"/><circle id="1/palette__circle2" cx="25.293" cy="65.836" r="4.336"/><circle id="1/palette__circle1" cx="32.764" cy="79.326" r="4.336"/><circle id="1/palette__circle0" cx="46.669" cy="80.571" r="4.336"/><path id="1/map__main" stroke-linejoin="round" stroke-width="2.366" d="M18.84 7.717l15.44 7.542 15.75-7.762 15.7 7.857L81.005 7.67 96.31 54.052 73.598 62.12 50.93 53.872l-25.1 8.066-22.668-8.066z"/><path id="1/map__line1" stroke-width="1.104" d="M65.556 15.07l7.647 46.838"/><path id="1/map__line2" stroke-width="1.104" d="M50.261 7.422l.717 46.6"/><path id="1/map__line3" stroke-width="1.104" d="M34.011 15.07l-8.603 46.6"/><path id="1/palette__main" stroke-width="2.3" d="M47.352 30.887c7.993.226 16.934 9.725 17.954 15.25 1.02 5.527-.743 11.125-4.298 13.875-3.554 2.75-8.6 2.905-8.723 8.302-.097 4.237 8.457 8.5 8.088 15.653-.406 7.857-15.508 13.15-30.943 6.102-8.556-3.906-14.249-13.653-13.385-26.238C16.833 52.334 22.32 43.658 27.382 39c5.977-5.503 11.977-8.337 19.97-8.112z"/><path id="1/brush__bottom" stroke-linejoin="round" stroke-width="2.3" d="M76.333 89.333c-1.645-9.794-4.375-35.26-4.32-37.887.056-2.627 2.52-4.34 5.36-4.317 2.842.022 5.098 1.87 5.314 4.27.107 1.2-1.576 28.06-2.318 37.844-.332 4.374-3.31 4.413-4.036.09z"/><path id="1/brush__top" stroke-linejoin="round" stroke-width="2.3" d="M77.184 26.428s-5.621 7.02-5.621 11.978c0 4.957 2.206 6.878 5.81 6.878 3.606 0 5.148-1.708 5.29-6.736.142-5.028-5.479-12.12-5.479-12.12z"/></defs></svg>
127
+ </div>
128
+ <div class="loading__text">Loading&hellip;</div>
129
+ </div>
130
+ <script type="text/javascript" src="app.8c54efadcc6633a431f7.js"></script></body>
131
+ </html>
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "Maputnik",
3
+ "short_name": "Maputnik",
4
+ "description": "Visual Map Designer",
5
+ "start_url": ".",
6
+ "display": "browser",
7
+ "background_color": "#1c1f24",
8
+ "theme_color": "#1c1f24"
9
+ }
package/package.json ADDED
@@ -0,0 +1,84 @@
1
+ {
2
+ "name": "@emuanalytics/flow-cli",
3
+ "version": "1.3.31",
4
+ "main": "index.js",
5
+ "author": "Robin Summerhill <robin.summerhill@emu-analytics.net",
6
+ "license": "Copyright 2018 Emu Analytics Limited",
7
+ "bin": {
8
+ "flow": "dist/index.js"
9
+ },
10
+ "files": [
11
+ "dist",
12
+ "maputnik"
13
+ ],
14
+ "scripts": {
15
+ "start": "node dist/index.js",
16
+ "build": "tsc",
17
+ "clean": "rimraf dist",
18
+ "lint": "tslint --project tsconfig.json --format stylish",
19
+ "format": "prettier \"src/**/*.ts\" --write",
20
+ "prepublishOnly": "npm run build",
21
+ "prebuild": "npm run clean",
22
+ "precommit": "lint-staged"
23
+ },
24
+ "devDependencies": {
25
+ "@types/chalk": "^0.4.31",
26
+ "@types/cli-spinner": "^0.2.0",
27
+ "@types/express": "^4.17.2",
28
+ "@types/find-up": "^2.1.1",
29
+ "@types/humanize-plus": "^1.8.0",
30
+ "@types/inquirer": "^6.5.0",
31
+ "@types/jest": "^24.0.22",
32
+ "@types/node-emoji": "^1.4.0",
33
+ "@types/node-fetch": "^2.5.5",
34
+ "@types/opn": "^5.1.0",
35
+ "@types/ora": "^1.3.4",
36
+ "@types/string-width": "^2.0.0",
37
+ "@types/table": "^4.0.5",
38
+ "@types/yargs": "^11.1.1",
39
+ "@types/yauzl": "^2.9.1",
40
+ "prettier": "^1.18.2",
41
+ "tslint": "^5.20.0",
42
+ "typescript": "^4.7.4"
43
+ },
44
+ "dependencies": {
45
+ "@emuanalytics/flow-engine-client": "^1.3.31",
46
+ "@types/uuid": "^8.3.4",
47
+ "JSONStream": "^1.3.5",
48
+ "chalk": "^2.0.1",
49
+ "cli-spinner": "^0.2.10",
50
+ "colorette": "^2.0.19",
51
+ "csv-stringify": "^5.3.3",
52
+ "debounce-promise": "^3.1.0",
53
+ "debug": "^4.1.0",
54
+ "execa": "^5.1.1",
55
+ "express": "^4.16.3",
56
+ "find-up": "^3.0.0",
57
+ "https-proxy-agent": "^2.2.1",
58
+ "humanize-plus": "^1.8.2",
59
+ "inquirer": "^7.0.0",
60
+ "lint-staged": "^9.4.2",
61
+ "lodash.get": "^4.4.2",
62
+ "loose-json": "^1.1.2",
63
+ "moment": "^2.24.0",
64
+ "node-emoji": "^1.7.0",
65
+ "node-fetch": "^2.6.0",
66
+ "opn": "^5.3.0",
67
+ "ora": "^3.0.0",
68
+ "replace-in-file": "^5.0.2",
69
+ "string-width": "^2.1.1",
70
+ "table": "^5.4.1",
71
+ "tslib": "^1.9.3",
72
+ "uuid": "^8.3.2",
73
+ "yargs": "^17.5.1",
74
+ "yauzl": "^2.10.0"
75
+ },
76
+ "lint-staged": {
77
+ "./src/**/*.ts": [
78
+ "tslint -p tsconfig.json",
79
+ "prettier --write",
80
+ "git add"
81
+ ]
82
+ },
83
+ "gitHead": "e5974a582bed28bf44655ee8ada5cf23987fa2a4"
84
+ }