From 6199eb67d5a202b2bd10a8e92db9f9168d100848 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 9 Jul 2023 14:55:48 +0400 Subject: [PATCH] feat: update typegraphql-prisma-nestjs to 0.2600.0 --- package-lock.json | 651 +++++++++++------- package.json | 8 +- prisma/schema.prisma | 1 + schema.gql | 26 +- src/dal/enhance.ts | 1 + src/dal/enums/NullsOrder.ts | 10 + src/dal/enums/index.ts | 1 + src/dal/resolvers/inputs/SortOrderInput.ts | 21 + .../inputs/UserOrderByWithAggregationInput.ts | 17 +- .../inputs/UserOrderByWithRelationInput.ts | 17 +- src/dal/resolvers/inputs/index.ts | 1 + 11 files changed, 483 insertions(+), 271 deletions(-) create mode 100644 src/dal/enums/NullsOrder.ts create mode 100644 src/dal/resolvers/inputs/SortOrderInput.ts diff --git a/package-lock.json b/package-lock.json index fe07f43..c385a5f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@nestjs/core": "8.2.6", "@nestjs/graphql": "8.0.2", "@nestjs/platform-express": "8.2.6", - "@prisma/client": "~4.14.0", + "@prisma/client": "~4.15.0", "@prisma/sdk": "~4.0.0", "apollo-server-express": "2.25.0", "class-transformer": "0.5.1", @@ -31,7 +31,7 @@ "@nestjs/cli": "8.2.0", "@nestjs/schematics": "8.0.6", "@nestjs/testing": "8.2.6", - "@prisma/generator-helper": "~4.14.0", + "@prisma/generator-helper": "~4.15.0", "@types/express": "4.17.12", "@types/graphql-fields": "^1.3.3", "@types/node": "15.6.1", @@ -45,13 +45,13 @@ "graphql-scalars": "^1.9.3", "jest": "27.0.1", "prettier": "2.3.0", - "prisma": "~4.14.0", + "prisma": "~4.15.0", "supertest": "6.1.3", "ts-jest": "27.0.1", "ts-loader": "9.2.2", "ts-node": "10.0.0", "tsconfig-paths": "3.9.0", - "typegraphql-prisma-nestjs": "0.2500.1", + "typegraphql-prisma-nestjs": "0.2600.0", "typescript": "4.3.5" } }, @@ -221,6 +221,21 @@ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "dev": true }, + "node_modules/@antfu/ni": { + "version": "0.21.4", + "resolved": "https://registry.npmjs.org/@antfu/ni/-/ni-0.21.4.tgz", + "integrity": "sha512-O0Uv9LbLDSoEg26fnMDdDRiPwFJnQSoD4WnrflDwKCJm8Cx/0mV4cGxwBLXan5mGIrpK4Dd7vizf4rQm0QCEAA==", + "dev": true, + "bin": { + "na": "bin/na.mjs", + "nci": "bin/nci.mjs", + "ni": "bin/ni.mjs", + "nlx": "bin/nlx.mjs", + "nr": "bin/nr.mjs", + "nu": "bin/nu.mjs", + "nun": "bin/nun.mjs" + } + }, "node_modules/@apollo/protobufjs": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/@apollo/protobufjs/-/protobufjs-1.2.2.tgz", @@ -2080,12 +2095,12 @@ } }, "node_modules/@prisma/client": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@prisma/client/-/client-4.14.1.tgz", - "integrity": "sha512-TZIswkeX1ccsHG/eN2kICzg/csXll0osK3EHu1QKd8VJ3XLcXozbNELKkCNfsCUvKJAwPdDtFCzF+O+raIVldw==", + "version": "4.15.0", + "resolved": "https://registry.npmjs.org/@prisma/client/-/client-4.15.0.tgz", + "integrity": "sha512-xnROvyABcGiwqRNdrObHVZkD9EjkJYHOmVdlKy1yGgI+XOzvMzJ4tRg3dz1pUlsyhKxXGCnjIQjWW+2ur+YXuw==", "hasInstallScript": true, "dependencies": { - "@prisma/engines-version": "4.14.0-67.d9a4c5988f480fa576d43970d5a23641aa77bc9c" + "@prisma/engines-version": "4.15.0-28.8fbc245156db7124f997f4cecdd8d1219e360944" }, "engines": { "node": ">=14.17" @@ -2100,16 +2115,25 @@ } }, "node_modules/@prisma/debug": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@prisma/debug/-/debug-4.14.1.tgz", - "integrity": "sha512-jZjNZimL7FVlSyL78r/w9pSqu2s1y+5JGyi0Ajvq17cBCdDzMONGM76PDKBWjOusRhbZD4xcTQ5kfr9JqM0I2A==", + "version": "4.15.0", + "resolved": "https://registry.npmjs.org/@prisma/debug/-/debug-4.15.0.tgz", + "integrity": "sha512-dkbPz+gOVlWDBAaOEseSpAUz9NppT38UlwdryPyrwct6OClLirNC7wH+TpAQk5OZp9x59hNnfDz+T7XvL1v0/Q==", "dev": true, "dependencies": { - "@types/debug": "4.1.7", + "@types/debug": "4.1.8", "debug": "4.3.4", "strip-ansi": "6.0.1" } }, + "node_modules/@prisma/debug/node_modules/@types/debug": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.8.tgz", + "integrity": "sha512-/vPO1EPOs306Cvhwv7KfVfYvOJqA/S/AXjaHQiJboCZzcNDb+TIJFN9/2C9DZ//ijSKWioNyUxD792QmDJ+HKQ==", + "dev": true, + "dependencies": { + "@types/ms": "*" + } + }, "node_modules/@prisma/engine-core": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/@prisma/engine-core/-/engine-core-4.0.0.tgz", @@ -2172,9 +2196,9 @@ "hasInstallScript": true }, "node_modules/@prisma/engines-version": { - "version": "4.14.0-67.d9a4c5988f480fa576d43970d5a23641aa77bc9c", - "resolved": "https://registry.npmjs.org/@prisma/engines-version/-/engines-version-4.14.0-67.d9a4c5988f480fa576d43970d5a23641aa77bc9c.tgz", - "integrity": "sha512-3jum8/YSudeSN0zGW5qkpz+wAN2V/NYCQ+BPjvHYDfWatLWlQkqy99toX0GysDeaUoBIJg1vaz2yKqiA3CFcQw==" + "version": "4.15.0-28.8fbc245156db7124f997f4cecdd8d1219e360944", + "resolved": "https://registry.npmjs.org/@prisma/engines-version/-/engines-version-4.15.0-28.8fbc245156db7124f997f4cecdd8d1219e360944.tgz", + "integrity": "sha512-sVOig4tjGxxlYaFcXgE71f/rtFhzyYrfyfNFUsxCIEJyVKU9rdOWIlIwQ2NQ7PntvGnn+x0XuFo4OC1jvPJKzg==" }, "node_modules/@prisma/fetch-engine": { "version": "3.16.0-49.da41d2bb3406da22087b849f0e911199ba4fbf11", @@ -2226,12 +2250,12 @@ } }, "node_modules/@prisma/generator-helper": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@prisma/generator-helper/-/generator-helper-4.14.1.tgz", - "integrity": "sha512-7mxfM6NTLsUgbmx8t+AQTtOdDuUMG+D4K5QtALQP1A3MD7wZy2O+Np4apbvVJwNUn1286PZWk2DTv4cF7XiK3w==", + "version": "4.15.0", + "resolved": "https://registry.npmjs.org/@prisma/generator-helper/-/generator-helper-4.15.0.tgz", + "integrity": "sha512-JVHNgXr0LrcqXqmFrs+BzxfyRL6cFD5GLTMVWfCLU7kqSJdWuZxfoZW995tg6mOXnBgPTf6Ocv3RY4RLQq8k4g==", "dev": true, "dependencies": { - "@prisma/debug": "4.14.1", + "@prisma/debug": "4.15.0", "@types/cross-spawn": "6.0.2", "cross-spawn": "7.0.3", "kleur": "4.1.5" @@ -2265,28 +2289,28 @@ } }, "node_modules/@prisma/internals": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@prisma/internals/-/internals-4.14.1.tgz", - "integrity": "sha512-JbT5EhwzYV5VKdPWyGNTvYKI4MBinHF8fDglRtC0mbdYEl8IZNoMK5n5QDO4m8vQKGy10Mn3VcnhsEfO6FbdKw==", + "version": "4.16.2", + "resolved": "https://registry.npmjs.org/@prisma/internals/-/internals-4.16.2.tgz", + "integrity": "sha512-/3OiSADA3RRgsaeEE+MDsBgL6oAMwddSheXn6wtYGUnjERAV/BmF5bMMLnTykesQqwZ1s8HrISrJ0Vf6cjOxMg==", "dev": true, "dependencies": { + "@antfu/ni": "0.21.4", "@opentelemetry/api": "1.4.1", - "@prisma/debug": "4.14.1", - "@prisma/engines": "4.14.1", - "@prisma/fetch-engine": "4.14.1", - "@prisma/generator-helper": "4.14.1", - "@prisma/get-platform": "4.14.1", - "@prisma/ni": "4.14.1", - "@prisma/prisma-fmt-wasm": "4.14.0-67.d9a4c5988f480fa576d43970d5a23641aa77bc9c", + "@prisma/debug": "4.16.2", + "@prisma/engines": "4.16.2", + "@prisma/fetch-engine": "4.16.2", + "@prisma/generator-helper": "4.16.2", + "@prisma/get-platform": "4.16.2", + "@prisma/prisma-fmt-wasm": "4.16.1-1.4bc8b6e1b66cb932731fb1bdbbc550d1e010de81", "archiver": "5.3.1", "arg": "5.0.2", - "checkpoint-client": "1.1.23", + "checkpoint-client": "1.1.24", "cli-truncate": "2.1.0", "dotenv": "16.0.3", "escape-string-regexp": "4.0.0", "execa": "5.1.1", "find-up": "5.0.0", - "fp-ts": "2.14.0", + "fp-ts": "2.16.0", "fs-extra": "11.1.1", "fs-jetpack": "5.1.0", "global-dirs": "3.0.1", @@ -2296,9 +2320,9 @@ "is-wsl": "2.2.0", "kleur": "4.1.5", "new-github-issue-url": "0.2.1", - "node-fetch": "2.6.9", + "node-fetch": "2.6.11", "npm-packlist": "5.1.3", - "open": "7", + "open": "7.4.2", "p-map": "4.0.0", "prompts": "2.4.2", "read-pkg-up": "7.0.1", @@ -2312,32 +2336,43 @@ "tempy": "1.0.1", "terminal-link": "2.1.1", "tmp": "0.2.1", - "ts-pattern": "4.2.2" + "ts-pattern": "4.3.0" + } + }, + "node_modules/@prisma/internals/node_modules/@prisma/debug": { + "version": "4.16.2", + "resolved": "https://registry.npmjs.org/@prisma/debug/-/debug-4.16.2.tgz", + "integrity": "sha512-7L7WbG0qNNZYgLpsVB8rCHCXEyHFyIycRlRDNwkVfjQmACC2OW6AWCYCbfdjQhkF/t7+S3njj8wAWAocSs+Brw==", + "dev": true, + "dependencies": { + "@types/debug": "4.1.8", + "debug": "4.3.4", + "strip-ansi": "6.0.1" } }, "node_modules/@prisma/internals/node_modules/@prisma/engines": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-4.14.1.tgz", - "integrity": "sha512-APqFddPVHYmWNKqc+5J5SqrLFfOghKOLZxobmguDUacxOwdEutLsbXPVhNnpFDmuQWQFbXmrTTPoRrrF6B1MWA==", + "version": "4.16.2", + "resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-4.16.2.tgz", + "integrity": "sha512-vx1nxVvN4QeT/cepQce68deh/Turxy5Mr+4L4zClFuK1GlxN3+ivxfuv+ej/gvidWn1cE1uAhW7ALLNlYbRUAw==", "dev": true, "hasInstallScript": true }, "node_modules/@prisma/internals/node_modules/@prisma/fetch-engine": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@prisma/fetch-engine/-/fetch-engine-4.14.1.tgz", - "integrity": "sha512-4IRZMbeA+5tU+gf15n8oUxGIPqJyF1Gc7DOeP178nvKPNFESp3tWDvzD5vOpVuE0GRM2Mq5WrtiQo5XLD0yQnw==", + "version": "4.16.2", + "resolved": "https://registry.npmjs.org/@prisma/fetch-engine/-/fetch-engine-4.16.2.tgz", + "integrity": "sha512-lnCnHcOaNn0kw8qTJbVcNhyfIf5Lus2GFXbj3qpkdKEIB9xLgqkkuTP+35q1xFaqwQ0vy4HFpdRUpFP7njE15g==", "dev": true, "dependencies": { - "@prisma/debug": "4.14.1", - "@prisma/get-platform": "4.14.1", + "@prisma/debug": "4.16.2", + "@prisma/get-platform": "4.16.2", "execa": "5.1.1", "find-cache-dir": "3.3.2", "fs-extra": "11.1.1", "hasha": "5.2.2", - "http-proxy-agent": "5.0.0", - "https-proxy-agent": "5.0.1", + "http-proxy-agent": "7.0.0", + "https-proxy-agent": "7.0.0", "kleur": "4.1.5", - "node-fetch": "2.6.9", + "node-fetch": "2.6.11", "p-filter": "2.1.0", "p-map": "4.0.0", "p-retry": "4.6.2", @@ -2347,13 +2382,25 @@ "tempy": "1.0.1" } }, + "node_modules/@prisma/internals/node_modules/@prisma/generator-helper": { + "version": "4.16.2", + "resolved": "https://registry.npmjs.org/@prisma/generator-helper/-/generator-helper-4.16.2.tgz", + "integrity": "sha512-bMOH7y73Ui7gpQrioFeavMQA+Tf8ksaVf8Nhs9rQNzuSg8SSV6E9baczob0L5KGZTSgYoqnrRxuo03kVJYrnIg==", + "dev": true, + "dependencies": { + "@prisma/debug": "4.16.2", + "@types/cross-spawn": "6.0.2", + "cross-spawn": "7.0.3", + "kleur": "4.1.5" + } + }, "node_modules/@prisma/internals/node_modules/@prisma/get-platform": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@prisma/get-platform/-/get-platform-4.14.1.tgz", - "integrity": "sha512-b5EXlVaW2JDCB3o5lsik9NZwARflOLCINyhDgNaqpGGljcXoUneqAlvm9dZ9YNckXImghV1B19aouVpm1LjPrg==", + "version": "4.16.2", + "resolved": "https://registry.npmjs.org/@prisma/get-platform/-/get-platform-4.16.2.tgz", + "integrity": "sha512-fnDey1/iSefHJRMB+w243BhWENf+paRouPMdCqIVqu8dYkR1NqhldblsSUC4Zr2sKS7Ta2sK4OLdt9IH+PZTfw==", "dev": true, "dependencies": { - "@prisma/debug": "4.14.1", + "@prisma/debug": "4.16.2", "escape-string-regexp": "4.0.0", "execa": "5.1.1", "fs-jetpack": "5.1.0", @@ -2362,7 +2409,28 @@ "strip-ansi": "6.0.1", "tempy": "1.0.1", "terminal-link": "2.1.1", - "ts-pattern": "4.2.2" + "ts-pattern": "4.3.0" + } + }, + "node_modules/@prisma/internals/node_modules/@types/debug": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.8.tgz", + "integrity": "sha512-/vPO1EPOs306Cvhwv7KfVfYvOJqA/S/AXjaHQiJboCZzcNDb+TIJFN9/2C9DZ//ijSKWioNyUxD792QmDJ+HKQ==", + "dev": true, + "dependencies": { + "@types/ms": "*" + } + }, + "node_modules/@prisma/internals/node_modules/agent-base": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", + "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", + "dev": true, + "dependencies": { + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" } }, "node_modules/@prisma/internals/node_modules/brace-expansion": { @@ -2375,38 +2443,33 @@ } }, "node_modules/@prisma/internals/node_modules/checkpoint-client": { - "version": "1.1.23", - "resolved": "https://registry.npmjs.org/checkpoint-client/-/checkpoint-client-1.1.23.tgz", - "integrity": "sha512-NrGvMiH1fUcZwrYc0Z+YTn7q9ysV0kPgVyDKZ5jrfIerFJuSllvyGsY7bHeQSEiljaIaUP1Q/xutZ8q1s7PGzg==", + "version": "1.1.24", + "resolved": "https://registry.npmjs.org/checkpoint-client/-/checkpoint-client-1.1.24.tgz", + "integrity": "sha512-nIOlLhDS7MKs4tUzS3LCm+sE1NgTCVnVrXlD0RRxaoEkkLu8LIWSUNiNWai6a+LK5unLzTyZeTCYX1Smqy0YoA==", "dev": true, "dependencies": { - "ci-info": "3.3.0", + "ci-info": "3.8.0", "env-paths": "2.2.1", "fast-write-atomic": "0.2.1", "make-dir": "3.1.0", "ms": "2.1.3", - "node-fetch": "2.6.7", - "uuid": "8.3.2" + "node-fetch": "2.6.11", + "uuid": "9.0.0" } }, - "node_modules/@prisma/internals/node_modules/checkpoint-client/node_modules/node-fetch": { - "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", + "node_modules/@prisma/internals/node_modules/ci-info": { + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz", + "integrity": "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==", "dev": true, - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" } + ], + "engines": { + "node": ">=8" } }, "node_modules/@prisma/internals/node_modules/dotenv": { @@ -2419,9 +2482,9 @@ } }, "node_modules/@prisma/internals/node_modules/fp-ts": { - "version": "2.14.0", - "resolved": "https://registry.npmjs.org/fp-ts/-/fp-ts-2.14.0.tgz", - "integrity": "sha512-QLagLSYAgMA00pZzUzeksH/78Sd14y7+Gc2A8Yaja3/IpGOFMdm/gYBuDMxYqLsJ58iT5lz+bJb953RAeFfp1A==", + "version": "2.16.0", + "resolved": "https://registry.npmjs.org/fp-ts/-/fp-ts-2.16.0.tgz", + "integrity": "sha512-bLq+KgbiXdTEoT1zcARrWEpa5z6A/8b7PcDW7Gef3NSisQ+VS7ll2Xbf1E+xsgik0rWub/8u0qP/iTTjj+PhxQ==", "dev": true }, "node_modules/@prisma/internals/node_modules/fs-extra": { @@ -2462,6 +2525,32 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/@prisma/internals/node_modules/http-proxy-agent": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.0.tgz", + "integrity": "sha512-+ZT+iBxVUQ1asugqnD6oWoRiS25AkjNfG085dKJGtGxkdwLQrMKU5wJr2bOOFAXzKcTuqq+7fZlTMgG3SRfIYQ==", + "dev": true, + "dependencies": { + "agent-base": "^7.1.0", + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/@prisma/internals/node_modules/https-proxy-agent": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.0.tgz", + "integrity": "sha512-0euwPCRyAPSgGdzD1IVN9nJYHtBhJwb6XPfbpQcYbPCwrBidX6GzxmchnaF4sfF/jPb74Ojx5g4yTg3sixlyPw==", + "dev": true, + "dependencies": { + "agent-base": "^7.0.2", + "debug": "4" + }, + "engines": { + "node": ">= 14" + } + }, "node_modules/@prisma/internals/node_modules/kleur": { "version": "4.1.5", "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", @@ -2484,9 +2573,9 @@ } }, "node_modules/@prisma/internals/node_modules/node-fetch": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.9.tgz", - "integrity": "sha512-DJm/CJkZkRjKKj4Zi4BsKVZh3ValV5IR5s7LVZnW+6YMh0W1BfNA8XSs6DLMGYlId5F3KnA70uu2qepcR08Qqg==", + "version": "2.6.11", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.11.tgz", + "integrity": "sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w==", "dev": true, "dependencies": { "whatwg-url": "^5.0.0" @@ -2526,6 +2615,15 @@ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", "dev": true }, + "node_modules/@prisma/internals/node_modules/uuid": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.0.tgz", + "integrity": "sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==", + "dev": true, + "bin": { + "uuid": "dist/bin/uuid" + } + }, "node_modules/@prisma/internals/node_modules/webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", @@ -2542,16 +2640,10 @@ "webidl-conversions": "^3.0.0" } }, - "node_modules/@prisma/ni": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@prisma/ni/-/ni-4.14.1.tgz", - "integrity": "sha512-71ep1GT2k5il/hnLBuGpw81UzcBX5yON2XxOlQ3JknlvOQKkdDRM3If9UgJUrJxx7BHBzieZK02PIKbFVEuqmg==", - "dev": true - }, "node_modules/@prisma/prisma-fmt-wasm": { - "version": "4.14.0-67.d9a4c5988f480fa576d43970d5a23641aa77bc9c", - "resolved": "https://registry.npmjs.org/@prisma/prisma-fmt-wasm/-/prisma-fmt-wasm-4.14.0-67.d9a4c5988f480fa576d43970d5a23641aa77bc9c.tgz", - "integrity": "sha512-qvxi6xbUb4wcawvLju0t2soGBPGs13L6HVmJrZG+RGaDDuJn9qzDAdZl97YdyFgn4jN6VMJeSqXt3yTWKkaaUw==", + "version": "4.16.1-1.4bc8b6e1b66cb932731fb1bdbbc550d1e010de81", + "resolved": "https://registry.npmjs.org/@prisma/prisma-fmt-wasm/-/prisma-fmt-wasm-4.16.1-1.4bc8b6e1b66cb932731fb1bdbbc550d1e010de81.tgz", + "integrity": "sha512-g090+dEH7wrdCw359+8J9+TGH84qK28V/dxwINjhhNCtju9lej99z9w/AVsJP9UhhcCPS4psYz4iu8d53uxVpA==", "dev": true }, "node_modules/@prisma/sdk": { @@ -6821,9 +6913,9 @@ } }, "node_modules/graphql-scalars": { - "version": "1.22.0", - "resolved": "https://registry.npmjs.org/graphql-scalars/-/graphql-scalars-1.22.0.tgz", - "integrity": "sha512-t3r6c/cMF6OP64oN+YYVwempyMA4tbI/JdWWDdPN1U45IgpIfPZmJdO+wvPPoptxL9Lr/7jmgRFRsAUg66DFmA==", + "version": "1.22.2", + "resolved": "https://registry.npmjs.org/graphql-scalars/-/graphql-scalars-1.22.2.tgz", + "integrity": "sha512-my9FB4GtghqXqi/lWSVAOPiTzTnnEzdOXCsAC2bb5V7EFNQjVjwy3cSSbUvgYOtDuDibd+ZsCDhz+4eykYOlhQ==", "dev": true, "dependencies": { "tslib": "^2.5.0" @@ -10170,13 +10262,13 @@ "integrity": "sha512-VVtxR7sOh0VsG8o06Ttq5TrI1aiZKmC+ClSn4eBPaNf4SHr5lzbYW+kYGX3HocBL/MfpVrRfFZ9V3vCbLaiplg==" }, "node_modules/prisma": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/prisma/-/prisma-4.14.1.tgz", - "integrity": "sha512-z6hxzTMYqT9SIKlzD08dhzsLUpxjFKKsLpp5/kBDnSqiOjtUyyl/dC5tzxLcOa3jkEHQ8+RpB/fE3w8bgNP51g==", + "version": "4.15.0", + "resolved": "https://registry.npmjs.org/prisma/-/prisma-4.15.0.tgz", + "integrity": "sha512-iKZZpobPl48gTcSZVawLMQ3lEy6BnXwtoMj7hluoGFYu2kQ6F9LBuBrUyF95zRVnNo8/3KzLXJXJ5TEnLSJFiA==", "devOptional": true, "hasInstallScript": true, "dependencies": { - "@prisma/engines": "4.14.1" + "@prisma/engines": "4.15.0" }, "bin": { "prisma": "build/index.js", @@ -10187,9 +10279,9 @@ } }, "node_modules/prisma/node_modules/@prisma/engines": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-4.14.1.tgz", - "integrity": "sha512-APqFddPVHYmWNKqc+5J5SqrLFfOghKOLZxobmguDUacxOwdEutLsbXPVhNnpFDmuQWQFbXmrTTPoRrrF6B1MWA==", + "version": "4.15.0", + "resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-4.15.0.tgz", + "integrity": "sha512-FTaOCGs0LL0OW68juZlGxFtYviZa4xdQj/rQEdat2txw0s3Vu/saAPKjNVXfIgUsGXmQ72HPgNr6935/P8FNAA==", "devOptional": true, "hasInstallScript": true }, @@ -10799,9 +10891,9 @@ "dev": true }, "node_modules/semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dependencies": { "lru-cache": "^6.0.0" }, @@ -11844,9 +11936,9 @@ "dev": true }, "node_modules/ts-pattern": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/ts-pattern/-/ts-pattern-4.2.2.tgz", - "integrity": "sha512-qzJMo2pbkUJWusRH5o8xR+xogn6RmvViyUgwBFTtRENLse470clCGjHDf6haWGZ1AOmk8XkEohUoBW8Uut6Scg==" + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ts-pattern/-/ts-pattern-4.3.0.tgz", + "integrity": "sha512-pefrkcd4lmIVR0LA49Imjf9DYLK8vtWhqBPA3Ya1ir8xCW0O2yjL9dsCVvI7pCodLC5q7smNpEtDR2yVulQxOg==" }, "node_modules/tsconfig-paths": { "version": "3.9.0", @@ -12021,18 +12113,18 @@ } }, "node_modules/typegraphql-prisma-nestjs": { - "version": "0.2500.1", - "resolved": "file:typegraphql-prisma-nestjs-0.2500.1.tgz", - "integrity": "sha512-6t900ccY4d1ncy9UGLS/d0/ETl3O3JzJayG9c84AWQC68IlYGOEenRYRe+fDXxdchjT/mJdM+wNNp5b4hfgv7A==", + "version": "0.2600.0", + "resolved": "file:typegraphql-prisma-nestjs-0.2600.0.tgz", + "integrity": "sha512-AOGdneY08oBvy3tK4rVaA3FoSmqnzWGmRx7UVSd/1YzohsP6mJ3al5f+529o8bbVhobgZCcISEMFgTqOOKylyg==", "dev": true, "license": "MIT", "dependencies": { - "@prisma/generator-helper": "^4.14.0", - "@prisma/internals": "^4.14.0", + "@prisma/generator-helper": "^4.15.0", + "@prisma/internals": "^4.15.0", "pluralize": "^8.0.0", - "semver": "^7.5.0", - "ts-morph": "^18.0.0", - "tslib": "^2.5.0" + "semver": "^7.5.2", + "ts-morph": "^19.0.0", + "tslib": "^2.5.3" }, "bin": { "typegraphql-prisma-nestjs": "lib/generator.js" @@ -12041,20 +12133,20 @@ "node": ">=12.4" }, "peerDependencies": { - "@prisma/client": "^4.14.0", + "@prisma/client": "^4.15.0", "@types/graphql-fields": "^1.3.5", "@types/node": "*", "graphql-fields": "^2.0.3", - "graphql-scalars": "^1.21.3", - "prisma": "^4.14.0", - "tslib": "^2.5.0", - "type-graphql": "^1.1.1 || >=1.2.0-rc.1 || >=2.0.0-beta" + "graphql-scalars": "^1.22.2", + "prisma": "^4.15.0", + "tslib": "^2.5.3", + "type-graphql": "^1.1.1 || >=1.2.0-rc || >=2.0.0-beta" } }, "node_modules/typegraphql-prisma-nestjs/node_modules/@ts-morph/common": { - "version": "0.19.0", - "resolved": "https://registry.npmjs.org/@ts-morph/common/-/common-0.19.0.tgz", - "integrity": "sha512-Unz/WHmd4pGax91rdIKWi51wnVUW11QttMEPpBiBgIewnc9UQIX7UDLxr5vRlqeByXCwhkF6VabSsI0raWcyAQ==", + "version": "0.20.0", + "resolved": "https://registry.npmjs.org/@ts-morph/common/-/common-0.20.0.tgz", + "integrity": "sha512-7uKjByfbPpwuzkstL3L5MQyuXPSKdoNG93Fmi2JoDcTf3pEP731JdRFAduRVkOs8oqxPsXKA+ScrWkdQ8t/I+Q==", "dev": true, "dependencies": { "fast-glob": "^3.2.12", @@ -12079,9 +12171,9 @@ "dev": true }, "node_modules/typegraphql-prisma-nestjs/node_modules/fast-glob": { - "version": "3.2.12", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", - "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.0.tgz", + "integrity": "sha512-ChDuvbOypPuNjO8yIDf36x7BlZX1smcUMTTcyoIjycexOxd6DFsKsg21qVBzEmr3G7fUKIRy2/psii+CIUt7FA==", "dev": true, "dependencies": { "@nodelib/fs.stat": "^2.0.2", @@ -12125,19 +12217,19 @@ } }, "node_modules/typegraphql-prisma-nestjs/node_modules/ts-morph": { - "version": "18.0.0", - "resolved": "https://registry.npmjs.org/ts-morph/-/ts-morph-18.0.0.tgz", - "integrity": "sha512-Kg5u0mk19PIIe4islUI/HWRvm9bC1lHejK4S0oh1zaZ77TMZAEmQC0sHQYiu2RgCQFZKXz1fMVi/7nOOeirznA==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/ts-morph/-/ts-morph-19.0.0.tgz", + "integrity": "sha512-D6qcpiJdn46tUqV45vr5UGM2dnIEuTGNxVhg0sk5NX11orcouwj6i1bMqZIz2mZTZB1Hcgy7C3oEVhAT+f6mbQ==", "dev": true, "dependencies": { - "@ts-morph/common": "~0.19.0", + "@ts-morph/common": "~0.20.0", "code-block-writer": "^12.0.0" } }, "node_modules/typegraphql-prisma-nestjs/node_modules/tslib": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.2.tgz", - "integrity": "sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA==", + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.0.tgz", + "integrity": "sha512-7At1WUettjcSRHXCyYtTselblcHl9PJFFVKiCAy/bY97+BPZXSQ2wbq0P9s8tK2G7dFQfNnlJnPAiArVBVBsfA==", "dev": true }, "node_modules/typescript": { @@ -13005,6 +13097,12 @@ } } }, + "@antfu/ni": { + "version": "0.21.4", + "resolved": "https://registry.npmjs.org/@antfu/ni/-/ni-0.21.4.tgz", + "integrity": "sha512-O0Uv9LbLDSoEg26fnMDdDRiPwFJnQSoD4WnrflDwKCJm8Cx/0mV4cGxwBLXan5mGIrpK4Dd7vizf4rQm0QCEAA==", + "dev": true + }, "@apollo/protobufjs": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/@apollo/protobufjs/-/protobufjs-1.2.2.tgz", @@ -14384,22 +14482,33 @@ "dev": true }, "@prisma/client": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@prisma/client/-/client-4.14.1.tgz", - "integrity": "sha512-TZIswkeX1ccsHG/eN2kICzg/csXll0osK3EHu1QKd8VJ3XLcXozbNELKkCNfsCUvKJAwPdDtFCzF+O+raIVldw==", + "version": "4.15.0", + "resolved": "https://registry.npmjs.org/@prisma/client/-/client-4.15.0.tgz", + "integrity": "sha512-xnROvyABcGiwqRNdrObHVZkD9EjkJYHOmVdlKy1yGgI+XOzvMzJ4tRg3dz1pUlsyhKxXGCnjIQjWW+2ur+YXuw==", "requires": { - "@prisma/engines-version": "4.14.0-67.d9a4c5988f480fa576d43970d5a23641aa77bc9c" + "@prisma/engines-version": "4.15.0-28.8fbc245156db7124f997f4cecdd8d1219e360944" } }, "@prisma/debug": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@prisma/debug/-/debug-4.14.1.tgz", - "integrity": "sha512-jZjNZimL7FVlSyL78r/w9pSqu2s1y+5JGyi0Ajvq17cBCdDzMONGM76PDKBWjOusRhbZD4xcTQ5kfr9JqM0I2A==", + "version": "4.15.0", + "resolved": "https://registry.npmjs.org/@prisma/debug/-/debug-4.15.0.tgz", + "integrity": "sha512-dkbPz+gOVlWDBAaOEseSpAUz9NppT38UlwdryPyrwct6OClLirNC7wH+TpAQk5OZp9x59hNnfDz+T7XvL1v0/Q==", "dev": true, "requires": { - "@types/debug": "4.1.7", + "@types/debug": "4.1.8", "debug": "4.3.4", "strip-ansi": "6.0.1" + }, + "dependencies": { + "@types/debug": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.8.tgz", + "integrity": "sha512-/vPO1EPOs306Cvhwv7KfVfYvOJqA/S/AXjaHQiJboCZzcNDb+TIJFN9/2C9DZ//ijSKWioNyUxD792QmDJ+HKQ==", + "dev": true, + "requires": { + "@types/ms": "*" + } + } } }, "@prisma/engine-core": { @@ -14459,9 +14568,9 @@ "integrity": "sha512-u/rG4lDHALolWBLr3yebZ+N2qImp3SDMcu7bHNJuRDaYvYEXy/MqfNRNEgd9GoPsXL3gofYf0VzJf2AmCG3YVw==" }, "@prisma/engines-version": { - "version": "4.14.0-67.d9a4c5988f480fa576d43970d5a23641aa77bc9c", - "resolved": "https://registry.npmjs.org/@prisma/engines-version/-/engines-version-4.14.0-67.d9a4c5988f480fa576d43970d5a23641aa77bc9c.tgz", - "integrity": "sha512-3jum8/YSudeSN0zGW5qkpz+wAN2V/NYCQ+BPjvHYDfWatLWlQkqy99toX0GysDeaUoBIJg1vaz2yKqiA3CFcQw==" + "version": "4.15.0-28.8fbc245156db7124f997f4cecdd8d1219e360944", + "resolved": "https://registry.npmjs.org/@prisma/engines-version/-/engines-version-4.15.0-28.8fbc245156db7124f997f4cecdd8d1219e360944.tgz", + "integrity": "sha512-sVOig4tjGxxlYaFcXgE71f/rtFhzyYrfyfNFUsxCIEJyVKU9rdOWIlIwQ2NQ7PntvGnn+x0XuFo4OC1jvPJKzg==" }, "@prisma/fetch-engine": { "version": "3.16.0-49.da41d2bb3406da22087b849f0e911199ba4fbf11", @@ -14509,12 +14618,12 @@ } }, "@prisma/generator-helper": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@prisma/generator-helper/-/generator-helper-4.14.1.tgz", - "integrity": "sha512-7mxfM6NTLsUgbmx8t+AQTtOdDuUMG+D4K5QtALQP1A3MD7wZy2O+Np4apbvVJwNUn1286PZWk2DTv4cF7XiK3w==", + "version": "4.15.0", + "resolved": "https://registry.npmjs.org/@prisma/generator-helper/-/generator-helper-4.15.0.tgz", + "integrity": "sha512-JVHNgXr0LrcqXqmFrs+BzxfyRL6cFD5GLTMVWfCLU7kqSJdWuZxfoZW995tg6mOXnBgPTf6Ocv3RY4RLQq8k4g==", "dev": true, "requires": { - "@prisma/debug": "4.14.1", + "@prisma/debug": "4.15.0", "@types/cross-spawn": "6.0.2", "cross-spawn": "7.0.3", "kleur": "4.1.5" @@ -14549,28 +14658,28 @@ } }, "@prisma/internals": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@prisma/internals/-/internals-4.14.1.tgz", - "integrity": "sha512-JbT5EhwzYV5VKdPWyGNTvYKI4MBinHF8fDglRtC0mbdYEl8IZNoMK5n5QDO4m8vQKGy10Mn3VcnhsEfO6FbdKw==", + "version": "4.16.2", + "resolved": "https://registry.npmjs.org/@prisma/internals/-/internals-4.16.2.tgz", + "integrity": "sha512-/3OiSADA3RRgsaeEE+MDsBgL6oAMwddSheXn6wtYGUnjERAV/BmF5bMMLnTykesQqwZ1s8HrISrJ0Vf6cjOxMg==", "dev": true, "requires": { + "@antfu/ni": "0.21.4", "@opentelemetry/api": "1.4.1", - "@prisma/debug": "4.14.1", - "@prisma/engines": "4.14.1", - "@prisma/fetch-engine": "4.14.1", - "@prisma/generator-helper": "4.14.1", - "@prisma/get-platform": "4.14.1", - "@prisma/ni": "4.14.1", - "@prisma/prisma-fmt-wasm": "4.14.0-67.d9a4c5988f480fa576d43970d5a23641aa77bc9c", + "@prisma/debug": "4.16.2", + "@prisma/engines": "4.16.2", + "@prisma/fetch-engine": "4.16.2", + "@prisma/generator-helper": "4.16.2", + "@prisma/get-platform": "4.16.2", + "@prisma/prisma-fmt-wasm": "4.16.1-1.4bc8b6e1b66cb932731fb1bdbbc550d1e010de81", "archiver": "5.3.1", "arg": "5.0.2", - "checkpoint-client": "1.1.23", + "checkpoint-client": "1.1.24", "cli-truncate": "2.1.0", "dotenv": "16.0.3", "escape-string-regexp": "4.0.0", "execa": "5.1.1", "find-up": "5.0.0", - "fp-ts": "2.14.0", + "fp-ts": "2.16.0", "fs-extra": "11.1.1", "fs-jetpack": "5.1.0", "global-dirs": "3.0.1", @@ -14580,9 +14689,9 @@ "is-wsl": "2.2.0", "kleur": "4.1.5", "new-github-issue-url": "0.2.1", - "node-fetch": "2.6.9", + "node-fetch": "2.6.11", "npm-packlist": "5.1.3", - "open": "7", + "open": "7.4.2", "p-map": "4.0.0", "prompts": "2.4.2", "read-pkg-up": "7.0.1", @@ -14596,31 +14705,42 @@ "tempy": "1.0.1", "terminal-link": "2.1.1", "tmp": "0.2.1", - "ts-pattern": "4.2.2" + "ts-pattern": "4.3.0" }, "dependencies": { + "@prisma/debug": { + "version": "4.16.2", + "resolved": "https://registry.npmjs.org/@prisma/debug/-/debug-4.16.2.tgz", + "integrity": "sha512-7L7WbG0qNNZYgLpsVB8rCHCXEyHFyIycRlRDNwkVfjQmACC2OW6AWCYCbfdjQhkF/t7+S3njj8wAWAocSs+Brw==", + "dev": true, + "requires": { + "@types/debug": "4.1.8", + "debug": "4.3.4", + "strip-ansi": "6.0.1" + } + }, "@prisma/engines": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-4.14.1.tgz", - "integrity": "sha512-APqFddPVHYmWNKqc+5J5SqrLFfOghKOLZxobmguDUacxOwdEutLsbXPVhNnpFDmuQWQFbXmrTTPoRrrF6B1MWA==", + "version": "4.16.2", + "resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-4.16.2.tgz", + "integrity": "sha512-vx1nxVvN4QeT/cepQce68deh/Turxy5Mr+4L4zClFuK1GlxN3+ivxfuv+ej/gvidWn1cE1uAhW7ALLNlYbRUAw==", "dev": true }, "@prisma/fetch-engine": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@prisma/fetch-engine/-/fetch-engine-4.14.1.tgz", - "integrity": "sha512-4IRZMbeA+5tU+gf15n8oUxGIPqJyF1Gc7DOeP178nvKPNFESp3tWDvzD5vOpVuE0GRM2Mq5WrtiQo5XLD0yQnw==", + "version": "4.16.2", + "resolved": "https://registry.npmjs.org/@prisma/fetch-engine/-/fetch-engine-4.16.2.tgz", + "integrity": "sha512-lnCnHcOaNn0kw8qTJbVcNhyfIf5Lus2GFXbj3qpkdKEIB9xLgqkkuTP+35q1xFaqwQ0vy4HFpdRUpFP7njE15g==", "dev": true, "requires": { - "@prisma/debug": "4.14.1", - "@prisma/get-platform": "4.14.1", + "@prisma/debug": "4.16.2", + "@prisma/get-platform": "4.16.2", "execa": "5.1.1", "find-cache-dir": "3.3.2", "fs-extra": "11.1.1", "hasha": "5.2.2", - "http-proxy-agent": "5.0.0", - "https-proxy-agent": "5.0.1", + "http-proxy-agent": "7.0.0", + "https-proxy-agent": "7.0.0", "kleur": "4.1.5", - "node-fetch": "2.6.9", + "node-fetch": "2.6.11", "p-filter": "2.1.0", "p-map": "4.0.0", "p-retry": "4.6.2", @@ -14630,13 +14750,25 @@ "tempy": "1.0.1" } }, + "@prisma/generator-helper": { + "version": "4.16.2", + "resolved": "https://registry.npmjs.org/@prisma/generator-helper/-/generator-helper-4.16.2.tgz", + "integrity": "sha512-bMOH7y73Ui7gpQrioFeavMQA+Tf8ksaVf8Nhs9rQNzuSg8SSV6E9baczob0L5KGZTSgYoqnrRxuo03kVJYrnIg==", + "dev": true, + "requires": { + "@prisma/debug": "4.16.2", + "@types/cross-spawn": "6.0.2", + "cross-spawn": "7.0.3", + "kleur": "4.1.5" + } + }, "@prisma/get-platform": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@prisma/get-platform/-/get-platform-4.14.1.tgz", - "integrity": "sha512-b5EXlVaW2JDCB3o5lsik9NZwARflOLCINyhDgNaqpGGljcXoUneqAlvm9dZ9YNckXImghV1B19aouVpm1LjPrg==", + "version": "4.16.2", + "resolved": "https://registry.npmjs.org/@prisma/get-platform/-/get-platform-4.16.2.tgz", + "integrity": "sha512-fnDey1/iSefHJRMB+w243BhWENf+paRouPMdCqIVqu8dYkR1NqhldblsSUC4Zr2sKS7Ta2sK4OLdt9IH+PZTfw==", "dev": true, "requires": { - "@prisma/debug": "4.14.1", + "@prisma/debug": "4.16.2", "escape-string-regexp": "4.0.0", "execa": "5.1.1", "fs-jetpack": "5.1.0", @@ -14645,7 +14777,25 @@ "strip-ansi": "6.0.1", "tempy": "1.0.1", "terminal-link": "2.1.1", - "ts-pattern": "4.2.2" + "ts-pattern": "4.3.0" + } + }, + "@types/debug": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.8.tgz", + "integrity": "sha512-/vPO1EPOs306Cvhwv7KfVfYvOJqA/S/AXjaHQiJboCZzcNDb+TIJFN9/2C9DZ//ijSKWioNyUxD792QmDJ+HKQ==", + "dev": true, + "requires": { + "@types/ms": "*" + } + }, + "agent-base": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", + "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", + "dev": true, + "requires": { + "debug": "^4.3.4" } }, "brace-expansion": { @@ -14658,31 +14808,26 @@ } }, "checkpoint-client": { - "version": "1.1.23", - "resolved": "https://registry.npmjs.org/checkpoint-client/-/checkpoint-client-1.1.23.tgz", - "integrity": "sha512-NrGvMiH1fUcZwrYc0Z+YTn7q9ysV0kPgVyDKZ5jrfIerFJuSllvyGsY7bHeQSEiljaIaUP1Q/xutZ8q1s7PGzg==", + "version": "1.1.24", + "resolved": "https://registry.npmjs.org/checkpoint-client/-/checkpoint-client-1.1.24.tgz", + "integrity": "sha512-nIOlLhDS7MKs4tUzS3LCm+sE1NgTCVnVrXlD0RRxaoEkkLu8LIWSUNiNWai6a+LK5unLzTyZeTCYX1Smqy0YoA==", "dev": true, "requires": { - "ci-info": "3.3.0", + "ci-info": "3.8.0", "env-paths": "2.2.1", "fast-write-atomic": "0.2.1", "make-dir": "3.1.0", "ms": "2.1.3", - "node-fetch": "2.6.7", - "uuid": "8.3.2" - }, - "dependencies": { - "node-fetch": { - "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", - "dev": true, - "requires": { - "whatwg-url": "^5.0.0" - } - } + "node-fetch": "2.6.11", + "uuid": "9.0.0" } }, + "ci-info": { + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz", + "integrity": "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==", + "dev": true + }, "dotenv": { "version": "16.0.3", "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.0.3.tgz", @@ -14690,9 +14835,9 @@ "dev": true }, "fp-ts": { - "version": "2.14.0", - "resolved": "https://registry.npmjs.org/fp-ts/-/fp-ts-2.14.0.tgz", - "integrity": "sha512-QLagLSYAgMA00pZzUzeksH/78Sd14y7+Gc2A8Yaja3/IpGOFMdm/gYBuDMxYqLsJ58iT5lz+bJb953RAeFfp1A==", + "version": "2.16.0", + "resolved": "https://registry.npmjs.org/fp-ts/-/fp-ts-2.16.0.tgz", + "integrity": "sha512-bLq+KgbiXdTEoT1zcARrWEpa5z6A/8b7PcDW7Gef3NSisQ+VS7ll2Xbf1E+xsgik0rWub/8u0qP/iTTjj+PhxQ==", "dev": true }, "fs-extra": { @@ -14724,6 +14869,26 @@ "ini": "2.0.0" } }, + "http-proxy-agent": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.0.tgz", + "integrity": "sha512-+ZT+iBxVUQ1asugqnD6oWoRiS25AkjNfG085dKJGtGxkdwLQrMKU5wJr2bOOFAXzKcTuqq+7fZlTMgG3SRfIYQ==", + "dev": true, + "requires": { + "agent-base": "^7.1.0", + "debug": "^4.3.4" + } + }, + "https-proxy-agent": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.0.tgz", + "integrity": "sha512-0euwPCRyAPSgGdzD1IVN9nJYHtBhJwb6XPfbpQcYbPCwrBidX6GzxmchnaF4sfF/jPb74Ojx5g4yTg3sixlyPw==", + "dev": true, + "requires": { + "agent-base": "^7.0.2", + "debug": "4" + } + }, "kleur": { "version": "4.1.5", "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", @@ -14740,9 +14905,9 @@ } }, "node-fetch": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.9.tgz", - "integrity": "sha512-DJm/CJkZkRjKKj4Zi4BsKVZh3ValV5IR5s7LVZnW+6YMh0W1BfNA8XSs6DLMGYlId5F3KnA70uu2qepcR08Qqg==", + "version": "2.6.11", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.11.tgz", + "integrity": "sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w==", "dev": true, "requires": { "whatwg-url": "^5.0.0" @@ -14765,6 +14930,12 @@ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", "dev": true }, + "uuid": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.0.tgz", + "integrity": "sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==", + "dev": true + }, "webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", @@ -14783,16 +14954,10 @@ } } }, - "@prisma/ni": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@prisma/ni/-/ni-4.14.1.tgz", - "integrity": "sha512-71ep1GT2k5il/hnLBuGpw81UzcBX5yON2XxOlQ3JknlvOQKkdDRM3If9UgJUrJxx7BHBzieZK02PIKbFVEuqmg==", - "dev": true - }, "@prisma/prisma-fmt-wasm": { - "version": "4.14.0-67.d9a4c5988f480fa576d43970d5a23641aa77bc9c", - "resolved": "https://registry.npmjs.org/@prisma/prisma-fmt-wasm/-/prisma-fmt-wasm-4.14.0-67.d9a4c5988f480fa576d43970d5a23641aa77bc9c.tgz", - "integrity": "sha512-qvxi6xbUb4wcawvLju0t2soGBPGs13L6HVmJrZG+RGaDDuJn9qzDAdZl97YdyFgn4jN6VMJeSqXt3yTWKkaaUw==", + "version": "4.16.1-1.4bc8b6e1b66cb932731fb1bdbbc550d1e010de81", + "resolved": "https://registry.npmjs.org/@prisma/prisma-fmt-wasm/-/prisma-fmt-wasm-4.16.1-1.4bc8b6e1b66cb932731fb1bdbbc550d1e010de81.tgz", + "integrity": "sha512-g090+dEH7wrdCw359+8J9+TGH84qK28V/dxwINjhhNCtju9lej99z9w/AVsJP9UhhcCPS4psYz4iu8d53uxVpA==", "dev": true }, "@prisma/sdk": { @@ -18201,9 +18366,9 @@ } }, "graphql-scalars": { - "version": "1.22.0", - "resolved": "https://registry.npmjs.org/graphql-scalars/-/graphql-scalars-1.22.0.tgz", - "integrity": "sha512-t3r6c/cMF6OP64oN+YYVwempyMA4tbI/JdWWDdPN1U45IgpIfPZmJdO+wvPPoptxL9Lr/7jmgRFRsAUg66DFmA==", + "version": "1.22.2", + "resolved": "https://registry.npmjs.org/graphql-scalars/-/graphql-scalars-1.22.2.tgz", + "integrity": "sha512-my9FB4GtghqXqi/lWSVAOPiTzTnnEzdOXCsAC2bb5V7EFNQjVjwy3cSSbUvgYOtDuDibd+ZsCDhz+4eykYOlhQ==", "dev": true, "requires": { "tslib": "^2.5.0" @@ -20689,18 +20854,18 @@ "integrity": "sha512-VVtxR7sOh0VsG8o06Ttq5TrI1aiZKmC+ClSn4eBPaNf4SHr5lzbYW+kYGX3HocBL/MfpVrRfFZ9V3vCbLaiplg==" }, "prisma": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/prisma/-/prisma-4.14.1.tgz", - "integrity": "sha512-z6hxzTMYqT9SIKlzD08dhzsLUpxjFKKsLpp5/kBDnSqiOjtUyyl/dC5tzxLcOa3jkEHQ8+RpB/fE3w8bgNP51g==", + "version": "4.15.0", + "resolved": "https://registry.npmjs.org/prisma/-/prisma-4.15.0.tgz", + "integrity": "sha512-iKZZpobPl48gTcSZVawLMQ3lEy6BnXwtoMj7hluoGFYu2kQ6F9LBuBrUyF95zRVnNo8/3KzLXJXJ5TEnLSJFiA==", "devOptional": true, "requires": { - "@prisma/engines": "4.14.1" + "@prisma/engines": "4.15.0" }, "dependencies": { "@prisma/engines": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-4.14.1.tgz", - "integrity": "sha512-APqFddPVHYmWNKqc+5J5SqrLFfOghKOLZxobmguDUacxOwdEutLsbXPVhNnpFDmuQWQFbXmrTTPoRrrF6B1MWA==", + "version": "4.15.0", + "resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-4.15.0.tgz", + "integrity": "sha512-FTaOCGs0LL0OW68juZlGxFtYviZa4xdQj/rQEdat2txw0s3Vu/saAPKjNVXfIgUsGXmQ72HPgNr6935/P8FNAA==", "devOptional": true } } @@ -21135,9 +21300,9 @@ } }, "semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "requires": { "lru-cache": "^6.0.0" } @@ -21922,9 +22087,9 @@ } }, "ts-pattern": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/ts-pattern/-/ts-pattern-4.2.2.tgz", - "integrity": "sha512-qzJMo2pbkUJWusRH5o8xR+xogn6RmvViyUgwBFTtRENLse470clCGjHDf6haWGZ1AOmk8XkEohUoBW8Uut6Scg==" + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ts-pattern/-/ts-pattern-4.3.0.tgz", + "integrity": "sha512-pefrkcd4lmIVR0LA49Imjf9DYLK8vtWhqBPA3Ya1ir8xCW0O2yjL9dsCVvI7pCodLC5q7smNpEtDR2yVulQxOg==" }, "tsconfig-paths": { "version": "3.9.0", @@ -22060,22 +22225,22 @@ } }, "typegraphql-prisma-nestjs": { - "version": "0.2500.1", - "integrity": "sha512-6t900ccY4d1ncy9UGLS/d0/ETl3O3JzJayG9c84AWQC68IlYGOEenRYRe+fDXxdchjT/mJdM+wNNp5b4hfgv7A==", + "version": "0.2600.0", + "integrity": "sha512-AOGdneY08oBvy3tK4rVaA3FoSmqnzWGmRx7UVSd/1YzohsP6mJ3al5f+529o8bbVhobgZCcISEMFgTqOOKylyg==", "dev": true, "requires": { - "@prisma/generator-helper": "^4.14.0", - "@prisma/internals": "^4.14.0", + "@prisma/generator-helper": "^4.15.0", + "@prisma/internals": "^4.15.0", "pluralize": "^8.0.0", - "semver": "^7.5.0", - "ts-morph": "^18.0.0", - "tslib": "^2.5.0" + "semver": "^7.5.2", + "ts-morph": "^19.0.0", + "tslib": "^2.5.3" }, "dependencies": { "@ts-morph/common": { - "version": "0.19.0", - "resolved": "https://registry.npmjs.org/@ts-morph/common/-/common-0.19.0.tgz", - "integrity": "sha512-Unz/WHmd4pGax91rdIKWi51wnVUW11QttMEPpBiBgIewnc9UQIX7UDLxr5vRlqeByXCwhkF6VabSsI0raWcyAQ==", + "version": "0.20.0", + "resolved": "https://registry.npmjs.org/@ts-morph/common/-/common-0.20.0.tgz", + "integrity": "sha512-7uKjByfbPpwuzkstL3L5MQyuXPSKdoNG93Fmi2JoDcTf3pEP731JdRFAduRVkOs8oqxPsXKA+ScrWkdQ8t/I+Q==", "dev": true, "requires": { "fast-glob": "^3.2.12", @@ -22100,9 +22265,9 @@ "dev": true }, "fast-glob": { - "version": "3.2.12", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", - "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.0.tgz", + "integrity": "sha512-ChDuvbOypPuNjO8yIDf36x7BlZX1smcUMTTcyoIjycexOxd6DFsKsg21qVBzEmr3G7fUKIRy2/psii+CIUt7FA==", "dev": true, "requires": { "@nodelib/fs.stat": "^2.0.2", @@ -22128,19 +22293,19 @@ "dev": true }, "ts-morph": { - "version": "18.0.0", - "resolved": "https://registry.npmjs.org/ts-morph/-/ts-morph-18.0.0.tgz", - "integrity": "sha512-Kg5u0mk19PIIe4islUI/HWRvm9bC1lHejK4S0oh1zaZ77TMZAEmQC0sHQYiu2RgCQFZKXz1fMVi/7nOOeirznA==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/ts-morph/-/ts-morph-19.0.0.tgz", + "integrity": "sha512-D6qcpiJdn46tUqV45vr5UGM2dnIEuTGNxVhg0sk5NX11orcouwj6i1bMqZIz2mZTZB1Hcgy7C3oEVhAT+f6mbQ==", "dev": true, "requires": { - "@ts-morph/common": "~0.19.0", + "@ts-morph/common": "~0.20.0", "code-block-writer": "^12.0.0" } }, "tslib": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.2.tgz", - "integrity": "sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA==", + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.0.tgz", + "integrity": "sha512-7At1WUettjcSRHXCyYtTselblcHl9PJFFVKiCAy/bY97+BPZXSQ2wbq0P9s8tK2G7dFQfNnlJnPAiArVBVBsfA==", "dev": true } } diff --git a/package.json b/package.json index b34a19c..bce8ab9 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "@nestjs/core": "8.2.6", "@nestjs/graphql": "8.0.2", "@nestjs/platform-express": "8.2.6", - "@prisma/client": "~4.14.0", + "@prisma/client": "~4.15.0", "@prisma/sdk": "~4.0.0", "apollo-server-express": "2.25.0", "class-transformer": "0.5.1", @@ -48,7 +48,7 @@ "@nestjs/cli": "8.2.0", "@nestjs/schematics": "8.0.6", "@nestjs/testing": "8.2.6", - "@prisma/generator-helper": "~4.14.0", + "@prisma/generator-helper": "~4.15.0", "@types/express": "4.17.12", "@types/graphql-fields": "^1.3.3", "@types/node": "15.6.1", @@ -62,13 +62,13 @@ "graphql-scalars": "^1.9.3", "jest": "27.0.1", "prettier": "2.3.0", - "prisma": "~4.14.0", + "prisma": "~4.15.0", "supertest": "6.1.3", "ts-jest": "27.0.1", "ts-loader": "9.2.2", "ts-node": "10.0.0", "tsconfig-paths": "3.9.0", - "typegraphql-prisma-nestjs": "0.2500.1", + "typegraphql-prisma-nestjs": "0.2600.0", "typescript": "4.3.5" } } diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 970525a..9bea900 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -13,6 +13,7 @@ generator client { generator typegraphql { provider = "typegraphql-prisma-nestjs" output = "../src/dal" + emitIsAbstract = true } model User { diff --git a/schema.gql b/schema.gql index b4ed55f..2e70e64 100644 --- a/schema.gql +++ b/schema.gql @@ -240,16 +240,16 @@ input NestedDateTimeNullableFilter { input UserOrderByWithRelationInput { id: SortOrder email: SortOrder - username: SortOrder + username: SortOrderInput password: SortOrder - firstName: SortOrder - lastName: SortOrder + firstName: SortOrderInput + lastName: SortOrderInput lastLogin: SortOrder isSuperuser: SortOrder isStaff: SortOrder isActive: SortOrder dateJoined: SortOrder - dateOfBirth: SortOrder + dateOfBirth: SortOrderInput } enum SortOrder { @@ -257,6 +257,16 @@ enum SortOrder { desc } +input SortOrderInput { + sort: SortOrder! + nulls: NullsOrder +} + +enum NullsOrder { + first + last +} + input UserWhereUniqueInput { id: Int email: String @@ -315,16 +325,16 @@ type UserGroupBy { input UserOrderByWithAggregationInput { id: SortOrder email: SortOrder - username: SortOrder + username: SortOrderInput password: SortOrder - firstName: SortOrder - lastName: SortOrder + firstName: SortOrderInput + lastName: SortOrderInput lastLogin: SortOrder isSuperuser: SortOrder isStaff: SortOrder isActive: SortOrder dateJoined: SortOrder - dateOfBirth: SortOrder + dateOfBirth: SortOrderInput _count: UserCountOrderByAggregateInput _avg: UserAvgOrderByAggregateInput _max: UserMaxOrderByAggregateInput diff --git a/src/dal/enhance.ts b/src/dal/enhance.ts index fcbea5d..776ff13 100644 --- a/src/dal/enhance.ts +++ b/src/dal/enhance.ts @@ -284,6 +284,7 @@ const inputsInfo = { DateTimeFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not"], BoolFilter: ["equals", "not"], DateTimeNullableFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not"], + SortOrderInput: ["sort", "nulls"], UserCountOrderByAggregateInput: ["id", "email", "username", "password", "firstName", "lastName", "lastLogin", "isSuperuser", "isStaff", "isActive", "dateJoined", "dateOfBirth"], UserAvgOrderByAggregateInput: ["id"], UserMaxOrderByAggregateInput: ["id", "email", "username", "password", "firstName", "lastName", "lastLogin", "isSuperuser", "isStaff", "isActive", "dateJoined", "dateOfBirth"], diff --git a/src/dal/enums/NullsOrder.ts b/src/dal/enums/NullsOrder.ts new file mode 100644 index 0000000..9827ce6 --- /dev/null +++ b/src/dal/enums/NullsOrder.ts @@ -0,0 +1,10 @@ +import { Args, ArgsType, Context, Field, Float, ID, Info, InputType, Int, Mutation, ObjectType, Query, ResolveField, Resolver, Root, registerEnumType } from "@nestjs/graphql"; + +export enum NullsOrder { + first = "first", + last = "last" +} +registerEnumType(NullsOrder, { + name: "NullsOrder", + description: undefined, +}); diff --git a/src/dal/enums/index.ts b/src/dal/enums/index.ts index 6f6dace..8b2d296 100644 --- a/src/dal/enums/index.ts +++ b/src/dal/enums/index.ts @@ -1,3 +1,4 @@ +export { NullsOrder } from "./NullsOrder"; export { SortOrder } from "./SortOrder"; export { TransactionIsolationLevel } from "./TransactionIsolationLevel"; export { UserScalarFieldEnum } from "./UserScalarFieldEnum"; diff --git a/src/dal/resolvers/inputs/SortOrderInput.ts b/src/dal/resolvers/inputs/SortOrderInput.ts new file mode 100644 index 0000000..f22c4b9 --- /dev/null +++ b/src/dal/resolvers/inputs/SortOrderInput.ts @@ -0,0 +1,21 @@ +import { Args, ArgsType, Context, Field, Float, ID, Info, InputType, Int, Mutation, ObjectType, Query, ResolveField, Resolver, Root, registerEnumType } from "@nestjs/graphql"; +import * as GraphQLScalars from "graphql-scalars"; +import { Prisma } from "@prisma/client"; +import { DecimalJSScalar } from "../../scalars"; +import { NullsOrder } from "../../enums/NullsOrder"; +import { SortOrder } from "../../enums/SortOrder"; + +@InputType("SortOrderInput", { + isAbstract: true +}) +export class SortOrderInput { + @Field(_type => SortOrder, { + nullable: false + }) + sort!: "asc" | "desc"; + + @Field(_type => NullsOrder, { + nullable: true + }) + nulls?: "first" | "last" | undefined; +} diff --git a/src/dal/resolvers/inputs/UserOrderByWithAggregationInput.ts b/src/dal/resolvers/inputs/UserOrderByWithAggregationInput.ts index 45ae415..17d8a72 100644 --- a/src/dal/resolvers/inputs/UserOrderByWithAggregationInput.ts +++ b/src/dal/resolvers/inputs/UserOrderByWithAggregationInput.ts @@ -2,6 +2,7 @@ import { Args, ArgsType, Context, Field, Float, ID, Info, InputType, Int, Mutati import * as GraphQLScalars from "graphql-scalars"; import { Prisma } from "@prisma/client"; import { DecimalJSScalar } from "../../scalars"; +import { SortOrderInput } from "../inputs/SortOrderInput"; import { UserAvgOrderByAggregateInput } from "../inputs/UserAvgOrderByAggregateInput"; import { UserCountOrderByAggregateInput } from "../inputs/UserCountOrderByAggregateInput"; import { UserMaxOrderByAggregateInput } from "../inputs/UserMaxOrderByAggregateInput"; @@ -23,25 +24,25 @@ export class UserOrderByWithAggregationInput { }) email?: "asc" | "desc" | undefined; - @Field(_type => SortOrder, { + @Field(_type => SortOrderInput, { nullable: true }) - username?: "asc" | "desc" | undefined; + username?: SortOrderInput | undefined; @Field(_type => SortOrder, { nullable: true }) password?: "asc" | "desc" | undefined; - @Field(_type => SortOrder, { + @Field(_type => SortOrderInput, { nullable: true }) - firstName?: "asc" | "desc" | undefined; + firstName?: SortOrderInput | undefined; - @Field(_type => SortOrder, { + @Field(_type => SortOrderInput, { nullable: true }) - lastName?: "asc" | "desc" | undefined; + lastName?: SortOrderInput | undefined; @Field(_type => SortOrder, { nullable: true @@ -68,10 +69,10 @@ export class UserOrderByWithAggregationInput { }) dateJoined?: "asc" | "desc" | undefined; - @Field(_type => SortOrder, { + @Field(_type => SortOrderInput, { nullable: true }) - dateOfBirth?: "asc" | "desc" | undefined; + dateOfBirth?: SortOrderInput | undefined; @Field(_type => UserCountOrderByAggregateInput, { nullable: true diff --git a/src/dal/resolvers/inputs/UserOrderByWithRelationInput.ts b/src/dal/resolvers/inputs/UserOrderByWithRelationInput.ts index 8888519..b881994 100644 --- a/src/dal/resolvers/inputs/UserOrderByWithRelationInput.ts +++ b/src/dal/resolvers/inputs/UserOrderByWithRelationInput.ts @@ -2,6 +2,7 @@ import { Args, ArgsType, Context, Field, Float, ID, Info, InputType, Int, Mutati import * as GraphQLScalars from "graphql-scalars"; import { Prisma } from "@prisma/client"; import { DecimalJSScalar } from "../../scalars"; +import { SortOrderInput } from "../inputs/SortOrderInput"; import { SortOrder } from "../../enums/SortOrder"; @InputType("UserOrderByWithRelationInput", { @@ -18,25 +19,25 @@ export class UserOrderByWithRelationInput { }) email?: "asc" | "desc" | undefined; - @Field(_type => SortOrder, { + @Field(_type => SortOrderInput, { nullable: true }) - username?: "asc" | "desc" | undefined; + username?: SortOrderInput | undefined; @Field(_type => SortOrder, { nullable: true }) password?: "asc" | "desc" | undefined; - @Field(_type => SortOrder, { + @Field(_type => SortOrderInput, { nullable: true }) - firstName?: "asc" | "desc" | undefined; + firstName?: SortOrderInput | undefined; - @Field(_type => SortOrder, { + @Field(_type => SortOrderInput, { nullable: true }) - lastName?: "asc" | "desc" | undefined; + lastName?: SortOrderInput | undefined; @Field(_type => SortOrder, { nullable: true @@ -63,8 +64,8 @@ export class UserOrderByWithRelationInput { }) dateJoined?: "asc" | "desc" | undefined; - @Field(_type => SortOrder, { + @Field(_type => SortOrderInput, { nullable: true }) - dateOfBirth?: "asc" | "desc" | undefined; + dateOfBirth?: SortOrderInput | undefined; } diff --git a/src/dal/resolvers/inputs/index.ts b/src/dal/resolvers/inputs/index.ts index 92c8bd9..b3118ea 100644 --- a/src/dal/resolvers/inputs/index.ts +++ b/src/dal/resolvers/inputs/index.ts @@ -25,6 +25,7 @@ export { NestedStringNullableWithAggregatesFilter } from "./NestedStringNullable export { NestedStringWithAggregatesFilter } from "./NestedStringWithAggregatesFilter"; export { NullableDateTimeFieldUpdateOperationsInput } from "./NullableDateTimeFieldUpdateOperationsInput"; export { NullableStringFieldUpdateOperationsInput } from "./NullableStringFieldUpdateOperationsInput"; +export { SortOrderInput } from "./SortOrderInput"; export { StringFieldUpdateOperationsInput } from "./StringFieldUpdateOperationsInput"; export { StringFilter } from "./StringFilter"; export { StringNullableFilter } from "./StringNullableFilter";