From bb5d0e319da3464a2574c592d05ccceddab047b3 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Fri, 13 Oct 2023 18:44:14 +0200 Subject: [PATCH] [backend] Add missing postgres types --- .pnp.cjs | 111 +++++++++++++++++- ...es-pg-npm-8.10.5-9e5f4e8cf1-532a3104ed.zip | 3 + .../obuf-npm-1.1.2-8db5fae8dd-41a2ba310e.zip | 3 + ...umeric-npm-1.0.2-9026ec3427-8899f8200c.zip | 3 + ...-types-npm-4.0.1-8f922557d3-05258ef2f2.zip | 3 + ...-array-npm-3.0.2-da6a3f1fed-5955f9dffe.zip | 3 + ...-bytea-npm-3.0.0-5de4c664f6-5f917a003f.zip | 3 + ...s-date-npm-2.0.1-00e0e0bc9e-0304bf8641.zip | 3 + ...terval-npm-3.0.0-936c769b98-c7a1cf006d.zip | 3 + ...-range-npm-1.1.3-46f68e1a9e-bf7e194a18.zip | 3 + packages/backend/package.json | 1 + yarn.lock | 80 ++++++++++++- 12 files changed, 212 insertions(+), 7 deletions(-) create mode 100644 .yarn/cache/@types-pg-npm-8.10.5-9e5f4e8cf1-532a3104ed.zip create mode 100644 .yarn/cache/obuf-npm-1.1.2-8db5fae8dd-41a2ba310e.zip create mode 100644 .yarn/cache/pg-numeric-npm-1.0.2-9026ec3427-8899f8200c.zip create mode 100644 .yarn/cache/pg-types-npm-4.0.1-8f922557d3-05258ef2f2.zip create mode 100644 .yarn/cache/postgres-array-npm-3.0.2-da6a3f1fed-5955f9dffe.zip create mode 100644 .yarn/cache/postgres-bytea-npm-3.0.0-5de4c664f6-5f917a003f.zip create mode 100644 .yarn/cache/postgres-date-npm-2.0.1-00e0e0bc9e-0304bf8641.zip create mode 100644 .yarn/cache/postgres-interval-npm-3.0.0-936c769b98-c7a1cf006d.zip create mode 100644 .yarn/cache/postgres-range-npm-1.1.3-46f68e1a9e-bf7e194a18.zip diff --git a/.pnp.cjs b/.pnp.cjs index 772edc33d..53713e6a9 100755 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -1202,6 +1202,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "@types/offscreencanvas",\ "npm:2019.3.0"\ ],\ + [\ + "@types/pg",\ + "npm:8.10.5"\ + ],\ [\ "@types/picomatch",\ "npm:2.3.0"\ @@ -5082,6 +5086,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "oblivious-set",\ "npm:1.1.1"\ ],\ + [\ + "obuf",\ + "npm:1.1.2"\ + ],\ [\ "omggif",\ "npm:1.0.10"\ @@ -5318,6 +5326,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "pg-int8",\ "npm:1.0.1"\ ],\ + [\ + "pg-numeric",\ + "npm:1.0.2"\ + ],\ [\ "pg-pool",\ "virtual:bd80eaacaba4ac69e52ab40a70c2c4b13c6ce0a9346f8311e962f3e59c362840bf10abfde728731d045107c0c12c343c12db88e4d4947cbfbe342854b0e454f8#npm:3.6.1"\ @@ -5328,7 +5340,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ],\ [\ "pg-types",\ - "npm:2.2.0"\ + "npm:4.0.1"\ ],\ [\ "pgpass",\ @@ -5528,19 +5540,23 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ],\ [\ "postgres-array",\ - "npm:2.0.0"\ + "npm:3.0.2"\ ],\ [\ "postgres-bytea",\ - "npm:1.0.0"\ + "npm:3.0.0"\ ],\ [\ "postgres-date",\ - "npm:1.0.7"\ + "npm:2.0.1"\ ],\ [\ "postgres-interval",\ - "npm:1.2.0"\ + "npm:3.0.0"\ + ],\ + [\ + "postgres-range",\ + "npm:1.1.3"\ ],\ [\ "prebuild-install",\ @@ -11876,6 +11892,18 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ + ["@types/pg", [\ + ["npm:8.10.5", {\ + "packageLocation": "./.yarn/cache/@types-pg-npm-8.10.5-9e5f4e8cf1-532a3104ed.zip/node_modules/@types/pg/",\ + "packageDependencies": [\ + ["@types/pg", "npm:8.10.5"],\ + ["@types/node", "npm:20.4.5"],\ + ["pg-protocol", "npm:1.6.0"],\ + ["pg-types", "npm:4.0.1"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["@types/picomatch", [\ ["npm:2.3.0", {\ "packageLocation": "./.yarn/cache/@types-picomatch-npm-2.3.0-02d6bd0a9c-dde9572b6c.zip/node_modules/@types/picomatch/",\ @@ -14410,6 +14438,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@types/node-fetch", "npm:3.0.3"],\ ["@types/nodemailer", "npm:6.4.8"],\ ["@types/oauth", "npm:0.9.1"],\ + ["@types/pg", "npm:8.10.5"],\ ["@types/probe-image-size", "npm:7.2.0"],\ ["@types/pug", "npm:2.0.6"],\ ["@types/punycode", "npm:2.1.0"],\ @@ -26250,6 +26279,15 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ + ["obuf", [\ + ["npm:1.1.2", {\ + "packageLocation": "./.yarn/cache/obuf-npm-1.1.2-8db5fae8dd-41a2ba310e.zip/node_modules/obuf/",\ + "packageDependencies": [\ + ["obuf", "npm:1.1.2"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["omggif", [\ ["npm:1.0.10", {\ "packageLocation": "./.yarn/cache/omggif-npm-1.0.10-6ffa5bf343-15102e46b6.zip/node_modules/omggif/",\ @@ -26948,6 +26986,15 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ + ["pg-numeric", [\ + ["npm:1.0.2", {\ + "packageLocation": "./.yarn/cache/pg-numeric-npm-1.0.2-9026ec3427-8899f8200c.zip/node_modules/pg-numeric/",\ + "packageDependencies": [\ + ["pg-numeric", "npm:1.0.2"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["pg-pool", [\ ["npm:3.6.1", {\ "packageLocation": "./.yarn/cache/pg-pool-npm-3.6.1-477c9660b9-8a6513e6f7.zip/node_modules/pg-pool/",\ @@ -26991,6 +27038,20 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["postgres-interval", "npm:1.2.0"]\ ],\ "linkType": "HARD"\ + }],\ + ["npm:4.0.1", {\ + "packageLocation": "./.yarn/cache/pg-types-npm-4.0.1-8f922557d3-05258ef2f2.zip/node_modules/pg-types/",\ + "packageDependencies": [\ + ["pg-types", "npm:4.0.1"],\ + ["pg-int8", "npm:1.0.1"],\ + ["pg-numeric", "npm:1.0.2"],\ + ["postgres-array", "npm:3.0.2"],\ + ["postgres-bytea", "npm:3.0.0"],\ + ["postgres-date", "npm:2.0.1"],\ + ["postgres-interval", "npm:3.0.0"],\ + ["postgres-range", "npm:1.1.3"]\ + ],\ + "linkType": "HARD"\ }]\ ]],\ ["pgpass", [\ @@ -27593,6 +27654,13 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["postgres-array", "npm:2.0.0"]\ ],\ "linkType": "HARD"\ + }],\ + ["npm:3.0.2", {\ + "packageLocation": "./.yarn/cache/postgres-array-npm-3.0.2-da6a3f1fed-5955f9dffe.zip/node_modules/postgres-array/",\ + "packageDependencies": [\ + ["postgres-array", "npm:3.0.2"]\ + ],\ + "linkType": "HARD"\ }]\ ]],\ ["postgres-bytea", [\ @@ -27602,6 +27670,14 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["postgres-bytea", "npm:1.0.0"]\ ],\ "linkType": "HARD"\ + }],\ + ["npm:3.0.0", {\ + "packageLocation": "./.yarn/cache/postgres-bytea-npm-3.0.0-5de4c664f6-5f917a003f.zip/node_modules/postgres-bytea/",\ + "packageDependencies": [\ + ["postgres-bytea", "npm:3.0.0"],\ + ["obuf", "npm:1.1.2"]\ + ],\ + "linkType": "HARD"\ }]\ ]],\ ["postgres-date", [\ @@ -27611,6 +27687,13 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["postgres-date", "npm:1.0.7"]\ ],\ "linkType": "HARD"\ + }],\ + ["npm:2.0.1", {\ + "packageLocation": "./.yarn/cache/postgres-date-npm-2.0.1-00e0e0bc9e-0304bf8641.zip/node_modules/postgres-date/",\ + "packageDependencies": [\ + ["postgres-date", "npm:2.0.1"]\ + ],\ + "linkType": "HARD"\ }]\ ]],\ ["postgres-interval", [\ @@ -27621,6 +27704,22 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["xtend", "npm:4.0.2"]\ ],\ "linkType": "HARD"\ + }],\ + ["npm:3.0.0", {\ + "packageLocation": "./.yarn/cache/postgres-interval-npm-3.0.0-936c769b98-c7a1cf006d.zip/node_modules/postgres-interval/",\ + "packageDependencies": [\ + ["postgres-interval", "npm:3.0.0"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ + ["postgres-range", [\ + ["npm:1.1.3", {\ + "packageLocation": "./.yarn/cache/postgres-range-npm-1.1.3-46f68e1a9e-bf7e194a18.zip/node_modules/postgres-range/",\ + "packageDependencies": [\ + ["postgres-range", "npm:1.1.3"]\ + ],\ + "linkType": "HARD"\ }]\ ]],\ ["prebuild-install", [\ @@ -31719,7 +31818,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@types/mssql", null],\ ["@types/mysql2", null],\ ["@types/oracledb", null],\ - ["@types/pg", null],\ + ["@types/pg", "npm:8.10.5"],\ ["@types/pg-native", null],\ ["@types/pg-query-stream", null],\ ["@types/redis", "npm:4.0.11"],\ diff --git a/.yarn/cache/@types-pg-npm-8.10.5-9e5f4e8cf1-532a3104ed.zip b/.yarn/cache/@types-pg-npm-8.10.5-9e5f4e8cf1-532a3104ed.zip new file mode 100644 index 000000000..ec2d33a03 --- /dev/null +++ b/.yarn/cache/@types-pg-npm-8.10.5-9e5f4e8cf1-532a3104ed.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ab8db10925f966900de0ebbeb6128b164a750c4482da338c270af78ad7e214a +size 5586 diff --git a/.yarn/cache/obuf-npm-1.1.2-8db5fae8dd-41a2ba310e.zip b/.yarn/cache/obuf-npm-1.1.2-8db5fae8dd-41a2ba310e.zip new file mode 100644 index 000000000..58bf81808 --- /dev/null +++ b/.yarn/cache/obuf-npm-1.1.2-8db5fae8dd-41a2ba310e.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e9e99611d6e708e05d7b1c8443b2d85223230f0963872ff5af1522a8317fee2e +size 5030 diff --git a/.yarn/cache/pg-numeric-npm-1.0.2-9026ec3427-8899f8200c.zip b/.yarn/cache/pg-numeric-npm-1.0.2-9026ec3427-8899f8200c.zip new file mode 100644 index 000000000..b8f9f5783 --- /dev/null +++ b/.yarn/cache/pg-numeric-npm-1.0.2-9026ec3427-8899f8200c.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:725a8f9b3bfea2526a88b158d1898d92c91a5e878734369dd7bcc5c067ba3287 +size 2907 diff --git a/.yarn/cache/pg-types-npm-4.0.1-8f922557d3-05258ef2f2.zip b/.yarn/cache/pg-types-npm-4.0.1-8f922557d3-05258ef2f2.zip new file mode 100644 index 000000000..c391599a5 --- /dev/null +++ b/.yarn/cache/pg-types-npm-4.0.1-8f922557d3-05258ef2f2.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b50490f8f12e3e0f5835cd0daf2871b6712e3f4f9f7102e8b0fc838568c86518 +size 7829 diff --git a/.yarn/cache/postgres-array-npm-3.0.2-da6a3f1fed-5955f9dffe.zip b/.yarn/cache/postgres-array-npm-3.0.2-da6a3f1fed-5955f9dffe.zip new file mode 100644 index 000000000..cb4e99d45 --- /dev/null +++ b/.yarn/cache/postgres-array-npm-3.0.2-da6a3f1fed-5955f9dffe.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:430f0f60d5c924fcbdfbacaa84e97912868f2e6d39eec06e322b3ed3b030856e +size 3022 diff --git a/.yarn/cache/postgres-bytea-npm-3.0.0-5de4c664f6-5f917a003f.zip b/.yarn/cache/postgres-bytea-npm-3.0.0-5de4c664f6-5f917a003f.zip new file mode 100644 index 000000000..3b7475b68 --- /dev/null +++ b/.yarn/cache/postgres-bytea-npm-3.0.0-5de4c664f6-5f917a003f.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9bb36ef907f01f58742e2a9192b562340296eab146d70e769ea700e835944bd3 +size 6099 diff --git a/.yarn/cache/postgres-date-npm-2.0.1-00e0e0bc9e-0304bf8641.zip b/.yarn/cache/postgres-date-npm-2.0.1-00e0e0bc9e-0304bf8641.zip new file mode 100644 index 000000000..480697247 --- /dev/null +++ b/.yarn/cache/postgres-date-npm-2.0.1-00e0e0bc9e-0304bf8641.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a16e1c0ed7de9c844197f866cce20a75937c48cbeca44c4aec2fa55dde821314 +size 4094 diff --git a/.yarn/cache/postgres-interval-npm-3.0.0-936c769b98-c7a1cf006d.zip b/.yarn/cache/postgres-interval-npm-3.0.0-936c769b98-c7a1cf006d.zip new file mode 100644 index 000000000..08596e643 --- /dev/null +++ b/.yarn/cache/postgres-interval-npm-3.0.0-936c769b98-c7a1cf006d.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0dc9835ac3db16aae88a0dbc26612ca2fb703923982c71bc325b815872e12491 +size 4480 diff --git a/.yarn/cache/postgres-range-npm-1.1.3-46f68e1a9e-bf7e194a18.zip b/.yarn/cache/postgres-range-npm-1.1.3-46f68e1a9e-bf7e194a18.zip new file mode 100644 index 000000000..c0acee762 --- /dev/null +++ b/.yarn/cache/postgres-range-npm-1.1.3-46f68e1a9e-bf7e194a18.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:67e4589e356213da12373b43cc572852ade4b115d38f260ea76e5652ffd78f0b +size 4432 diff --git a/packages/backend/package.json b/packages/backend/package.json index 883ac91fa..4df1d5580 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -171,6 +171,7 @@ "@types/node-fetch": "3.0.3", "@types/nodemailer": "6.4.8", "@types/oauth": "0.9.1", + "@types/pg": "^8.10.5", "@types/probe-image-size": "^7.2.0", "@types/pug": "2.0.6", "@types/punycode": "2.1.0", diff --git a/yarn.lock b/yarn.lock index da119ad4d..9390e8063 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3446,6 +3446,17 @@ __metadata: languageName: node linkType: hard +"@types/pg@npm:^8.10.5": + version: 8.10.5 + resolution: "@types/pg@npm:8.10.5" + dependencies: + "@types/node": "*" + pg-protocol: "*" + pg-types: ^4.0.1 + checksum: 532a3104ed7898e3c7806e00cbde486dcfc803d2e99e236066f1b675ff0546a1cb232fe6f2ffc60dac81d3df209b69dbe62a597b565bff0965dd622fef957afe + languageName: node + linkType: hard + "@types/picomatch@npm:*": version: 2.3.0 resolution: "@types/picomatch@npm:2.3.0" @@ -5425,6 +5436,7 @@ __metadata: "@types/node-fetch": 3.0.3 "@types/nodemailer": 6.4.8 "@types/oauth": 0.9.1 + "@types/pg": ^8.10.5 "@types/probe-image-size": ^7.2.0 "@types/pug": 2.0.6 "@types/punycode": 2.1.0 @@ -15697,6 +15709,13 @@ __metadata: languageName: node linkType: hard +"obuf@npm:~1.1.2": + version: 1.1.2 + resolution: "obuf@npm:1.1.2" + checksum: 41a2ba310e7b6f6c3b905af82c275bf8854896e2e4c5752966d64cbcd2f599cfffd5932006bcf3b8b419dfdacebb3a3912d5d94e10f1d0acab59876c8757f27f + languageName: node + linkType: hard + "omggif@npm:^1.0.5": version: 1.0.10 resolution: "omggif@npm:1.0.10" @@ -16288,6 +16307,13 @@ __metadata: languageName: node linkType: hard +"pg-numeric@npm:1.0.2": + version: 1.0.2 + resolution: "pg-numeric@npm:1.0.2" + checksum: 8899f8200caa1744439a8778a9eb3ceefb599d893e40a09eef84ee0d4c151319fd416634a6c0fc7b7db4ac268710042da5be700b80ef0de716fe089b8652c84f + languageName: node + linkType: hard + "pg-pool@npm:^3.6.1": version: 3.6.1 resolution: "pg-pool@npm:3.6.1" @@ -16297,7 +16323,7 @@ __metadata: languageName: node linkType: hard -"pg-protocol@npm:^1.6.0": +"pg-protocol@npm:*, pg-protocol@npm:^1.6.0": version: 1.6.0 resolution: "pg-protocol@npm:1.6.0" checksum: e12662d2de2011e0c3a03f6a09f435beb1025acdc860f181f18a600a5495dc38a69d753bbde1ace279c8c442536af9c1a7c11e1d0fe3fad3aa1348b28d9d2683 @@ -16317,6 +16343,21 @@ __metadata: languageName: node linkType: hard +"pg-types@npm:^4.0.1": + version: 4.0.1 + resolution: "pg-types@npm:4.0.1" + dependencies: + pg-int8: 1.0.1 + pg-numeric: 1.0.2 + postgres-array: ~3.0.1 + postgres-bytea: ~3.0.0 + postgres-date: ~2.0.1 + postgres-interval: ^3.0.0 + postgres-range: ^1.1.1 + checksum: 05258ef2f27a75f1bf4e243f36bb749f85148339d3be818147bcc4aebe019ad7589a6869150713140250d81e5a46ec25dc6e0a031ea77e23db5ca232a0d7a3dc + languageName: node + linkType: hard + "pg@npm:8.11.1": version: 8.11.1 resolution: "pg@npm:8.11.1" @@ -16858,6 +16899,13 @@ __metadata: languageName: node linkType: hard +"postgres-array@npm:~3.0.1": + version: 3.0.2 + resolution: "postgres-array@npm:3.0.2" + checksum: 5955f9dffeb6fa960c1a0b04fd4b2ba16813ddb636934ad26f902e4d76a91c0b743dcc6edc4cffc52deba7d547505e0020adea027c1d50a774f989cf955420d1 + languageName: node + linkType: hard + "postgres-bytea@npm:~1.0.0": version: 1.0.0 resolution: "postgres-bytea@npm:1.0.0" @@ -16865,6 +16913,15 @@ __metadata: languageName: node linkType: hard +"postgres-bytea@npm:~3.0.0": + version: 3.0.0 + resolution: "postgres-bytea@npm:3.0.0" + dependencies: + obuf: ~1.1.2 + checksum: 5f917a003fcaa0df7f285e1c37108ad474ce91193466b9bd4bcaecef2cdea98ca069c00aa6a8dbe6d2e7192336cadc3c9b36ae48d1555a299521918e00e2936b + languageName: node + linkType: hard + "postgres-date@npm:~1.0.4": version: 1.0.7 resolution: "postgres-date@npm:1.0.7" @@ -16872,6 +16929,13 @@ __metadata: languageName: node linkType: hard +"postgres-date@npm:~2.0.1": + version: 2.0.1 + resolution: "postgres-date@npm:2.0.1" + checksum: 0304bf8641a01412e4f5c3a374604e2e3dbc9dbee71d30df12fe60b32560c5674f887c2d15bafa2996f3b618b617398e7605f0e3669db43f31e614dfe69f8de7 + languageName: node + linkType: hard + "postgres-interval@npm:^1.1.0": version: 1.2.0 resolution: "postgres-interval@npm:1.2.0" @@ -16881,6 +16945,20 @@ __metadata: languageName: node linkType: hard +"postgres-interval@npm:^3.0.0": + version: 3.0.0 + resolution: "postgres-interval@npm:3.0.0" + checksum: c7a1cf006de97de663b6b8c4d2b167aa9909a238c4866a94b15d303762f5ac884ff4796cd6e2111b7f0a91302b83c570453aa8506fd005b5a5d5dfa87441bebc + languageName: node + linkType: hard + +"postgres-range@npm:^1.1.1": + version: 1.1.3 + resolution: "postgres-range@npm:1.1.3" + checksum: bf7e194a18c490d02bda0bd02035a8da454d8fd2b22c55d3d03f185c038b2a6f52d0804417d8090864afefc2b7ed664b2d12c2454a4a0f545dcbbb86488fbdf1 + languageName: node + linkType: hard + "prebuild-install@npm:^7.1.1": version: 7.1.1 resolution: "prebuild-install@npm:7.1.1"