From 2220aeb50a877c8e2ee8af88fb88331613216e23 Mon Sep 17 00:00:00 2001 From: Phillip Kelly Date: Tue, 16 Aug 2022 10:47:13 -0400 Subject: [PATCH 1/8] DIG-387: Handling Shared Components --- services-js/permit-finder/package.json | 2 +- yarn.lock | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/services-js/permit-finder/package.json b/services-js/permit-finder/package.json index a009fda00..9afe990ec 100644 --- a/services-js/permit-finder/package.json +++ b/services-js/permit-finder/package.json @@ -68,7 +68,7 @@ "devDependencies": { "@babel/cli": "^7.6.0", "@babel/core": "^7.6.0", - "@cityofboston/config-babel": "^0.0.0", + "babel-config": "CityOfBoston/config-babel#main", "@cityofboston/config-typescript": "^0.0.0", "@cityofboston/graphql-typescript": "^0.0.0", "@cityofboston/react-fleet": "^0.0.0", diff --git a/yarn.lock b/yarn.lock index be6537225..af5d0a996 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6684,6 +6684,21 @@ babel-code-frame@^6.22.0, babel-code-frame@^6.26.0: esutils "^2.0.2" js-tokens "^3.0.2" +babel-config@CityOfBoston/config-babel#main: + version "0.0.0" + resolved "https://codeload.github.com/CityOfBoston/config-babel/tar.gz/efc690277c78102d4534126c9f6ebb0007daa5f6" + dependencies: + "@babel/core" "^7.6.0" + "@babel/plugin-proposal-class-properties" "^7.5.5" + "@babel/plugin-proposal-decorators" "^7.6.0" + "@babel/plugin-proposal-private-methods" "^7.7.4" + "@babel/plugin-transform-runtime" "^7.6.0" + "@babel/preset-env" "^7.6.0" + "@babel/preset-react" "^7.0.0" + "@babel/preset-typescript" "^7.6.0" + babel-plugin-require-context-hook "^1.0.0" + next ">=11.1.0" + babel-core@7.0.0-bridge.0, babel-core@^7.0.0-0: version "7.0.0-bridge.0" resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-bridge.0.tgz#95a492ddd90f9b4e9a4a1da14eb335b87b634ece" From de944238791236ab19c020f630f5418fa947e421 Mon Sep 17 00:00:00 2001 From: Phillip Kelly Date: Thu, 18 Aug 2022 15:52:45 -0400 Subject: [PATCH 2/8] DIG-387: Handling Shared Components - ref storybook-common repo --- services-js/permit-finder/package.json | 2 +- yarn.lock | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/services-js/permit-finder/package.json b/services-js/permit-finder/package.json index 9afe990ec..1035f0777 100644 --- a/services-js/permit-finder/package.json +++ b/services-js/permit-finder/package.json @@ -69,10 +69,10 @@ "@babel/cli": "^7.6.0", "@babel/core": "^7.6.0", "babel-config": "CityOfBoston/config-babel#main", + "storybook-common": "CityOfBoston/storybook-common#main", "@cityofboston/config-typescript": "^0.0.0", "@cityofboston/graphql-typescript": "^0.0.0", "@cityofboston/react-fleet": "^0.0.0", - "@cityofboston/storybook-common": "^0.0.0", "@percy/storybook": "^3.0.2", "@storybook/addon-a11y": "^5.0.10", "@storybook/addon-actions": "^5.0.10", diff --git a/yarn.lock b/yarn.lock index af5d0a996..ccc13c8d9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -24397,6 +24397,12 @@ stealthy-require@^1.1.0: resolved "https://registry.yarnpkg.com/stealthy-require/-/stealthy-require-1.1.1.tgz#35b09875b4ff49f26a777e509b3090a3226bf24b" integrity sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks= +storybook-common@CityOfBoston/storybook-common#main: + version "0.0.0" + resolved "https://codeload.github.com/CityOfBoston/storybook-common/tar.gz/b90783306c4bc6954f5b4190b2bd44b114cd90ae" + dependencies: + core-js "^3.19.3" + stream-array@^1.0.1: version "1.1.2" resolved "https://registry.yarnpkg.com/stream-array/-/stream-array-1.1.2.tgz#9e5f7345f2137c30ee3b498b9114e80b52bb7eb5" From 46411c01642f54ef0b364a46672a901fc1e3db51 Mon Sep 17 00:00:00 2001 From: Phillip Kelly Date: Thu, 18 Aug 2022 16:29:13 -0400 Subject: [PATCH 3/8] DIG-387: Handling Shared Components - ref graphql-typescript repo --- services-js/permit-finder/package.json | 2 +- yarn.lock | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/services-js/permit-finder/package.json b/services-js/permit-finder/package.json index 1035f0777..d1dfd984a 100644 --- a/services-js/permit-finder/package.json +++ b/services-js/permit-finder/package.json @@ -70,8 +70,8 @@ "@babel/core": "^7.6.0", "babel-config": "CityOfBoston/config-babel#main", "storybook-common": "CityOfBoston/storybook-common#main", + "graphql-typescript": "CityOfBoston/graphql-typescript#main", "@cityofboston/config-typescript": "^0.0.0", - "@cityofboston/graphql-typescript": "^0.0.0", "@cityofboston/react-fleet": "^0.0.0", "@percy/storybook": "^3.0.2", "@storybook/addon-a11y": "^5.0.10", diff --git a/yarn.lock b/yarn.lock index ccc13c8d9..8896e51ae 100644 --- a/yarn.lock +++ b/yarn.lock @@ -13376,6 +13376,12 @@ graphql-tools@^4.0.5: iterall "^1.1.3" uuid "^3.1.0" +graphql-typescript@CityOfBoston/graphql-typescript#main: + version "0.0.0" + resolved "https://codeload.github.com/CityOfBoston/graphql-typescript/tar.gz/2779706f858aa4a891215b98a29d1c6e14797bb1" + dependencies: + core-js "^3.19.3" + graphql-upload@^8.0.2: version "8.0.6" resolved "https://registry.yarnpkg.com/graphql-upload/-/graphql-upload-8.0.6.tgz#90fb6246962d953b64d9ddabd6472d8e8b116ee0" From 317e8a8b4353e0efe254df73f69d26ee6ef098ea Mon Sep 17 00:00:00 2001 From: Phillip Kelly Date: Thu, 18 Aug 2022 16:59:35 -0400 Subject: [PATCH 4/8] DIG-387: Handling Shared Components - ref react-fleet repo --- services-js/permit-finder/package.json | 2 +- yarn.lock | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/services-js/permit-finder/package.json b/services-js/permit-finder/package.json index d1dfd984a..3878d8010 100644 --- a/services-js/permit-finder/package.json +++ b/services-js/permit-finder/package.json @@ -71,8 +71,8 @@ "babel-config": "CityOfBoston/config-babel#main", "storybook-common": "CityOfBoston/storybook-common#main", "graphql-typescript": "CityOfBoston/graphql-typescript#main", + "react-fleet": "CityOfBoston/react-fleet", "@cityofboston/config-typescript": "^0.0.0", - "@cityofboston/react-fleet": "^0.0.0", "@percy/storybook": "^3.0.2", "@storybook/addon-a11y": "^5.0.10", "@storybook/addon-actions": "^5.0.10", diff --git a/yarn.lock b/yarn.lock index 8896e51ae..e249de2a6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -22164,6 +22164,12 @@ react-fast-compare@^2.0.1, react-fast-compare@^2.0.2: resolved "https://registry.yarnpkg.com/react-fast-compare/-/react-fast-compare-2.0.4.tgz#e84b4d455b0fec113e0402c329352715196f81f9" integrity sha512-suNP+J1VU1MWFKcyt7RtjiSWUjvidmQSlqu+eHslq+342xCbGTYmC0mEhPCOHxlW0CywylOC1u2DFAT+bv4dBw== +react-fleet@CityOfBoston/react-fleet: + version "0.0.0" + resolved "https://codeload.github.com/CityOfBoston/react-fleet/tar.gz/843f704776381042328956784dc5517c80952f30" + dependencies: + core-js "^3.19.3" + react-focus-lock@^1.17.7: version "1.18.3" resolved "https://registry.yarnpkg.com/react-focus-lock/-/react-focus-lock-1.18.3.tgz#19d84afeab935c0b5de196922f71db7c481baba4" From 8e567e5e7278152df41c419648547686ef5342df Mon Sep 17 00:00:00 2001 From: Phillip Kelly Date: Wed, 24 Aug 2022 18:52:10 -0400 Subject: [PATCH 5/8] DIG-387: Handling Shared Components - ref deploy-tools repo --- services-js/permit-finder/package.json | 2 +- .../permit-finder/scripts/post-deploy.ts | 2 +- yarn.lock | 21 +++++++++++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/services-js/permit-finder/package.json b/services-js/permit-finder/package.json index 3878d8010..3a8bab4d1 100644 --- a/services-js/permit-finder/package.json +++ b/services-js/permit-finder/package.json @@ -33,7 +33,7 @@ }, "dependencies": { "@babel/runtime": "^7.6.0", - "@cityofboston/deploy-tools": "^0.0.0", + "deploy-tools": "CityOfBoston/deploy-tools#main", "@cityofboston/hapi-common": "^0.0.0", "@cityofboston/hapi-next": "^0.0.0", "@cityofboston/next-client-common": "^0.0.0", diff --git a/services-js/permit-finder/scripts/post-deploy.ts b/services-js/permit-finder/scripts/post-deploy.ts index eef74fb69..94e4c86e7 100644 --- a/services-js/permit-finder/scripts/post-deploy.ts +++ b/services-js/permit-finder/scripts/post-deploy.ts @@ -10,7 +10,7 @@ import { parseBranch, uploadSourceMapsToRollbar, reportRollbarDeploy, -} from '@cityofboston/deploy-tools'; +} from 'deploy-tools'; // Important for getting ASSET_HOST and ROLLBAR_ACCESS_TOKEN configuration. This // script is run in the container from the default entrypoint, which would have diff --git a/yarn.lock b/yarn.lock index e249de2a6..ce2c348f3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10469,6 +10469,27 @@ depd@^1.1.2, depd@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" +deploy-tools@CityOfBoston/deploy-tools#main: + version "0.0.0" + resolved "https://codeload.github.com/CityOfBoston/deploy-tools/tar.gz/f34b59102a9d3898a09ccc1e4fce814e1306fcd4" + dependencies: + "@lerna/filter-options" "^3.13.0" + "@lerna/package-graph" "^3.13.0" + "@lerna/project" "^3.13.0" + "@slack/client" "^4.3.1" + aws-sdk "^2.245.1" + date-fns "^1.29.0" + dotenv "^5.0.0" + form-data "^2.3.3" + https-proxy-agent "^2.0.0" + ignore "^5.0.4" + mime-types "^2.1.20" + minimist "^1.2.0" + node-fetch "^2.0.0" + recursive-readdir "^2.2.2" + shelljs "^0.8.2" + tar "^4.4.3" + deprecated-decorator@^0.1.6: version "0.1.6" resolved "https://registry.yarnpkg.com/deprecated-decorator/-/deprecated-decorator-0.1.6.tgz#00966317b7a12fe92f3cc831f7583af329b86c37" From 49c091aa4cb94c0f83156fceaa97c43043c35276 Mon Sep 17 00:00:00 2001 From: Phillip Kelly Date: Fri, 26 Aug 2022 10:40:14 -0400 Subject: [PATCH 6/8] DIG-387: Handling Shared Components - replace config-babel > react-fleet --- .../src/__snapshots__/Storyshots.test.ts.snap | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/modules-js/react-fleet/src/__snapshots__/Storyshots.test.ts.snap b/modules-js/react-fleet/src/__snapshots__/Storyshots.test.ts.snap index 3422c268f..c08c9e96e 100644 --- a/modules-js/react-fleet/src/__snapshots__/Storyshots.test.ts.snap +++ b/modules-js/react-fleet/src/__snapshots__/Storyshots.test.ts.snap @@ -6062,7 +6062,7 @@ exports[`Storyshots UI|Navigation/Pagination 2 pages 1`] = ` > @@ -6074,7 +6074,7 @@ exports[`Storyshots UI|Navigation/Pagination 2 pages 1`] = ` > @@ -6086,7 +6086,7 @@ exports[`Storyshots UI|Navigation/Pagination 2 pages 1`] = ` > @@ -6105,7 +6105,7 @@ exports[`Storyshots UI|Navigation/Pagination 7 pages 1`] = ` > @@ -6117,7 +6117,7 @@ exports[`Storyshots UI|Navigation/Pagination 7 pages 1`] = ` > @@ -6129,7 +6129,7 @@ exports[`Storyshots UI|Navigation/Pagination 7 pages 1`] = ` > @@ -6141,7 +6141,7 @@ exports[`Storyshots UI|Navigation/Pagination 7 pages 1`] = ` > @@ -6153,7 +6153,7 @@ exports[`Storyshots UI|Navigation/Pagination 7 pages 1`] = ` > @@ -6165,7 +6165,7 @@ exports[`Storyshots UI|Navigation/Pagination 7 pages 1`] = ` > @@ -6184,7 +6184,7 @@ exports[`Storyshots UI|Navigation/Pagination 20 pages 1`] = ` > @@ -6196,7 +6196,7 @@ exports[`Storyshots UI|Navigation/Pagination 20 pages 1`] = ` > @@ -6208,7 +6208,7 @@ exports[`Storyshots UI|Navigation/Pagination 20 pages 1`] = ` > @@ -6220,7 +6220,7 @@ exports[`Storyshots UI|Navigation/Pagination 20 pages 1`] = ` > @@ -6232,7 +6232,7 @@ exports[`Storyshots UI|Navigation/Pagination 20 pages 1`] = ` > @@ -6244,7 +6244,7 @@ exports[`Storyshots UI|Navigation/Pagination 20 pages 1`] = ` > From 0712aaf2ca730b322f0df8d32f81021d453e46ac Mon Sep 17 00:00:00 2001 From: Phillip Kelly Date: Thu, 1 Sep 2022 18:40:43 -0400 Subject: [PATCH 7/8] DIG-387: Handling Shared Components - re-routed templates (DIR) config-babel --- services-js/permit-finder/package.json | 10 ++--- templates/js-browser-module/.babelrc | 4 +- templates/js-browser-module/package.json | 2 +- templates/js-browser-module/template/.babelrc | 4 +- .../js-browser-module/template/package.json | 2 +- templates/js-server-module/.babelrc | 4 +- templates/js-server-module/package.json | 2 +- templates/js-server-module/template/.babelrc | 4 +- .../js-server-module/template/package.json | 2 +- yarn.lock | 41 +++++++++++++++++++ 10 files changed, 58 insertions(+), 17 deletions(-) diff --git a/services-js/permit-finder/package.json b/services-js/permit-finder/package.json index 3a8bab4d1..c00ce606a 100644 --- a/services-js/permit-finder/package.json +++ b/services-js/permit-finder/package.json @@ -34,11 +34,11 @@ "dependencies": { "@babel/runtime": "^7.6.0", "deploy-tools": "CityOfBoston/deploy-tools#main", - "@cityofboston/hapi-common": "^0.0.0", - "@cityofboston/hapi-next": "^0.0.0", - "@cityofboston/next-client-common": "^0.0.0", - "@cityofboston/percy-common": "^0.0.0", - "@cityofboston/srv-decrypt-env": "^0.0.0", + "hapi-common": "CityOfBoston/hapi-common#main", + "hapi-next": "CityOfBoston/hapi-next#main", + "next-client-common": "CityOfBoston/next-client-common#main", + "percy-common": "CityOfBoston/percy-common#main", + "srv-decrypt-env": "CityOfBoston/srv-decrypt-env#main", "@emotion/core": "^10.0.10", "apollo-server-hapi": "^2.5.0", "autolinker": "^3.0.5", diff --git a/templates/js-browser-module/.babelrc b/templates/js-browser-module/.babelrc index 04f212dbc..f08cf2e73 100644 --- a/templates/js-browser-module/.babelrc +++ b/templates/js-browser-module/.babelrc @@ -1,6 +1,6 @@ { "presets": [ - "@cityofboston/config-babel/node", - "@cityofboston/config-babel/typescript" + "config-babel/node", + "config-babel/typescript" ] } \ No newline at end of file diff --git a/templates/js-browser-module/package.json b/templates/js-browser-module/package.json index c6fe6944c..246783767 100644 --- a/templates/js-browser-module/package.json +++ b/templates/js-browser-module/package.json @@ -18,7 +18,7 @@ "core-js": "^2.6.4" }, "devDependencies": { - "@cityofboston/config-babel": "^0.0.0", + "babel-config": "CityOfBoston/config-babel#main", "@cityofboston/config-typescript": "^0.0.0", "@types/jest": "24.x.x", "@types/node": "^8.0.0", diff --git a/templates/js-browser-module/template/.babelrc b/templates/js-browser-module/template/.babelrc index 9b0f34af5..37778cd60 100644 --- a/templates/js-browser-module/template/.babelrc +++ b/templates/js-browser-module/template/.babelrc @@ -1,6 +1,6 @@ { "presets": [ - "@cityofboston/config-babel/browser", - "@cityofboston/config-babel/typescript" + "config-babel/browser", + "config-babel/typescript" ] } \ No newline at end of file diff --git a/templates/js-browser-module/template/package.json b/templates/js-browser-module/template/package.json index ed20713ca..ca53c3c3e 100644 --- a/templates/js-browser-module/template/package.json +++ b/templates/js-browser-module/template/package.json @@ -39,7 +39,7 @@ "@babel/core": "7.1.2", "@babel/runtime": "7.1.2", "@emotion/core": "^10.0.10", - "@cityofboston/config-babel": "^0.0.0", + "babel-config": "CityOfBoston/config-babel#main", "@cityofboston/config-typescript": "^0.0.0", "@types/jest": "24.x.x", "babel-core": "^7.0.0-0", diff --git a/templates/js-server-module/.babelrc b/templates/js-server-module/.babelrc index 04f212dbc..f08cf2e73 100644 --- a/templates/js-server-module/.babelrc +++ b/templates/js-server-module/.babelrc @@ -1,6 +1,6 @@ { "presets": [ - "@cityofboston/config-babel/node", - "@cityofboston/config-babel/typescript" + "config-babel/node", + "config-babel/typescript" ] } \ No newline at end of file diff --git a/templates/js-server-module/package.json b/templates/js-server-module/package.json index 06e68d432..5524bbe4d 100644 --- a/templates/js-server-module/package.json +++ b/templates/js-server-module/package.json @@ -18,7 +18,7 @@ "core-js": "^2.6.4" }, "devDependencies": { - "@cityofboston/config-babel": "^0.0.0", + "babel-config": "CityOfBoston/config-babel#main", "@cityofboston/config-typescript": "^0.0.0", "@types/jest": "24.x.x", "@types/node": "^8.0.0", diff --git a/templates/js-server-module/template/.babelrc b/templates/js-server-module/template/.babelrc index 04f212dbc..f08cf2e73 100644 --- a/templates/js-server-module/template/.babelrc +++ b/templates/js-server-module/template/.babelrc @@ -1,6 +1,6 @@ { "presets": [ - "@cityofboston/config-babel/node", - "@cityofboston/config-babel/typescript" + "config-babel/node", + "config-babel/typescript" ] } \ No newline at end of file diff --git a/templates/js-server-module/template/package.json b/templates/js-server-module/template/package.json index 6de3b3d09..9fc03bf84 100644 --- a/templates/js-server-module/template/package.json +++ b/templates/js-server-module/template/package.json @@ -24,7 +24,7 @@ "core-js": "^2.6.4" }, "devDependencies": { - "@cityofboston/config-babel": "^0.0.0", + "babel-config": "CityOfBoston/config-babel#main", "@cityofboston/config-typescript": "^0.0.0", "@types/node": "^8.0.0", "@types/jest": "24.x.x", diff --git a/yarn.lock b/yarn.lock index ce2c348f3..048503fe1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -13672,6 +13672,17 @@ hapi-accept-language2@^2.0.3: dependencies: accept-language-parser "^1.4.1" +hapi-common@CityOfBoston/hapi-common#main: + version "0.0.0" + resolved "https://codeload.github.com/CityOfBoston/hapi-common/tar.gz/5cae1a1cfa566ef695a34a9727471cabddcfb7e5" + dependencies: + boom "^7.2.0" + core-js "^3.19.3" + good "^8.1.1" + good-console "^7.1.0" + good-squeeze "^5.1.0" + hoek "5.x.x" + hapi-cors@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/hapi-cors/-/hapi-cors-1.0.3.tgz#47db547d9d6b3ae52bbeec34b2b6cfc82c5a8892" @@ -13687,6 +13698,16 @@ hapi-dev-errors@^3.0.1: youch "~2.0.8" youch-terminal "~1.0.0" +hapi-next@CityOfBoston/hapi-next#main: + version "0.0.0" + resolved "https://codeload.github.com/CityOfBoston/hapi-next/tar.gz/0ef6e608832e9e739516138622cbc0c7cc2bbbb0" + dependencies: + compression "^1.6.2" + core-js "^3.19.3" + next ">=11.1.0" + react "16.8.5" + react-dom "16.8.5" + hapi@^17.5.2: version "17.5.2" resolved "https://registry.yarnpkg.com/hapi/-/hapi-17.5.2.tgz#9c5823cdcdd17e5621ebc8928aefb144d033caac" @@ -19035,6 +19056,13 @@ netmask@^1.0.6: version "1.0.6" resolved "https://registry.yarnpkg.com/netmask/-/netmask-1.0.6.tgz#20297e89d86f6f6400f250d9f4f6b4c1945fcd35" +next-client-common@CityOfBoston/next-client-common#main: + version "0.0.0" + resolved "https://codeload.github.com/CityOfBoston/next-client-common/tar.gz/9db41ecaafe02d1a249d857186f47458f52abd18" + dependencies: + core-js "^3.19.3" + isomorphic-fetch "^2.2.1" + next-cookies@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/next-cookies/-/next-cookies-1.0.2.tgz#1a504781824a7a7c5d948f0bbb99a7caeba6151b" @@ -20580,6 +20608,12 @@ percy-client@^3.0.0: request-promise "^4.2.2" walk "^2.3.14" +percy-common@CityOfBoston/percy-common#main: + version "0.0.0" + resolved "https://codeload.github.com/CityOfBoston/percy-common/tar.gz/45f22018c8e78c22e0c92cbd2096a4fb232ab391" + dependencies: + core-js "^3.19.3" + performance-now@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" @@ -24325,6 +24359,13 @@ sprintf-js@~1.0.2: resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= +srv-decrypt-env@CityOfBoston/srv-decrypt-env#main: + version "0.0.0" + resolved "https://codeload.github.com/CityOfBoston/srv-decrypt-env/tar.gz/5eb5e67b89dcd17307f7ee1b9a46562221b2b774" + dependencies: + aws-sdk "^2.236.1" + core-js "^3.19.3" + sshpk@^1.7.0: version "1.16.1" resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.16.1.tgz#fb661c0bef29b39db40769ee39fa70093d6f6877" From 54e950436ba2c5f3205192951bace2425a35aeab Mon Sep 17 00:00:00 2001 From: Phillip Kelly Date: Tue, 20 Sep 2022 17:09:10 -0400 Subject: [PATCH 8/8] DIG-387: Handling Shared Components - replacing ts2gql, step 1 --- .../permit-finder/graphql/graphql.schema.json | 1501 +++++++++++++++++ services-js/permit-finder/package.json | 3 +- 2 files changed, 1503 insertions(+), 1 deletion(-) create mode 100644 services-js/permit-finder/graphql/graphql.schema.json diff --git a/services-js/permit-finder/graphql/graphql.schema.json b/services-js/permit-finder/graphql/graphql.schema.json new file mode 100644 index 000000000..7a991b276 --- /dev/null +++ b/services-js/permit-finder/graphql/graphql.schema.json @@ -0,0 +1,1501 @@ +{ + "__schema": { + "description": null, + "queryType": { + "name": "Query" + }, + "mutationType": null, + "subscriptionType": null, + "types": [ + { + "kind": "OBJECT", + "name": "Query", + "description": "", + "specifiedByUrl": null, + "fields": [ + { + "name": "permit", + "description": "", + "args": [ + { + "name": "permitNumber", + "description": "", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "Permit", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "SCALAR", + "name": "String", + "description": "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.", + "specifiedByUrl": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "Permit", + "description": "", + "specifiedByUrl": null, + "fields": [ + { + "name": "address", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "city", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "kind", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "PermitKind", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "milestones", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Milestone", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "permitNumber", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "pointOfContactName", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "reviews", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Review", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "state", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "type", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "zip", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "PermitKind", + "description": "", + "specifiedByUrl": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "BUILDING", + "description": "", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "FIRE", + "description": "", + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "Milestone", + "description": "", + "specifiedByUrl": null, + "fields": [ + { + "name": "averageDurationSecs", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "cityContactName", + "description": "", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "milestoneEndDate", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "milestoneName", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "milestoneStartDate", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "SCALAR", + "name": "Float", + "description": "The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).", + "specifiedByUrl": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "Review", + "description": "", + "specifiedByUrl": null, + "fields": [ + { + "name": "isAssigned", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isComplete", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isStarted", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "reviewerName", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "status", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "type", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "SCALAR", + "name": "Boolean", + "description": "The `Boolean` scalar type represents `true` or `false`.", + "specifiedByUrl": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "__Schema", + "description": "A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.", + "specifiedByUrl": null, + "fields": [ + { + "name": "description", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "types", + "description": "A list of all types supported by this server.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "__Type", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "queryType", + "description": "The type that query operations will be rooted at.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "__Type", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "mutationType", + "description": "If this server supports mutation, the type that mutation operations will be rooted at.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "__Type", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "subscriptionType", + "description": "If this server support subscription, the type that subscription operations will be rooted at.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "__Type", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "directives", + "description": "A list of all directives supported by this server.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "__Directive", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "__Type", + "description": "The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.", + "specifiedByUrl": null, + "fields": [ + { + "name": "kind", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "__TypeKind", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "description", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "specifiedByUrl", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "fields", + "description": null, + "args": [ + { + "name": "includeDeprecated", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": "false", + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "__Field", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "interfaces", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "__Type", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "possibleTypes", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "__Type", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "enumValues", + "description": null, + "args": [ + { + "name": "includeDeprecated", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": "false", + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "__EnumValue", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "inputFields", + "description": null, + "args": [ + { + "name": "includeDeprecated", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": "false", + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "__InputValue", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ofType", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "__Type", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "__TypeKind", + "description": "An enum describing what kind of type a given `__Type` is.", + "specifiedByUrl": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "SCALAR", + "description": "Indicates this type is a scalar.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "OBJECT", + "description": "Indicates this type is an object. `fields` and `interfaces` are valid fields.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INTERFACE", + "description": "Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "UNION", + "description": "Indicates this type is a union. `possibleTypes` is a valid field.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ENUM", + "description": "Indicates this type is an enum. `enumValues` is a valid field.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INPUT_OBJECT", + "description": "Indicates this type is an input object. `inputFields` is a valid field.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "LIST", + "description": "Indicates this type is a list. `ofType` is a valid field.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "NON_NULL", + "description": "Indicates this type is a non-null. `ofType` is a valid field.", + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "__Field", + "description": "Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.", + "specifiedByUrl": null, + "fields": [ + { + "name": "name", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "description", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "args", + "description": null, + "args": [ + { + "name": "includeDeprecated", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": "false", + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "__InputValue", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "type", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "__Type", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isDeprecated", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "deprecationReason", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "__InputValue", + "description": "Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.", + "specifiedByUrl": null, + "fields": [ + { + "name": "name", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "description", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "type", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "__Type", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "defaultValue", + "description": "A GraphQL-formatted string representing the default value for this input value.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isDeprecated", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "deprecationReason", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "__EnumValue", + "description": "One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.", + "specifiedByUrl": null, + "fields": [ + { + "name": "name", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "description", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isDeprecated", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "deprecationReason", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "__Directive", + "description": "A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.", + "specifiedByUrl": null, + "fields": [ + { + "name": "name", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "description", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isRepeatable", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "locations", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "__DirectiveLocation", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "args", + "description": null, + "args": [ + { + "name": "includeDeprecated", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": "false", + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "__InputValue", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "__DirectiveLocation", + "description": "A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.", + "specifiedByUrl": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "QUERY", + "description": "Location adjacent to a query operation.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "MUTATION", + "description": "Location adjacent to a mutation operation.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "SUBSCRIPTION", + "description": "Location adjacent to a subscription operation.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "FIELD", + "description": "Location adjacent to a field.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "FRAGMENT_DEFINITION", + "description": "Location adjacent to a fragment definition.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "FRAGMENT_SPREAD", + "description": "Location adjacent to a fragment spread.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INLINE_FRAGMENT", + "description": "Location adjacent to an inline fragment.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "VARIABLE_DEFINITION", + "description": "Location adjacent to a variable definition.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "SCHEMA", + "description": "Location adjacent to a schema definition.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "SCALAR", + "description": "Location adjacent to a scalar definition.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "OBJECT", + "description": "Location adjacent to an object type definition.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "FIELD_DEFINITION", + "description": "Location adjacent to a field definition.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ARGUMENT_DEFINITION", + "description": "Location adjacent to an argument definition.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INTERFACE", + "description": "Location adjacent to an interface definition.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "UNION", + "description": "Location adjacent to a union definition.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ENUM", + "description": "Location adjacent to an enum definition.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ENUM_VALUE", + "description": "Location adjacent to an enum value definition.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INPUT_OBJECT", + "description": "Location adjacent to an input object type definition.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INPUT_FIELD_DEFINITION", + "description": "Location adjacent to an input object field definition.", + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "SCALAR", + "name": "Date", + "description": "", + "specifiedByUrl": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": null + } + ], + "directives": [ + { + "name": "skip", + "description": "Directs the executor to skip this field or fragment when the `if` argument is true.", + "isRepeatable": false, + "locations": [ + "FIELD", + "FRAGMENT_SPREAD", + "INLINE_FRAGMENT" + ], + "args": [ + { + "name": "if", + "description": "Skipped when true.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ] + }, + { + "name": "include", + "description": "Directs the executor to include this field or fragment only when the `if` argument is true.", + "isRepeatable": false, + "locations": [ + "FIELD", + "FRAGMENT_SPREAD", + "INLINE_FRAGMENT" + ], + "args": [ + { + "name": "if", + "description": "Included when true.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ] + }, + { + "name": "deprecated", + "description": "Marks an element of a GraphQL schema as no longer supported.", + "isRepeatable": false, + "locations": [ + "FIELD_DEFINITION", + "ENUM_VALUE" + ], + "args": [ + { + "name": "reason", + "description": "Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax (as specified by [CommonMark](https://commonmark.org/).", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": "\"No longer supported\"", + "isDeprecated": false, + "deprecationReason": null + } + ] + } + ] + } +} \ No newline at end of file diff --git a/services-js/permit-finder/package.json b/services-js/permit-finder/package.json index c00ce606a..34c079bb0 100644 --- a/services-js/permit-finder/package.json +++ b/services-js/permit-finder/package.json @@ -18,7 +18,8 @@ "test": "jest", "percy": "scripts/percy.js", "generate-graphql-schema": "mkdir -p graphql && ts2gql src/server/graphql/schema.ts > graphql/schema.graphql", - "generate-graphql-types": "npx apollo codegen:generate --includes=\"src/client/**/*.ts\" --localSchemaFile=graphql/schema.graphql --target=typescript --outputFlat --no-addTypename src/client/graphql/queries.ts", + "generate-graphql-types2": "npx apollo codegen:generate --includes=\"src/client/**/*.ts\" --localSchemaFile=graphql/schema.graphql --target=typescript --outputFlat --no-addTypename src/client/graphql/queries.ts", + "generate-graphql-types": "npx apollo client:codegen --localSchemaFile=graphql/graphql.schema.json --target=typescript --includes='src/client/**/*.ts' --outputFlat --no-addTypename src/client/graphql/queries.ts", "prepare-deploy": "build-storybook -s static", "codebuild-deploy": "npx -p ../../deploy-tools.tgz codebuild-service-deploy deploy/Dockerfile", "postdeploy": "ts-node --project ./tsnode.config.json ./scripts/post-deploy && yarn run cacheBuster",