diff --git a/packages/payload/package.json b/packages/payload/package.json index 7b098176d..7c17cf2d4 100644 --- a/packages/payload/package.json +++ b/packages/payload/package.json @@ -98,7 +98,7 @@ "get-tsconfig": "^4.7.2", "http-status": "1.6.2", "image-size": "^1.1.1", - "json-schema-to-typescript": "11.0.3", + "json-schema-to-typescript": "15.0.1", "jsonwebtoken": "9.0.1", "minimist": "1.2.8", "monaco-editor": "0.38.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index da2716ae4..2956ea16d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -840,8 +840,8 @@ importers: specifier: ^1.1.1 version: 1.1.1 json-schema-to-typescript: - specifier: 11.0.3 - version: 11.0.3 + specifier: 15.0.1 + version: 15.0.1 jsonwebtoken: specifier: 9.0.1 version: 9.0.1 @@ -1845,6 +1845,10 @@ packages: resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} engines: {node: '>=6.0.0'} + '@apidevtools/json-schema-ref-parser@11.7.0': + resolution: {integrity: sha512-pRrmXMCwnmrkS3MLgAIW5dXRzeTv6GLjkjb4HmxNnvAKXN1Nfzp4KmGADBQvlVUcqi+a5D+hfGDLLnd5NnYxog==} + engines: {node: '>= 16'} + '@aws-crypto/crc32@5.2.0': resolution: {integrity: sha512-nLbCWqQNgUiwwtFsen1AdzAtvuLRsQS8rYgMuxCrdKf9kOssamGLuPwyTY9wyYblNr9+1XM8v6zoDTPPSIeANg==} engines: {node: '>=16.0.0'} @@ -2735,9 +2739,6 @@ packages: resolution: {integrity: sha512-YTnYtra7W9e6/oAZEHj0bJehPRUlLH9/fbpT5LfB0NhQXyALCRkRs3zH9v07IYhkgpqX6Z78FnuccZr/l4Fs4Q==} engines: {node: '>=6.9.0'} - '@bcherny/json-schema-ref-parser@9.0.9': - resolution: {integrity: sha512-vmEmnJCfpkLdas++9OYg6riIezTYqTHpqUTODJzHLzs5UnXujbOJW9VwcVCnyo1mVRt32FRr23iXBx/sX8YbeQ==} - '@bcoe/v8-coverage@0.2.3': resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} @@ -4474,9 +4475,6 @@ packages: '@types/pluralize@0.0.33': resolution: {integrity: sha512-JOqsl+ZoCpP4e8TDke9W79FDcSgPAR0l6pixx2JHkhnRjvShyYiAYw2LVsnA7K08Y6DeOnaU6ujmENO4os/cYg==} - '@types/prettier@2.7.3': - resolution: {integrity: sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==} - '@types/prompts@2.4.9': resolution: {integrity: sha512-qTxFi6Buiu8+50/+3DGIWLHM6QuWsEKugJnnP6iv2Mc4ncxE4A/OJkjuVOA+5X0X1S/nq5VJRa8Lu+nwcvbrKA==} @@ -4768,9 +4766,6 @@ packages: resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} engines: {node: '>=12'} - any-promise@1.3.0: - resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==} - anymatch@3.1.3: resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} engines: {node: '>= 8'} @@ -5078,9 +5073,6 @@ packages: resolution: {integrity: sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==} engines: {node: '>= 0.4'} - call-me-maybe@1.0.2: - resolution: {integrity: sha512-HpX65o1Hnr9HH25ojC1YGs7HCQLq0GCOibSaWER0eNpgJ/Z1MZv2mTc7+xh6WOPxbRVcmgbv4hGU+uSQ/2xFZQ==} - callsites@3.1.0: resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} engines: {node: '>=6'} @@ -5151,10 +5143,6 @@ packages: resolution: {integrity: sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==} engines: {node: '>=6'} - cli-color@2.0.4: - resolution: {integrity: sha512-zlnpg0jNcibNrO7GG9IeHH7maWFeCz+Ja1wx/7tZNU5ASSSSZ+/qZciM0/LHCYxSdqv5h2sdbQ/PXYdOuetXvA==} - engines: {node: '>=0.10'} - cli-cursor@5.0.0: resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==} engines: {node: '>=18'} @@ -5349,10 +5337,6 @@ packages: csstype@3.1.3: resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==} - d@1.0.2: - resolution: {integrity: sha512-MOqHvMWF9/9MX6nza0KgvFH4HpMU0EF5uUDXqX/BtxtU8NfB0QzRtJ8Oe/6SuS4kbhyzVJwjd97EA4PKrzJ8bw==} - engines: {node: '>=0.12'} - damerau-levenshtein@1.0.8: resolution: {integrity: sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==} @@ -5768,20 +5752,6 @@ packages: resolution: {integrity: sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==} engines: {node: '>= 0.4'} - es5-ext@0.10.64: - resolution: {integrity: sha512-p2snDhiLaXe6dahss1LddxqEm+SkuDvV8dnIQG0MWjyHpcMNfXKPE+/Cc0y+PhxJX3A4xGNeFCj5oc0BUh6deg==} - engines: {node: '>=0.10'} - - es6-iterator@2.0.3: - resolution: {integrity: sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==} - - es6-symbol@3.1.4: - resolution: {integrity: sha512-U9bFFjX8tFiATgtkJ1zg25+KviIXpgRvRHS8sau3GfhVzThRQrOeksPeT0BWW2MNZs1OEWJ1DPXOQMn0KKRkvg==} - engines: {node: '>=0.12'} - - es6-weak-map@2.0.3: - resolution: {integrity: sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA==} - esbuild-register@3.6.0: resolution: {integrity: sha512-H2/S7Pm8a9CL1uhp9OvjwrBh5Pvx0H8qVOxNu8Wed9Y7qv56MPtq+GGM8RJpq6glYJn9Wspr8uw7l55uyinNeg==} peerDependencies: @@ -5993,10 +5963,6 @@ packages: engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} hasBin: true - esniff@2.0.1: - resolution: {integrity: sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg==} - engines: {node: '>=0.10'} - espree@10.1.0: resolution: {integrity: sha512-M1M6CpiE6ffoigIOWYO9UDP8TMUw9kqb21tf+08IgDYjCsOvCuDt4jQcZmoYxx+w7zlKw9/N0KXfto+I8/FrXA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -6034,9 +6000,6 @@ packages: resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==} engines: {node: '>= 0.6'} - event-emitter@0.3.5: - resolution: {integrity: sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==} - event-target-shim@5.0.1: resolution: {integrity: sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==} engines: {node: '>=6'} @@ -6096,9 +6059,6 @@ packages: resolution: {integrity: sha512-yblEwXAbGv1VQDmow7s38W77hzAgJAO50ztBLMcUyUBfxv1HC+LGwtiEN+Co6LtlqT/5uwVOxsD4TNIilWhwdQ==} engines: {node: '>=4'} - ext@1.7.0: - resolution: {integrity: sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==} - extend-shallow@2.0.1: resolution: {integrity: sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==} engines: {node: '>=0.10.0'} @@ -6337,10 +6297,6 @@ packages: resolution: {integrity: sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==} engines: {node: '>=8.0.0'} - get-stdin@8.0.0: - resolution: {integrity: sha512-sY22aA6xchAzprjyqmSEQv4UbAAzRN0L2dQB0NlN5acTTK9Don6nhoc3eAbUnpZiCANAMfd/+40kVdKfFygohg==} - engines: {node: '>=10'} - get-stdin@9.0.0: resolution: {integrity: sha512-dVKBjfWisLAicarI2Sf+JuBE/DghV4UzNAVe9yhEJuzeREd3JhOTE9cUaJTeSa77fsbQUK3pcOpJfM59+VKZaA==} engines: {node: '>=12'} @@ -6386,12 +6342,6 @@ packages: resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} engines: {node: '>=10.13.0'} - glob-promise@4.2.2: - resolution: {integrity: sha512-xcUzJ8NWN5bktoTIX7eOclO1Npxd/dyVqUJxlLIDasT4C7KZyqlPIwkdJ0Ypiy3p2ZKahTjK4M9uC3sNSfNMzw==} - engines: {node: '>=12'} - peerDependencies: - glob: ^7.1.6 - glob@10.4.5: resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==} hasBin: true @@ -6826,9 +6776,6 @@ packages: is-potential-custom-element-name@1.0.1: resolution: {integrity: sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==} - is-promise@2.2.2: - resolution: {integrity: sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==} - is-regex@1.1.4: resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==} engines: {node: '>= 0.4'} @@ -7155,9 +7102,9 @@ packages: json-parse-even-better-errors@2.3.1: resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==} - json-schema-to-typescript@11.0.3: - resolution: {integrity: sha512-EaEE9Y4VZ8b9jW5zce5a9L3+p4C9AqgIRHbNVDJahfMnoKzcd4sDb98BLxLdQhJEuRAXyKLg4H66NKm80W8ilg==} - engines: {node: '>=12.0.0'} + json-schema-to-typescript@15.0.1: + resolution: {integrity: sha512-gSSg20skxv+ZQqR8Y8itZt+2iYFGNgneuTgf/Va0TBw+zo6JsykDG1bqhkhMs5g/vIdqmZx55oQJLbgOEuxPJw==} + engines: {node: '>=16.0.0'} hasBin: true json-schema-traverse@0.4.1: @@ -7322,9 +7269,6 @@ packages: lru-cache@5.1.1: resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} - lru-queue@0.1.0: - resolution: {integrity: sha512-BpdYkt9EvGl8OfWHDQPISVpcl5xZthb+XPsbELj5AQXxIC8IriDZIQYjBJPEm5rS420sjZ0TLEzRcq5KdBhYrQ==} - magic-string@0.30.11: resolution: {integrity: sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==} @@ -7356,10 +7300,6 @@ packages: memoize-one@6.0.0: resolution: {integrity: sha512-rkpe71W0N0c0Xz6QD0eJETuWAJGnJ9afsl1srmwPrI+yBCkge5EycXXbYRyvL29zZVUWQCY7InPRCv3GDXuZNw==} - memoizee@0.4.17: - resolution: {integrity: sha512-DGqD7Hjpi/1or4F/aYAspXKNm5Yili0QDAFAY4QYvpqpgiY6+1jOfqpmByzjxbWd/T9mChbCArXAbDAsTm5oXA==} - engines: {node: '>=0.12'} - memory-pager@1.5.0: resolution: {integrity: sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==} @@ -7547,9 +7487,6 @@ packages: ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} - mz@2.7.0: - resolution: {integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==} - nanoid@3.3.7: resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} @@ -7572,9 +7509,6 @@ packages: resolution: {integrity: sha512-lDcBsjBSMlj3LXH2v/FW3txlh2pYTjmbOXPYJD93HI5EwuLzI11tdHSIpUMmfq/IOsldj4Ps8M8flhm+pCK4Ew==} engines: {node: '>=12.22.0'} - next-tick@1.1.0: - resolution: {integrity: sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==} - next@15.0.0-canary.104: resolution: {integrity: sha512-LVzRmV/p/BGGYmTjlZSmCULmBQ2S5ov1nQAXYssu4cEMhkpklQVgh2I+uHHgo/xgdqIIcEBlUgsfV+CfKVsM6Q==} engines: {node: '>=18.18.0'} @@ -8060,11 +7994,6 @@ packages: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} - prettier@2.8.8: - resolution: {integrity: sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==} - engines: {node: '>=10.13.0'} - hasBin: true - prettier@3.3.2: resolution: {integrity: sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==} engines: {node: '>=14'} @@ -9024,23 +8953,12 @@ packages: text-table@0.2.0: resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} - thenify-all@1.6.0: - resolution: {integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==} - engines: {node: '>=0.8'} - - thenify@3.3.1: - resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==} - thread-stream@3.1.0: resolution: {integrity: sha512-OqyPZ9u96VohAyMfJykzmivOrY2wfMSf3C5TtFJVgN+Hm6aj+voFhlK+kZEIv2FBh1X6Xp3DlnCOfEQ3B2J86A==} through2@2.0.5: resolution: {integrity: sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==} - timers-ext@0.1.8: - resolution: {integrity: sha512-wFH7+SEAcKfJpfLPkrgMPvvwnEtj8W4IurvEyrKsDleXnKLCDw71w8jltvfLa8Rm4qQxxT4jmDBYbJG/z7qoww==} - engines: {node: '>=0.12'} - tiny-invariant@1.0.6: resolution: {integrity: sha512-FOyLWWVjG+aC0UqG76V53yAWdXfH8bO6FNmyZOuUrzDzK8DI3/JRY25UD7+g49JWM1LXwymsKERB+DzI0dTEQA==} @@ -9225,9 +9143,6 @@ packages: resolution: {integrity: sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==} engines: {node: '>= 0.6'} - type@2.7.3: - resolution: {integrity: sha512-8j+1QmAbPvLZow5Qpi6NCaN8FB60p/6x8/vfNqOk/hC+HuvFZhL4+WfekuhQLiqFZXOgQdrs3B+XxEmCc6b3FQ==} - typed-array-buffer@1.0.2: resolution: {integrity: sha512-gEymJYKZtKXzzBzM4jqa9w6Q1Jjm7x2d+sh19AdsD4wqnMPDYyvwpsIc2Q/835kHuo3BEQ7CjelGhfTsoBb2MQ==} engines: {node: '>= 0.4'} @@ -9633,6 +9548,12 @@ snapshots: '@jridgewell/gen-mapping': 0.3.5 '@jridgewell/trace-mapping': 0.3.25 + '@apidevtools/json-schema-ref-parser@11.7.0': + dependencies: + '@jsdevtools/ono': 7.1.3 + '@types/json-schema': 7.0.15 + js-yaml: 4.1.0 + '@aws-crypto/crc32@5.2.0': dependencies: '@aws-crypto/util': 5.2.0 @@ -11193,13 +11114,6 @@ snapshots: '@babel/helper-validator-identifier': 7.24.7 to-fast-properties: 2.0.0 - '@bcherny/json-schema-ref-parser@9.0.9': - dependencies: - '@jsdevtools/ono': 7.1.3 - '@types/json-schema': 7.0.15 - call-me-maybe: 1.0.2 - js-yaml: 4.1.0 - '@bcoe/v8-coverage@0.2.3': {} '@bufbuild/protobuf@1.10.0': {} @@ -13153,8 +13067,6 @@ snapshots: '@types/pluralize@0.0.33': {} - '@types/prettier@2.7.3': {} - '@types/prompts@2.4.9': dependencies: '@types/node': 20.12.5 @@ -13537,8 +13449,6 @@ snapshots: ansi-styles@6.2.1: {} - any-promise@1.3.0: {} - anymatch@3.1.3: dependencies: normalize-path: 3.0.0 @@ -13942,8 +13852,6 @@ snapshots: get-intrinsic: 1.2.4 set-function-length: 1.2.2 - call-me-maybe@1.0.2: {} - callsites@3.1.0: {} camelcase@5.3.1: {} @@ -14019,14 +13927,6 @@ snapshots: clean-stack@2.2.0: {} - cli-color@2.0.4: - dependencies: - d: 1.0.2 - es5-ext: 0.10.64 - es6-iterator: 2.0.3 - memoizee: 0.4.17 - timers-ext: 0.1.8 - cli-cursor@5.0.0: dependencies: restore-cursor: 5.1.0 @@ -14222,11 +14122,6 @@ snapshots: csstype@3.1.3: {} - d@1.0.2: - dependencies: - es5-ext: 0.10.64 - type: 2.7.3 - damerau-levenshtein@1.0.8: {} data-uri-to-buffer@4.0.1: {} @@ -14618,31 +14513,6 @@ snapshots: is-date-object: 1.0.5 is-symbol: 1.0.4 - es5-ext@0.10.64: - dependencies: - es6-iterator: 2.0.3 - es6-symbol: 3.1.4 - esniff: 2.0.1 - next-tick: 1.1.0 - - es6-iterator@2.0.3: - dependencies: - d: 1.0.2 - es5-ext: 0.10.64 - es6-symbol: 3.1.4 - - es6-symbol@3.1.4: - dependencies: - d: 1.0.2 - ext: 1.7.0 - - es6-weak-map@2.0.3: - dependencies: - d: 1.0.2 - es5-ext: 0.10.64 - es6-iterator: 2.0.3 - es6-symbol: 3.1.4 - esbuild-register@3.6.0(esbuild@0.19.12): dependencies: debug: 4.3.6(supports-color@5.5.0) @@ -15008,13 +14878,6 @@ snapshots: transitivePeerDependencies: - supports-color - esniff@2.0.1: - dependencies: - d: 1.0.2 - es5-ext: 0.10.64 - event-emitter: 0.3.5 - type: 2.7.3 - espree@10.1.0: dependencies: acorn: 8.12.1 @@ -15041,11 +14904,6 @@ snapshots: etag@1.8.1: {} - event-emitter@0.3.5: - dependencies: - d: 1.0.2 - es5-ext: 0.10.64 - event-target-shim@5.0.1: {} eventemitter3@5.0.1: {} @@ -15163,10 +15021,6 @@ snapshots: ext-list: 2.2.2 sort-keys-length: 1.0.1 - ext@1.7.0: - dependencies: - type: 2.7.3 - extend-shallow@2.0.1: dependencies: is-extendable: 0.1.1 @@ -15433,8 +15287,6 @@ snapshots: get-package-type@0.1.0: {} - get-stdin@8.0.0: {} - get-stdin@9.0.0: {} get-stream@3.0.0: {} @@ -15480,11 +15332,6 @@ snapshots: dependencies: is-glob: 4.0.3 - glob-promise@4.2.2(glob@7.2.3): - dependencies: - '@types/glob': 7.2.0 - glob: 7.2.3 - glob@10.4.5: dependencies: foreground-child: 3.3.0 @@ -15912,8 +15759,6 @@ snapshots: is-potential-custom-element-name@1.0.1: {} - is-promise@2.2.2: {} - is-regex@1.1.4: dependencies: call-bind: 1.0.7 @@ -16448,22 +16293,16 @@ snapshots: json-parse-even-better-errors@2.3.1: {} - json-schema-to-typescript@11.0.3: + json-schema-to-typescript@15.0.1: dependencies: - '@bcherny/json-schema-ref-parser': 9.0.9 + '@apidevtools/json-schema-ref-parser': 11.7.0 '@types/json-schema': 7.0.15 - '@types/lodash': 4.17.7 - '@types/prettier': 2.7.3 - cli-color: 2.0.4 - get-stdin: 8.0.0 - glob: 7.2.3 - glob-promise: 4.2.2(glob@7.2.3) + glob: 10.4.5 is-glob: 4.0.3 + js-yaml: 4.1.0 lodash: 4.17.21 minimist: 1.2.8 - mkdirp: 1.0.4 - mz: 2.7.0 - prettier: 2.8.8 + prettier: 3.3.2 json-schema-traverse@0.4.1: {} @@ -16650,10 +16489,6 @@ snapshots: dependencies: yallist: 3.1.1 - lru-queue@0.1.0: - dependencies: - es5-ext: 0.10.64 - magic-string@0.30.11: dependencies: '@jridgewell/sourcemap-codec': 1.5.0 @@ -16687,17 +16522,6 @@ snapshots: memoize-one@6.0.0: {} - memoizee@0.4.17: - dependencies: - d: 1.0.2 - es5-ext: 0.10.64 - es6-weak-map: 2.0.3 - event-emitter: 0.3.5 - is-promise: 2.2.2 - lru-queue: 0.1.0 - next-tick: 1.1.0 - timers-ext: 0.1.8 - memory-pager@1.5.0: optional: true @@ -16880,12 +16704,6 @@ snapshots: ms@2.1.3: {} - mz@2.7.0: - dependencies: - any-promise: 1.3.0 - object-assign: 4.1.1 - thenify-all: 1.6.0 - nanoid@3.3.7: {} napi-build-utils@1.0.2: {} @@ -16902,8 +16720,6 @@ snapshots: transitivePeerDependencies: - supports-color - next-tick@1.1.0: {} - next@15.0.0-canary.104(@babel/core@7.25.2)(@playwright/test@1.46.0)(babel-plugin-macros@3.1.0)(babel-plugin-react-compiler@0.0.0-experimental-48eb8f4-20240822)(react-dom@19.0.0-rc-06d0b89e-20240801(react@19.0.0-rc-06d0b89e-20240801))(react@19.0.0-rc-06d0b89e-20240801)(sass@1.77.4): dependencies: '@next/env': 15.0.0-canary.104 @@ -17435,8 +17251,6 @@ snapshots: prelude-ls@1.2.1: {} - prettier@2.8.8: {} - prettier@3.3.2: {} pretty-format@24.9.0: @@ -18463,14 +18277,6 @@ snapshots: text-table@0.2.0: {} - thenify-all@1.6.0: - dependencies: - thenify: 3.3.1 - - thenify@3.3.1: - dependencies: - any-promise: 1.3.0 - thread-stream@3.1.0: dependencies: real-require: 0.2.0 @@ -18480,11 +18286,6 @@ snapshots: readable-stream: 2.3.8 xtend: 4.0.2 - timers-ext@0.1.8: - dependencies: - es5-ext: 0.10.64 - next-tick: 1.1.0 - tiny-invariant@1.0.6: {} tiny-warning@1.0.3: {} @@ -18636,8 +18437,6 @@ snapshots: media-typer: 0.3.0 mime-types: 2.1.35 - type@2.7.3: {} - typed-array-buffer@1.0.2: dependencies: call-bind: 1.0.7 diff --git a/test/array-update/payload-types.ts b/test/array-update/payload-types.ts index 1462daa02..bc1421c6d 100644 --- a/test/array-update/payload-types.ts +++ b/test/array-update/payload-types.ts @@ -16,6 +16,9 @@ export interface Config { 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; + db: { + defaultIDType: string; + }; globals: {}; locale: null; user: User & { @@ -25,15 +28,20 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { - password: string; email: string; + password: string; }; registerFirstUser: { email: string; password: string; }; + unlock: { + email: string; + password: string; + }; } /** * This interface was referenced by `Config`'s JSON-Schema diff --git a/test/auth/payload-types.ts b/test/auth/payload-types.ts index 6ce7d5ce9..4565cec09 100644 --- a/test/auth/payload-types.ts +++ b/test/auth/payload-types.ts @@ -39,6 +39,7 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { email: string; @@ -50,11 +51,13 @@ export interface UserAuthOperations { }; unlock: { email: string; + password: string; }; } export interface ApiKeyAuthOperations { forgotPassword: { email: string; + password: string; }; login: { email: string; @@ -66,11 +69,13 @@ export interface ApiKeyAuthOperations { }; unlock: { email: string; + password: string; }; } export interface PublicUserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { email: string; @@ -82,6 +87,7 @@ export interface PublicUserAuthOperations { }; unlock: { email: string; + password: string; }; } /** diff --git a/test/collections-graphql/payload-types.ts b/test/collections-graphql/payload-types.ts index 367d13e34..1cf3c72dc 100644 --- a/test/collections-graphql/payload-types.ts +++ b/test/collections-graphql/payload-types.ts @@ -26,6 +26,9 @@ export interface Config { 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; + db: { + defaultIDType: string; + }; globals: {}; locale: 'en' | 'es'; user: User & { @@ -35,15 +38,20 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { - password: string; email: string; + password: string; }; registerFirstUser: { email: string; password: string; }; + unlock: { + email: string; + password: string; + }; } /** * This interface was referenced by `Config`'s JSON-Schema @@ -212,7 +220,7 @@ export interface CyclicalRelationship { id: string; title?: string | null; relationToSelf?: (string | null) | CyclicalRelationship; - media?: string | Media | null; + media?: (string | null) | Media; updatedAt: string; createdAt: string; _status?: ('draft' | 'published') | null; diff --git a/test/collections-rest/payload-types.ts b/test/collections-rest/payload-types.ts index a01d916cb..e01f7e4d8 100644 --- a/test/collections-rest/payload-types.ts +++ b/test/collections-rest/payload-types.ts @@ -22,6 +22,9 @@ export interface Config { 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; + db: { + defaultIDType: string; + }; globals: {}; locale: null; user: User & { @@ -31,15 +34,20 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { - password: string; email: string; + password: string; }; registerFirstUser: { email: string; password: string; }; + unlock: { + email: string; + password: string; + }; } /** * This interface was referenced by `Config`'s JSON-Schema diff --git a/test/config/payload-types.ts b/test/config/payload-types.ts index ef8747ebc..d43a808f6 100644 --- a/test/config/payload-types.ts +++ b/test/config/payload-types.ts @@ -16,6 +16,9 @@ export interface Config { 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; + db: { + defaultIDType: string; + }; globals: { 'my-global': MyGlobal; }; @@ -27,15 +30,20 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { - password: string; email: string; + password: string; }; registerFirstUser: { email: string; password: string; }; + unlock: { + email: string; + password: string; + }; } /** * This interface was referenced by `Config`'s JSON-Schema diff --git a/test/custom-graphql/payload-types.ts b/test/custom-graphql/payload-types.ts index 342be88cd..48d56a68e 100644 --- a/test/custom-graphql/payload-types.ts +++ b/test/custom-graphql/payload-types.ts @@ -15,6 +15,9 @@ export interface Config { 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; + db: { + defaultIDType: string; + }; globals: {}; locale: null; user: User & { @@ -24,15 +27,20 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { - password: string; email: string; + password: string; }; registerFirstUser: { email: string; password: string; }; + unlock: { + email: string; + password: string; + }; } /** * This interface was referenced by `Config`'s JSON-Schema diff --git a/test/database/payload-types.ts b/test/database/payload-types.ts index 1efc7be53..5ee263a06 100644 --- a/test/database/payload-types.ts +++ b/test/database/payload-types.ts @@ -12,6 +12,7 @@ export interface Config { }; collections: { posts: Post; + 'default-values': DefaultValue; 'relation-a': RelationA; 'relation-b': RelationB; 'pg-migrations': PgMigration; @@ -20,6 +21,9 @@ export interface Config { 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; + db: { + defaultIDType: string; + }; globals: { global: Global; }; @@ -31,15 +35,20 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { - password: string; email: string; + password: string; }; registerFirstUser: { email: string; password: string; }; + unlock: { + email: string; + password: string; + }; } /** * This interface was referenced by `Config`'s JSON-Schema @@ -52,6 +61,27 @@ export interface Post { updatedAt: string; createdAt: string; } +/** + * This interface was referenced by `Config`'s JSON-Schema + * via the `definition` "default-values". + */ +export interface DefaultValue { + id: string; + title?: string | null; + defaultValue?: string | null; + array?: + | { + defaultValue?: string | null; + id?: string | null; + }[] + | null; + group?: { + defaultValue?: string | null; + }; + select?: ('option0' | 'option1' | 'default') | null; + updatedAt: string; + createdAt: string; +} /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "relation-a". @@ -59,7 +89,6 @@ export interface Post { export interface RelationA { id: string; title?: string | null; - relationship?: (string | null) | RelationB; richText?: { root: { type: string; diff --git a/test/dataloader/payload-types.ts b/test/dataloader/payload-types.ts index 1b7ba3199..17f0a333a 100644 --- a/test/dataloader/payload-types.ts +++ b/test/dataloader/payload-types.ts @@ -21,6 +21,9 @@ export interface Config { 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; + db: { + defaultIDType: string; + }; globals: {}; locale: null; user: User & { @@ -30,15 +33,20 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { - password: string; email: string; + password: string; }; registerFirstUser: { email: string; password: string; }; + unlock: { + email: string; + password: string; + }; } /** * This interface was referenced by `Config`'s JSON-Schema diff --git a/test/email-nodemailer/payload-types.ts b/test/email-nodemailer/payload-types.ts index 342be88cd..48d56a68e 100644 --- a/test/email-nodemailer/payload-types.ts +++ b/test/email-nodemailer/payload-types.ts @@ -15,6 +15,9 @@ export interface Config { 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; + db: { + defaultIDType: string; + }; globals: {}; locale: null; user: User & { @@ -24,15 +27,20 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { - password: string; email: string; + password: string; }; registerFirstUser: { email: string; password: string; }; + unlock: { + email: string; + password: string; + }; } /** * This interface was referenced by `Config`'s JSON-Schema diff --git a/test/email-resend/payload-types.ts b/test/email-resend/payload-types.ts index 342be88cd..48d56a68e 100644 --- a/test/email-resend/payload-types.ts +++ b/test/email-resend/payload-types.ts @@ -15,6 +15,9 @@ export interface Config { 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; + db: { + defaultIDType: string; + }; globals: {}; locale: null; user: User & { @@ -24,15 +27,20 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { - password: string; email: string; + password: string; }; registerFirstUser: { email: string; password: string; }; + unlock: { + email: string; + password: string; + }; } /** * This interface was referenced by `Config`'s JSON-Schema diff --git a/test/email/payload-types.ts b/test/email/payload-types.ts index 1bcc87f49..1e1f6a044 100644 --- a/test/email/payload-types.ts +++ b/test/email/payload-types.ts @@ -17,6 +17,9 @@ export interface Config { 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; + db: { + defaultIDType: string; + }; globals: { menu: Menu; }; @@ -28,15 +31,20 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { - password: string; email: string; + password: string; }; registerFirstUser: { email: string; password: string; }; + unlock: { + email: string; + password: string; + }; } /** * This interface was referenced by `Config`'s JSON-Schema @@ -45,7 +53,7 @@ export interface UserAuthOperations { export interface Post { id: string; text?: string | null; - associatedMedia?: string | Media | null; + associatedMedia?: (string | null) | Media; updatedAt: string; createdAt: string; _status?: ('draft' | 'published') | null; diff --git a/test/endpoints/payload-types.ts b/test/endpoints/payload-types.ts index 2e45bce09..b28597ec1 100644 --- a/test/endpoints/payload-types.ts +++ b/test/endpoints/payload-types.ts @@ -17,6 +17,9 @@ export interface Config { 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; + db: { + defaultIDType: string; + }; globals: { 'global-endpoints': GlobalEndpoint; 'global-no-endpoints': GlobalNoEndpoint; @@ -29,15 +32,20 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { - password: string; email: string; + password: string; }; registerFirstUser: { email: string; password: string; }; + unlock: { + email: string; + password: string; + }; } /** * This interface was referenced by `Config`'s JSON-Schema diff --git a/test/field-error-states/payload-types.ts b/test/field-error-states/payload-types.ts index f2c4f3f91..9b821274b 100644 --- a/test/field-error-states/payload-types.ts +++ b/test/field-error-states/payload-types.ts @@ -36,6 +36,7 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { email: string; @@ -47,6 +48,7 @@ export interface UserAuthOperations { }; unlock: { email: string; + password: string; }; } /** @@ -259,7 +261,7 @@ export interface User { export interface Upload { id: string; text?: string | null; - media?: string | Upload | null; + media?: (string | null) | Upload; richText?: { root: { type: string; diff --git a/test/field-perf/payload-types.ts b/test/field-perf/payload-types.ts index a3754023d..dd4162c22 100644 --- a/test/field-perf/payload-types.ts +++ b/test/field-perf/payload-types.ts @@ -16,6 +16,9 @@ export interface Config { 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; + db: { + defaultIDType: string; + }; globals: {}; locale: null; user: User & { @@ -25,15 +28,20 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { - password: string; email: string; + password: string; }; registerFirstUser: { email: string; password: string; }; + unlock: { + email: string; + password: string; + }; } /** * This interface was referenced by `Config`'s JSON-Schema diff --git a/test/fields/payload-types.ts b/test/fields/payload-types.ts index 7fb696018..16fe115c4 100644 --- a/test/fields/payload-types.ts +++ b/test/fields/payload-types.ts @@ -1109,6 +1109,21 @@ export interface LexicalRelationshipField { }; [k: string]: unknown; } | null; + richText2?: { + root: { + type: string; + children: { + type: string; + version: number; + [k: string]: unknown; + }[]; + direction: ('ltr' | 'rtl') | null; + format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | ''; + indent: number; + version: number; + }; + [k: string]: unknown; + } | null; updatedAt: string; createdAt: string; } diff --git a/test/globals/payload-types.ts b/test/globals/payload-types.ts index 0283c6b19..7b812e0b3 100644 --- a/test/globals/payload-types.ts +++ b/test/globals/payload-types.ts @@ -15,6 +15,9 @@ export interface Config { 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; + db: { + defaultIDType: string; + }; globals: { global: Global; array: Array; @@ -30,15 +33,20 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { - password: string; email: string; + password: string; }; registerFirstUser: { email: string; password: string; }; + unlock: { + email: string; + password: string; + }; } /** * This interface was referenced by `Config`'s JSON-Schema diff --git a/test/graphql-schema-gen/payload-types.ts b/test/graphql-schema-gen/payload-types.ts index 1a6d68780..7704dde62 100644 --- a/test/graphql-schema-gen/payload-types.ts +++ b/test/graphql-schema-gen/payload-types.ts @@ -30,6 +30,9 @@ export interface Config { 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; + db: { + defaultIDType: string; + }; globals: {}; locale: null; user: User & { @@ -39,15 +42,20 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { - password: string; email: string; + password: string; }; registerFirstUser: { email: string; password: string; }; + unlock: { + email: string; + password: string; + }; } /** * This interface was referenced by `Config`'s JSON-Schema diff --git a/test/hooks/payload-types.ts b/test/hooks/payload-types.ts index 993a5880f..e9cbc46c4 100644 --- a/test/hooks/payload-types.ts +++ b/test/hooks/payload-types.ts @@ -23,6 +23,9 @@ export interface Config { 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; + db: { + defaultIDType: string; + }; globals: { 'data-hooks-global': DataHooksGlobal; }; @@ -34,15 +37,20 @@ export interface Config { export interface HooksUserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { - password: string; email: string; + password: string; }; registerFirstUser: { email: string; password: string; }; + unlock: { + email: string; + password: string; + }; } /** * This interface was referenced by `Config`'s JSON-Schema diff --git a/test/live-preview/payload-types.ts b/test/live-preview/payload-types.ts index 3bab06dc6..39dd14a31 100644 --- a/test/live-preview/payload-types.ts +++ b/test/live-preview/payload-types.ts @@ -85,7 +85,7 @@ export interface Page { [k: string]: unknown; }[] | null; - media?: string | Media | null; + media?: (string | null) | Media; }; layout?: | ( @@ -212,7 +212,7 @@ export interface Page { }; [k: string]: unknown; } | null; - relationshipAsUpload?: string | Media | null; + relationshipAsUpload?: (string | null) | Media; relationshipMonoHasOne?: (string | null) | Post; relationshipMonoHasMany?: (string | Post)[] | null; relationshipPolyHasOne?: { @@ -227,7 +227,7 @@ export interface Page { | null; arrayOfRelationships?: | { - uploadInArray?: string | Media | null; + uploadInArray?: (string | null) | Media; richTextInArray?: { root: { type: string; @@ -264,7 +264,7 @@ export interface Page { meta?: { title?: string | null; description?: string | null; - image?: string | Media | null; + image?: (string | null) | Media; }; updatedAt: string; createdAt: string; @@ -315,7 +315,7 @@ export interface Post { [k: string]: unknown; }[] | null; - media?: string | Media | null; + media?: (string | null) | Media; }; layout?: | ( @@ -426,7 +426,7 @@ export interface Post { meta?: { title?: string | null; description?: string | null; - image?: string | Media | null; + image?: (string | null) | Media; }; updatedAt: string; createdAt: string; @@ -457,7 +457,7 @@ export interface Ssr { [k: string]: unknown; }[] | null; - media?: string | Media | null; + media?: (string | null) | Media; }; layout?: | ( @@ -567,7 +567,7 @@ export interface Ssr { meta?: { title?: string | null; description?: string | null; - image?: string | Media | null; + image?: (string | null) | Media; }; updatedAt: string; createdAt: string; @@ -588,7 +588,7 @@ export interface SsrAutosave { [k: string]: unknown; }[] | null; - media?: string | Media | null; + media?: (string | null) | Media; }; layout?: | ( @@ -698,7 +698,7 @@ export interface SsrAutosave { meta?: { title?: string | null; description?: string | null; - image?: string | Media | null; + image?: (string | null) | Media; }; updatedAt: string; createdAt: string; diff --git a/test/localization-rtl/payload-types.ts b/test/localization-rtl/payload-types.ts index 605ab86c4..3261df977 100644 --- a/test/localization-rtl/payload-types.ts +++ b/test/localization-rtl/payload-types.ts @@ -16,6 +16,9 @@ export interface Config { 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; + db: { + defaultIDType: string; + }; globals: {}; locale: 'en' | 'ar'; user: User & { @@ -25,15 +28,20 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { - password: string; email: string; + password: string; }; registerFirstUser: { email: string; password: string; }; + unlock: { + email: string; + password: string; + }; } /** * This interface was referenced by `Config`'s JSON-Schema diff --git a/test/localization/payload-types.ts b/test/localization/payload-types.ts index 1e17b1e40..56d34ca2c 100644 --- a/test/localization/payload-types.ts +++ b/test/localization/payload-types.ts @@ -13,7 +13,7 @@ export interface Config { collections: { 'blocks-fields': BlocksField; 'nested-arrays': NestedArray; - 'nested-fields': NestedField; + 'nested-field-tables': NestedFieldTable; users: User; 'localized-posts': LocalizedPost; 'array-fields': ArrayField; @@ -30,7 +30,7 @@ export interface Config { 'payload-migrations': PayloadMigration; }; db: { - defaultIDType: number; + defaultIDType: string; }; globals: { 'global-array': GlobalArray; @@ -63,7 +63,7 @@ export interface UserAuthOperations { * via the `definition` "blocks-fields". */ export interface BlocksField { - id: number; + id: string; content?: | { content?: @@ -87,12 +87,12 @@ export interface BlocksField { * via the `definition` "nested-arrays". */ export interface NestedArray { - id: number; + id: string; arrayWithBlocks?: | { blocksWithinArray?: | { - relationWithinBlock?: (number | null) | LocalizedPost; + relationWithinBlock?: (string | null) | LocalizedPost; id?: string | null; blockName?: string | null; blockType: 'someBlock'; @@ -103,7 +103,7 @@ export interface NestedArray { | null; arrayWithLocalizedRelation?: | { - localizedRelation?: (number | null) | LocalizedPost; + localizedRelation?: (string | null) | LocalizedPost; id?: string | null; }[] | null; @@ -115,12 +115,12 @@ export interface NestedArray { * via the `definition` "localized-posts". */ export interface LocalizedPost { - id: number; + id: string; title?: string | null; description?: string | null; localizedDescription?: string | null; localizedCheckbox?: boolean | null; - children?: (number | LocalizedPost)[] | null; + children?: (string | LocalizedPost)[] | null; group?: { children?: string | null; }; @@ -129,21 +129,21 @@ export interface LocalizedPost { } /** * This interface was referenced by `Config`'s JSON-Schema - * via the `definition` "nested-fields". + * via the `definition` "nested-field-tables". */ -export interface NestedField { - id: number; +export interface NestedFieldTable { + id: string; array?: | { relation?: { relationTo: 'localized-posts'; - value: number | LocalizedPost; + value: string | LocalizedPost; } | null; - hasManyRelation?: (number | LocalizedPost)[] | null; + hasManyRelation?: (string | LocalizedPost)[] | null; hasManyPolyRelation?: | { relationTo: 'localized-posts'; - value: number | LocalizedPost; + value: string | LocalizedPost; }[] | null; select?: ('one' | 'two' | 'three')[] | null; @@ -160,8 +160,8 @@ export interface NestedField { * via the `definition` "users". */ export interface User { - id: number; - relation?: (number | null) | LocalizedPost; + id: string; + relation?: (string | null) | LocalizedPost; updatedAt: string; createdAt: string; email: string; @@ -178,7 +178,7 @@ export interface User { * via the `definition` "array-fields". */ export interface ArrayField { - id: number; + id: string; items?: | { text: string; @@ -193,7 +193,7 @@ export interface ArrayField { * via the `definition` "localized-required". */ export interface LocalizedRequired { - id: number; + id: string; title: string; layout: ( | { @@ -217,27 +217,27 @@ export interface LocalizedRequired { * via the `definition` "with-localized-relationship". */ export interface WithLocalizedRelationship { - id: number; - localizedRelationship?: (number | null) | LocalizedPost; - localizedRelationHasManyField?: (number | LocalizedPost)[] | null; + id: string; + localizedRelationship?: (string | null) | LocalizedPost; + localizedRelationHasManyField?: (string | LocalizedPost)[] | null; localizedRelationMultiRelationTo?: | ({ relationTo: 'localized-posts'; - value: number | LocalizedPost; + value: string | LocalizedPost; } | null) | ({ relationTo: 'dummy'; - value: number | Dummy; + value: string | Dummy; } | null); localizedRelationMultiRelationToHasMany?: | ( | { relationTo: 'localized-posts'; - value: number | LocalizedPost; + value: string | LocalizedPost; } | { relationTo: 'dummy'; - value: number | Dummy; + value: string | Dummy; } )[] | null; @@ -249,7 +249,7 @@ export interface WithLocalizedRelationship { * via the `definition` "dummy". */ export interface Dummy { - id: number; + id: string; name?: string | null; updatedAt: string; createdAt: string; @@ -259,33 +259,33 @@ export interface Dummy { * via the `definition` "relationship-localized". */ export interface RelationshipLocalized { - id: number; - relationship?: (number | null) | LocalizedPost; - relationshipHasMany?: (number | LocalizedPost)[] | null; + id: string; + relationship?: (string | null) | LocalizedPost; + relationshipHasMany?: (string | LocalizedPost)[] | null; relationMultiRelationTo?: | ({ relationTo: 'localized-posts'; - value: number | LocalizedPost; + value: string | LocalizedPost; } | null) | ({ relationTo: 'dummy'; - value: number | Dummy; + value: string | Dummy; } | null); relationMultiRelationToHasMany?: | ( | { relationTo: 'localized-posts'; - value: number | LocalizedPost; + value: string | LocalizedPost; } | { relationTo: 'dummy'; - value: number | Dummy; + value: string | Dummy; } )[] | null; arrayField?: | { - nestedRelation?: (number | null) | LocalizedPost; + nestedRelation?: (string | null) | LocalizedPost; id?: string | null; }[] | null; @@ -297,7 +297,7 @@ export interface RelationshipLocalized { * via the `definition` "nested". */ export interface Nested { - id: number; + id: string; blocks?: | { array?: @@ -320,7 +320,7 @@ export interface Nested { * via the `definition` "groups". */ export interface Group { - id: number; + id: string; groupLocalized?: { title?: string | null; }; @@ -351,7 +351,7 @@ export interface Group { * via the `definition` "tabs". */ export interface Tab { - id: number; + id: string; tabLocalized?: { title?: string | null; }; @@ -382,7 +382,7 @@ export interface Tab { * via the `definition` "localized-sort". */ export interface LocalizedSort { - id: number; + id: string; title?: string | null; date?: string | null; updatedAt: string; @@ -393,7 +393,7 @@ export interface LocalizedSort { * via the `definition` "blocks-same-name". */ export interface BlocksSameName { - id: number; + id: string; blocks?: | ( | { @@ -418,10 +418,10 @@ export interface BlocksSameName { * via the `definition` "payload-preferences". */ export interface PayloadPreference { - id: number; + id: string; user: { relationTo: 'users'; - value: number | User; + value: string | User; }; key?: string | null; value?: @@ -441,7 +441,7 @@ export interface PayloadPreference { * via the `definition` "payload-migrations". */ export interface PayloadMigration { - id: number; + id: string; name?: string | null; batch?: number | null; updatedAt: string; @@ -452,7 +452,7 @@ export interface PayloadMigration { * via the `definition` "global-array". */ export interface GlobalArray { - id: number; + id: string; array?: | { text?: string | null; diff --git a/test/migrations-cli/payload-types.ts b/test/migrations-cli/payload-types.ts index 342be88cd..48d56a68e 100644 --- a/test/migrations-cli/payload-types.ts +++ b/test/migrations-cli/payload-types.ts @@ -15,6 +15,9 @@ export interface Config { 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; + db: { + defaultIDType: string; + }; globals: {}; locale: null; user: User & { @@ -24,15 +27,20 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { - password: string; email: string; + password: string; }; registerFirstUser: { email: string; password: string; }; + unlock: { + email: string; + password: string; + }; } /** * This interface was referenced by `Config`'s JSON-Schema diff --git a/test/nested-fields/payload-types.ts b/test/nested-fields/payload-types.ts index 41b4e8a90..1c0f94fad 100644 --- a/test/nested-fields/payload-types.ts +++ b/test/nested-fields/payload-types.ts @@ -16,6 +16,9 @@ export interface Config { 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; + db: { + defaultIDType: string; + }; globals: {}; locale: null; user: User & { @@ -25,15 +28,20 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { - password: string; email: string; + password: string; }; registerFirstUser: { email: string; password: string; }; + unlock: { + email: string; + password: string; + }; } /** * This interface was referenced by `Config`'s JSON-Schema diff --git a/test/plugin-cloud-storage/payload-types.ts b/test/plugin-cloud-storage/payload-types.ts index 464ab3200..d3c93e192 100644 --- a/test/plugin-cloud-storage/payload-types.ts +++ b/test/plugin-cloud-storage/payload-types.ts @@ -17,6 +17,9 @@ export interface Config { 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; + db: { + defaultIDType: string; + }; globals: {}; locale: null; user: User & { @@ -26,15 +29,20 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { - password: string; email: string; + password: string; }; registerFirstUser: { email: string; password: string; }; + unlock: { + email: string; + password: string; + }; } /** * This interface was referenced by `Config`'s JSON-Schema diff --git a/test/plugin-cloud/payload-types.ts b/test/plugin-cloud/payload-types.ts index 1b0a3a901..f061d0fba 100644 --- a/test/plugin-cloud/payload-types.ts +++ b/test/plugin-cloud/payload-types.ts @@ -16,6 +16,9 @@ export interface Config { 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; + db: { + defaultIDType: string; + }; globals: {}; locale: null; user: User & { @@ -25,15 +28,20 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { - password: string; email: string; + password: string; }; registerFirstUser: { email: string; password: string; }; + unlock: { + email: string; + password: string; + }; } /** * This interface was referenced by `Config`'s JSON-Schema diff --git a/test/plugin-form-builder/payload-types.ts b/test/plugin-form-builder/payload-types.ts index aacc681db..1fc0e4f10 100644 --- a/test/plugin-form-builder/payload-types.ts +++ b/test/plugin-form-builder/payload-types.ts @@ -30,6 +30,7 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { email: string; @@ -41,6 +42,7 @@ export interface UserAuthOperations { }; unlock: { email: string; + password: string; }; } /** diff --git a/test/plugin-nested-docs/payload-types.ts b/test/plugin-nested-docs/payload-types.ts index ebaf945db..20bcd1dcd 100644 --- a/test/plugin-nested-docs/payload-types.ts +++ b/test/plugin-nested-docs/payload-types.ts @@ -17,6 +17,9 @@ export interface Config { 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; + db: { + defaultIDType: string; + }; globals: {}; locale: 'en' | 'es' | 'de'; user: User & { @@ -26,15 +29,20 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { - password: string; email: string; + password: string; }; registerFirstUser: { email: string; password: string; }; + unlock: { + email: string; + password: string; + }; } /** * This interface was referenced by `Config`'s JSON-Schema diff --git a/test/plugin-relationship-object-ids/payload-types.ts b/test/plugin-relationship-object-ids/payload-types.ts index a78a9846f..624246856 100644 --- a/test/plugin-relationship-object-ids/payload-types.ts +++ b/test/plugin-relationship-object-ids/payload-types.ts @@ -19,6 +19,9 @@ export interface Config { 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; + db: { + defaultIDType: string; + }; globals: {}; locale: null; user: User & { @@ -28,15 +31,20 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { - password: string; email: string; + password: string; }; registerFirstUser: { email: string; password: string; }; + unlock: { + email: string; + password: string; + }; } /** * This interface was referenced by `Config`'s JSON-Schema @@ -105,7 +113,7 @@ export interface Relation { } )[] | null; - upload?: string | Upload | null; + upload?: (string | null) | Upload; updatedAt: string; createdAt: string; } diff --git a/test/plugin-search/payload-types.ts b/test/plugin-search/payload-types.ts index 9d1b14a69..b404a0149 100644 --- a/test/plugin-search/payload-types.ts +++ b/test/plugin-search/payload-types.ts @@ -30,6 +30,7 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { email: string; @@ -41,6 +42,7 @@ export interface UserAuthOperations { }; unlock: { email: string; + password: string; }; } /** diff --git a/test/plugin-sentry/payload-types.ts b/test/plugin-sentry/payload-types.ts index e332f8fd0..70c5e03ee 100644 --- a/test/plugin-sentry/payload-types.ts +++ b/test/plugin-sentry/payload-types.ts @@ -16,6 +16,9 @@ export interface Config { 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; + db: { + defaultIDType: string; + }; globals: {}; locale: null; user: User & { @@ -25,15 +28,20 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { - password: string; email: string; + password: string; }; registerFirstUser: { email: string; password: string; }; + unlock: { + email: string; + password: string; + }; } /** * This interface was referenced by `Config`'s JSON-Schema diff --git a/test/plugin-seo/payload-types.ts b/test/plugin-seo/payload-types.ts index b2be3344f..3ad82ef92 100644 --- a/test/plugin-seo/payload-types.ts +++ b/test/plugin-seo/payload-types.ts @@ -74,7 +74,7 @@ export interface Page { meta: { title: string; description?: string | null; - image?: string | Media | null; + image?: (string | null) | Media; ogTitle?: string | null; }; updatedAt: string; @@ -87,7 +87,7 @@ export interface Page { */ export interface Media { id: string; - media?: string | Media | null; + media?: (string | null) | Media; richText?: { root: { type: string; @@ -130,7 +130,7 @@ export interface PagesWithImportedField { description?: string | null; }; innerMedia?: { - image?: string | Media | null; + image?: (string | null) | Media; }; }; updatedAt: string; diff --git a/test/plugin-stripe/payload-types.ts b/test/plugin-stripe/payload-types.ts index 34909904e..5d06d8adc 100644 --- a/test/plugin-stripe/payload-types.ts +++ b/test/plugin-stripe/payload-types.ts @@ -18,6 +18,9 @@ export interface Config { 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; + db: { + defaultIDType: string; + }; globals: {}; locale: 'en' | 'es' | 'de'; user: @@ -31,28 +34,38 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { - password: string; email: string; + password: string; }; registerFirstUser: { email: string; password: string; }; + unlock: { + email: string; + password: string; + }; } export interface CustomerAuthOperations { forgotPassword: { email: string; + password: string; }; login: { - password: string; email: string; + password: string; }; registerFirstUser: { email: string; password: string; }; + unlock: { + email: string; + password: string; + }; } /** * This interface was referenced by `Config`'s JSON-Schema diff --git a/test/plugins/payload-types.ts b/test/plugins/payload-types.ts index 88d276bc7..98b070e3c 100644 --- a/test/plugins/payload-types.ts +++ b/test/plugins/payload-types.ts @@ -16,6 +16,9 @@ export interface Config { 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; + db: { + defaultIDType: string; + }; globals: {}; locale: null; user: User & { @@ -25,15 +28,20 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { - password: string; email: string; + password: string; }; registerFirstUser: { email: string; password: string; }; + unlock: { + email: string; + password: string; + }; } /** * This interface was referenced by `Config`'s JSON-Schema diff --git a/test/relationships/payload-types.ts b/test/relationships/payload-types.ts index d6ec5c594..02070bdee 100644 --- a/test/relationships/payload-types.ts +++ b/test/relationships/payload-types.ts @@ -28,6 +28,9 @@ export interface Config { 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; + db: { + defaultIDType: string; + }; globals: {}; locale: 'en' | 'de'; user: User & { @@ -37,15 +40,20 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { - password: string; email: string; + password: string; }; registerFirstUser: { email: string; password: string; }; + unlock: { + email: string; + password: string; + }; } /** * This interface was referenced by `Config`'s JSON-Schema diff --git a/test/storage-azure/payload-types.ts b/test/storage-azure/payload-types.ts index 464ab3200..d3c93e192 100644 --- a/test/storage-azure/payload-types.ts +++ b/test/storage-azure/payload-types.ts @@ -17,6 +17,9 @@ export interface Config { 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; + db: { + defaultIDType: string; + }; globals: {}; locale: null; user: User & { @@ -26,15 +29,20 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { - password: string; email: string; + password: string; }; registerFirstUser: { email: string; password: string; }; + unlock: { + email: string; + password: string; + }; } /** * This interface was referenced by `Config`'s JSON-Schema diff --git a/test/storage-gcs/payload-types.ts b/test/storage-gcs/payload-types.ts index 464ab3200..d3c93e192 100644 --- a/test/storage-gcs/payload-types.ts +++ b/test/storage-gcs/payload-types.ts @@ -17,6 +17,9 @@ export interface Config { 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; + db: { + defaultIDType: string; + }; globals: {}; locale: null; user: User & { @@ -26,15 +29,20 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { - password: string; email: string; + password: string; }; registerFirstUser: { email: string; password: string; }; + unlock: { + email: string; + password: string; + }; } /** * This interface was referenced by `Config`'s JSON-Schema diff --git a/test/storage-s3/payload-types.ts b/test/storage-s3/payload-types.ts index 464ab3200..d3c93e192 100644 --- a/test/storage-s3/payload-types.ts +++ b/test/storage-s3/payload-types.ts @@ -17,6 +17,9 @@ export interface Config { 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; + db: { + defaultIDType: string; + }; globals: {}; locale: null; user: User & { @@ -26,15 +29,20 @@ export interface Config { export interface UserAuthOperations { forgotPassword: { email: string; + password: string; }; login: { - password: string; email: string; + password: string; }; registerFirstUser: { email: string; password: string; }; + unlock: { + email: string; + password: string; + }; } /** * This interface was referenced by `Config`'s JSON-Schema