@stryke/prisma-trpc-generator 0.13.86 → 0.13.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/_virtual/{rolldown_runtime.cjs → _rolldown/runtime.cjs} +2 -2
  2. package/dist/_virtual/{rolldown_runtime.mjs → _rolldown/runtime.mjs} +2 -2
  3. package/dist/config.cjs +23 -23
  4. package/dist/config.mjs +21 -21
  5. package/dist/config.mjs.map +1 -1
  6. package/dist/helpers.cjs +10 -10
  7. package/dist/helpers.mjs.map +1 -1
  8. package/dist/packages/env/src/get-env-paths.cjs +28 -28
  9. package/dist/packages/string-format/src/acronyms.cjs +0 -1
  10. package/dist/packages/string-format/src/acronyms.mjs +0 -1
  11. package/dist/packages/string-format/src/acronyms.mjs.map +1 -1
  12. package/dist/prisma-generator.cjs +13 -13
  13. package/dist/prisma-generator.mjs +1 -1
  14. package/dist/prisma-generator.mjs.map +1 -1
  15. package/dist/project.cjs +1 -1
  16. package/dist/project.mjs.map +1 -1
  17. package/dist/utils/format-file.cjs +2 -2
  18. package/dist/utils/format-file.mjs.map +1 -1
  19. package/dist/utils/get-jiti.cjs +5 -5
  20. package/dist/utils/get-jiti.mjs.map +1 -1
  21. package/dist/utils/write-file-safely.cjs +9 -9
  22. package/dist/utils/write-file-safely.mjs +3 -3
  23. package/dist/utils/write-file-safely.mjs.map +1 -1
  24. package/dist/zod/aggregate-helpers.mjs.map +1 -1
  25. package/dist/zod/comments-helpers.mjs.map +1 -1
  26. package/dist/zod/docs-helpers.cjs +2 -2
  27. package/dist/zod/docs-helpers.mjs.map +1 -1
  28. package/dist/zod/generator-helpers.mjs.map +1 -1
  29. package/dist/zod/include-helpers.mjs.map +1 -1
  30. package/dist/zod/model-helpers.cjs +2 -2
  31. package/dist/zod/model-helpers.mjs.map +1 -1
  32. package/dist/zod/modelArgs-helpers.mjs.map +1 -1
  33. package/dist/zod/mongodb-helpers.mjs.map +1 -1
  34. package/dist/zod/select-helpers.mjs.map +1 -1
  35. package/dist/zod/transformer.cjs +2 -2
  36. package/dist/zod/transformer.mjs.map +1 -1
  37. package/package.json +139 -10
@@ -1 +1 @@
1
- {"version":3,"file":"acronyms.mjs","names":["ACRONYMS: Record<\n string,\n { description: string; display?: string }\n>","ACRONYM_DISPLAY: Record<string, string>","ACRONYM_DESCRIPTION: Record<string, string>","ACRONYM_LIST: string[]"],"sources":["../../../../../string-format/src/acronyms.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n/**\n * A running list of common acronyms and their meanings.\n *\n * @remarks\n * This list is not exhaustive and may be updated over time.\n */\nexport const ACRONYMS: Record<\n string,\n { description: string; display?: string }\n> = {\n \"2D\": { description: \"Two-Dimensional\", display: \"2d\" },\n \"3D\": { description: \"Three-Dimensional\", display: \"3d\" },\n \"4D\": { description: \"Four-Dimensional\", display: \"4d\" },\n \"5G\": { description: \"Fifth Generation (mobile networks)\" },\n \"6G\": { description: \"Sixth Generation (mobile networks)\" },\n \"7G\": { description: \"Seventh Generation (mobile networks)\" },\n \"8G\": { description: \"Eighth Generation (mobile networks)\" },\n ACID: { description: \"Atomicity, Consistency, Isolation, Durability\" },\n AITA: { description: \"Am I The Asshole\" },\n AES: { description: \"Advanced Encryption Standard\" },\n AI: { description: \"Artificial Intelligence\" },\n AJAX: { description: \"Asynchronous JavaScript and XML\" },\n API: { description: \"Application Programming Interface\" },\n AR: { description: \"Augmented Reality\" },\n ASCII: {\n description: \"American Standard Code for Information Interchange\"\n },\n ATF: { description: \"Bureau of Alcohol, Tobacco, Firearms and Explosives\" },\n ATM: { description: \"Automated Teller Machine\" },\n B2B: { description: \"Business to Business\" },\n B2C: { description: \"Business to Consumer\" },\n BATFE: {\n description: \"Bureau of Alcohol, Tobacco, Firearms and Explosives\"\n },\n BFF: { description: \"Best Friends Forever\" },\n BFFS: { description: \"Best Friends Forever (plural)\" },\n BI: { description: \"Business Intelligence\" },\n BIOS: { description: \"Basic Input/Output System\" },\n BGP: { description: \"Border Gateway Protocol\" },\n BOM: { description: \"Bill of Materials / Byte Order Mark\" },\n BSON: { description: \"Binary JSON\" },\n BYOD: { description: \"Bring Your Own Device\" },\n C2C: { description: \"Consumer to Consumer\" },\n CAGR: { description: \"Compound Annual Growth Rate\" },\n CAPTCHA: {\n description:\n \"Completely Automated Public Turing test to tell Computers and Humans Apart\"\n },\n CCTV: { description: \"Closed-Circuit Television\" },\n CD: { description: \"Continuous Delivery / Compact Disc\" },\n CDN: { description: \"Content Delivery Network\" },\n CDP: { description: \"Customer Data Platform\" },\n CDT: { description: \"Central Daylight Time\" },\n CIA: { description: \"Central Intelligence Agency\" },\n CI: { description: \"Continuous Integration\" },\n \"CI/CD\": { description: \"Continuous Integration/Continuous Delivery\" },\n CIAM: { description: \"Customer Identity and Access Management\" },\n CICD: {\n description: \"Continuous Integration Continuous Delivery\",\n display: \"CI/CD\"\n },\n CLI: { description: \"Command Line Interface\" },\n CMDB: { description: \"Configuration Management Database\" },\n CORS: { description: \"Cross-Origin Resource Sharing\" },\n CPA: { description: \"Certified Public Accountant\" },\n CPU: { description: \"Central Processing Unit\" },\n CRUD: { description: \"Create, Read, Update, Delete\" },\n CSR: {\n description: \"Certificate Signing Request / Corporate Social Responsibility\"\n },\n CSS: { description: \"Cascading Style Sheets\" },\n CST: { description: \"Central Standard Time\" },\n CTA: { description: \"Call To Action\" },\n CWD: { description: \"Current Working Directory\" },\n CX: { description: \"Customer Experience\" },\n DAG: { description: \"Directed Acyclic Graph\" },\n DBMS: { description: \"Database Management System\" },\n DDOS: { description: \"Distributed Denial of Service\", display: \"DDoS\" },\n DEA: { description: \"Drug Enforcement Administration\" },\n DEVENV: { description: \"Devenv\", display: \"Devenv\" },\n DEVOPS: { description: \"Development Operations\", display: \"DevOps\" },\n DHS: { description: \"Department of Homeland Security\" },\n DEST: { description: \"Destination\" },\n DESTDIR: { description: \"Destination Directory\" },\n DESTPATH: { description: \"Destination Path\" },\n DIRENV: { description: \"DirEnv\", display: \"DirEnv\" },\n DNC: { description: \"Democratic National Committee / Do Not Call\" },\n DNS: { description: \"Domain Name System\" },\n DNSSEC: { description: \"Domain Name System Security Extensions\" },\n DOD: { description: \"Department of Defense\", display: \"DoD\" },\n DOJ: { description: \"Department of Justice\", display: \"DoJ\" },\n DOM: { description: \"Document Object Model\" },\n DOT: { description: \"Department of Transportation\", display: \"DoT\" },\n DOTENV: { description: \"Dotenv (.env)\", display: \"Dotenv\" },\n DR: { description: \"Disaster Recovery\" },\n DRM: { description: \"Digital Rights Management\" },\n DSN: { description: \"Data Source Name\" },\n DWH: { description: \"Data Warehouse\" },\n E2E: { description: \"End to End\" },\n EAI: { description: \"Enterprise Application Integration\" },\n EDT: { description: \"Eastern Daylight Time\" },\n EEA: { description: \"European Economic Area\" },\n EKS: { description: \"Elastic Kubernetes Service\" },\n EOF: { description: \"End Of File\" },\n EOD: { description: \"End Of Day / Explosive Ordnance Disposal\" },\n EPA: { description: \"Environmental Protection Agency\" },\n ER: { description: \"Emergency Room / Entity Relationship\" },\n EST: { description: \"Eastern Standard Time\" },\n ETC: { description: \"Et Cetera\" },\n ETL: { description: \"Extract, Transform, Load\" },\n EULA: { description: \"End User License Agreement\" },\n FAAS: { description: \"Function as a Service\", display: \"FaaS\" },\n FAQ: { description: \"Frequently Asked Questions\", display: \"FAQs\" },\n FAQS: { description: \"Frequently Asked Questions\" },\n FBI: { description: \"Federal Bureau of Investigation\" },\n FCC: { description: \"Federal Communications Commission\" },\n FDA: { description: \"Food and Drug Administration\" },\n FIDO: { description: \"Fast IDentity Online\" },\n FLOTUS: { description: \"First Lady of the United States\" },\n FQDN: { description: \"Fully Qualified Domain Name\" },\n FTC: { description: \"Federal Trade Commission\" },\n FTP: { description: \"File Transfer Protocol\" },\n GC: { description: \"Garbage Collection\" },\n GCP: { description: \"Google Cloud Platform\" },\n GDPR: { description: \"General Data Protection Regulation\" },\n GMT: { description: \"Greenwich Mean Time\" },\n GOP: { description: \"Grand Old Party\" },\n GPU: { description: \"Graphics Processing Unit\" },\n GUID: { description: \"Globally Unique Identifier\" },\n GUI: { description: \"Graphical User Interface\" },\n GZIP: { description: \"GNU Zip\" },\n HCI: {\n description: \"Human Computer Interaction / Hyper-Converged Infrastructure\"\n },\n HDD: { description: \"Hard Disk Drive\" },\n HDFS: { description: \"Hadoop Distributed File System\" },\n HHS: { description: \"Health and Human Services\" },\n HIPAA: {\n description: \"Health Insurance Portability and Accountability Act\"\n },\n HMAC: { description: \"Hash-based Message Authentication Code\" },\n HOTP: { description: \"HMAC-based One-Time Password\" },\n HSM: { description: \"Hardware Security Module\" },\n HTML: { description: \"HyperText Markup Language\" },\n HTTP: { description: \"HyperText Transfer Protocol (HTTP)\" },\n \"HTTP/2\": { description: \"HyperText Transfer Protocol Version 2 (HTTP/2)\" },\n \"HTTP/2.0\": {\n description: \"HyperText Transfer Protocol Version 2 (HTTP/2)\",\n display: \"HTTP2\"\n },\n \"HTTP/3\": { description: \"HyperText Transfer Protocol Version 3 (HTTP/3)\" },\n \"HTTP/3.0\": {\n description: \"HyperText Transfer Protocol Version 3 (HTTP/3)\",\n display: \"HTTP3\"\n },\n HTTP2: {\n description: \"HyperText Transfer Protocol Version 2 (HTTP/2)\",\n display: \"HTTP2\"\n },\n \"HTTP2.0\": {\n description: \"HyperText Transfer Protocol Version 2 (HTTP/2)\",\n display: \"HTTP2\"\n },\n HTTP3: {\n description: \"HyperText Transfer Protocol Version 3 (HTTP/3)\",\n display: \"HTTP3\"\n },\n \"HTTP3.0\": {\n description: \"HyperText Transfer Protocol Version 3 (HTTP/3)\",\n display: \"HTTP3\"\n },\n HTTPS: { description: \"HyperText Transfer Protocol Secure (HTTPS)\" },\n \"HTTPS/2\": {\n description: \"HyperText Transfer Protocol Secure Version 2 (HTTPS/2)\"\n },\n \"HTTPS/2.0\": {\n description: \"HyperText Transfer Protocol Secure Version 2 (HTTPS/2)\",\n display: \"HTTPS2\"\n },\n \"HTTPS/3\": {\n description: \"HyperText Transfer Protocol Secure Version 3 (HTTPS/3)\"\n },\n \"HTTPS/3.0\": {\n description: \"HyperText Transfer Protocol Secure Version 3 (HTTPS/3)\",\n display: \"HTTPS3\"\n },\n HTTPS2: {\n description: \"HyperText Transfer Protocol Secure Version 2 (HTTPS/2)\",\n display: \"HTTPS2\"\n },\n \"HTTPS2.0\": {\n description: \"HyperText Transfer Protocol Secure Version 2 (HTTPS/2)\",\n display: \"HTTPS2\"\n },\n HTTPS3: {\n description: \"HyperText Transfer Protocol Secure Version 3 (HTTPS/3)\",\n display: \"HTTPS3\"\n },\n \"HTTPS3.0\": {\n description: \"HyperText Transfer Protocol Secure Version 3 (HTTPS/3)\",\n display: \"HTTPS3\"\n },\n IAAS: { description: \"Infrastructure as a Service\", display: \"IaaS\" },\n IAM: { description: \"Identity and Access Management\" },\n IAMM: { description: \"Identity and Access Management and Monitoring\" },\n IAMT: { description: \"Identity and Access Management Tool\" },\n ID: { description: \"Identifier\", display: \"Id\" },\n IFTTT: { description: \"If This Then That\" },\n IMAP: { description: \"Internet Message Access Protocol\" },\n IO: { description: \"Input/Output\" },\n IP: { description: \"Internet Protocol\" },\n IPFS: { description: \"InterPlanetary File System\" },\n IPS: { description: \"Intrusion Prevention System\" },\n ISO: { description: \"International Organization for Standardization\" },\n IQ: { description: \"Intelligence Quotient\", display: \"IQ\" },\n IOT: { description: \"Internet of Things\", display: \"IoT\" },\n JSON: { description: \"JavaScript Object Notation\" },\n JSONP: { description: \"JSON with Padding\" },\n JWT: { description: \"JSON Web Token\" },\n K8S: { description: \"Kubernetes\", display: \"K8s\" },\n KMS: { description: \"Key Management Service\" },\n KPI: { description: \"Key Performance Indicator\" },\n KV: { description: \"Key Value\" },\n LAN: { description: \"Local Area Network\" },\n LHS: { description: \"Left Hand Side\" },\n LPGA: { description: \"Ladies Professional Golf Association\" },\n LXC: { description: \"Linux Containers\" },\n MDT: { description: \"Mountain Daylight Time\" },\n MFA: { description: \"Multi-Factor Authentication\" },\n ML: { description: \"Machine Learning\" },\n MLB: { description: \"Major League Baseball\" },\n MLOps: { description: \"Machine Learning Operations\" },\n MPA: { description: \"Multi-Page Application\" },\n MST: { description: \"Mountain Standard Time\" },\n MVC: { description: \"Model View Controller\" },\n MVP: { description: \"Minimum Viable Product / Most Valuable Player\" },\n NAIA: { description: \"National Association of Intercollegiate Athletics\" },\n NAS: { description: \"Network Attached Storage\" },\n NASA: { description: \"National Aeronautics and Space Administration\" },\n NASCAR: { description: \"National Association for Stock Car Auto Racing\" },\n NAT: { description: \"Network Address Translation\" },\n NBA: { description: \"National Basketball Association\" },\n NCAA: { description: \"National Collegiate Athletic Association\" },\n NDA: { description: \"Non-Disclosure Agreement\" },\n NFS: { description: \"Network File System\" },\n NHL: { description: \"National Hockey League\" },\n NIST: { description: \"National Institute of Standards and Technology\" },\n NLP: { description: \"Natural Language Processing\" },\n NPS: { description: \"Net Promoter Score\" },\n NRA: { description: \"National Rifle Association\" },\n NSFW: { description: \"Not Safe For Work\" },\n NX: { description: \"Nx\", display: \"Nx\" },\n OCR: { description: \"Optical Character Recognition\" },\n OEM: { description: \"Original Equipment Manufacturer\" },\n OKR: { description: \"Objectives and Key Results\" },\n OLAP: { description: \"Online Analytical Processing\" },\n OLTP: { description: \"Online Transaction Processing\" },\n OOP: { description: \"Object Oriented Programming\" },\n ORM: { description: \"Object Relational Mapping\" },\n OS: { description: \"Operating System\" },\n OSINT: { description: \"Open Source Intelligence\" },\n OSS: { description: \"Open Source Software\" },\n OTP: { description: \"One-Time Password\" },\n P2P: { description: \"Peer to Peer\" },\n PAAS: { description: \"Platform as a Service\", display: \"PaaS\" },\n PCI: { description: \"Payment Card Industry\" },\n PDP: { description: \"Policy Decision Point / Product Detail Page\" },\n PDT: { description: \"Pacific Daylight Time\" },\n PGA: { description: \"Professional Golfers' Association\" },\n POTUS: { description: \"President of the United States\" },\n PP: { description: \"Pages / PayPal / Percentage Points\" },\n PST: { description: \"Pacific Standard Time\" },\n PTO: { description: \"Paid Time Off / Power Take-Off\" },\n PKI: { description: \"Public Key Infrastructure\" },\n PWA: { description: \"Progressive Web App\" },\n PX: { description: \"Pixel\" },\n QA: { description: \"Quality Assurance\" },\n R2: { description: \"R2\" },\n RAID: { description: \"Redundant Array of Independent Disks\" },\n RAM: { description: \"Random Access Memory\" },\n RDS: { description: \"Relational Database Service\" },\n REST: { description: \"Representational State Transfer\" },\n RHS: { description: \"Right Hand Side\" },\n ROI: { description: \"Return on Investment\" },\n RPC: { description: \"Remote Procedure Call\" },\n RPA: { description: \"Robotic Process Automation\" },\n RSC: { description: \"React Server Components\" },\n RSS: { description: \"Really Simple Syndication\" },\n RUM: { description: \"Real User Monitoring\" },\n S3: { description: \"Simple Storage Service (S3)\" },\n SAN: { description: \"Storage Area Network\" },\n SASE: { description: \"Secure Access Service Edge\" },\n SCOTUS: { description: \"Supreme Court of the United States\" },\n SDLC: { description: \"Software Development Life Cycle\" },\n SDK: { description: \"Software Development Kit\" },\n SEC: { description: \"Securities and Exchange Commission\" },\n SEO: { description: \"Search Engine Optimization\" },\n SFTP: {\n description: \"SSH File Transfer Protocol / Secure File Transfer Protocol\"\n },\n SIEM: { description: \"Security Information and Event Management\" },\n SLA: { description: \"Service Level Agreement\" },\n SMB: { description: \"Server Message Block / Small and Medium Business\" },\n SMTP: { description: \"Simple Mail Transfer Protocol\" },\n SOAP: { description: \"Simple Object Access Protocol\" },\n SOA: { description: \"Service Oriented Architecture\" },\n SOC: { description: \"Security Operations Center / System on Chip\" },\n SPA: { description: \"Single Page Application\" },\n SPDY: { description: 'Speedy (pronounced \"SPeeDY\")' },\n SPF: { description: \"Sender Policy Framework\" },\n SQL: { description: \"Structured Query Language\" },\n SRC: { description: \"Source\" },\n SRCDIR: { description: \"Source Directory\" },\n SRCPATH: { description: \"Source Path\" },\n SRV: { description: \"Service\" },\n SRE: { description: \"Site Reliability Engineering\" },\n SSH: { description: \"Secure Shell\" },\n SSDL: { description: \"Secure Software Development Lifecycle\" },\n SSG: { description: \"Static Site Generation\" },\n SSR: { description: \"Server Side Rendering\" },\n SSO: { description: \"Single Sign-On\" },\n SSL: { description: \"Secure Sockets Layer\" },\n TDD: { description: \"Test Driven Development\" },\n TLD: { description: \"Top Level Domain\" },\n TLS: { description: \"Transport Layer Security\" },\n \"TLS1.3\": { description: \"Transport Layer Security 1.3\" },\n TOR: { description: \"The Onion Router\" },\n TOTP: { description: \"Time-based One-Time Password\" },\n TRPC: { description: \"TypeScript Remote Procedure Call\" },\n TSA: { description: \"Transportation Security Administration\" },\n TSC: { description: \"TypeScript Compiler\" },\n TTL: { description: \"Time To Live\" },\n UDP: { description: \"User Datagram Protocol\" },\n UI: { description: \"User Interface\" },\n UID: { description: \"Unique Identifier\" },\n URI: { description: \"Uniform Resource Identifier\" },\n URL: { description: \"Uniform Resource Locator\" },\n USOPC: { description: \"United States Olympic & Paralympic Committee\" },\n USPS: { description: \"United States Postal Service\" },\n USTA: { description: \"United States Tennis Association\" },\n UTF: { description: \"Unicode Transformation Format\" },\n UTC: { description: \"Coordinated Universal Time\" },\n UUID: { description: \"Universally Unique Identifier\" },\n UX: { description: \"User Experience\" },\n VM: { description: \"Virtual Machine\" },\n VLAN: { description: \"Virtual Local Area Network\" },\n VPN: { description: \"Virtual Private Network\" },\n VPPA: { description: \"Video Privacy Protection Act\" },\n VR: { description: \"Virtual Reality\" },\n WAF: { description: \"Web Application Firewall\" },\n WAN: { description: \"Wide Area Network\" },\n WNBA: { description: \"Women's National Basketball Association\" },\n WLAN: { description: \"Wireless Local Area Network\" },\n WPA: { description: \"Wi-Fi Protected Access\" },\n WPA2: { description: \"Wi-Fi Protected Access II\" },\n WPA3: { description: \"Wi-Fi Protected Access III\" },\n WWW: { description: \"World Wide Web\" },\n WYSIWYG: { description: \"What You See Is What You Get\" },\n XACML: { description: \"eXtensible Access Control Markup Language\" },\n XDG: { description: \"Cross-Desktop Group\" },\n XML: { description: \"eXtensible Markup Language\" },\n XSRF: { description: \"Cross-Site Request Forgery\" },\n XSS: { description: \"Cross-Site Scripting\" },\n XR: { description: \"Extended Reality\" },\n YAML: { description: \"YAML Ain't Markup Language\" },\n YMCA: { description: \"Young Men's Christian Association\" },\n YWCA: { description: \"Young Women's Christian Association\" },\n ZTA: { description: \"Zero Trust Architecture\" }\n} as const;\n\nexport const ACRONYM_DISPLAY: Record<string, string> = Object.fromEntries(\n Object.entries(ACRONYMS).map(([key, value]) => [key, value.display ?? key])\n);\n\nexport const ACRONYM_DESCRIPTION: Record<string, string> = Object.fromEntries(\n Object.entries(ACRONYMS).map(([key, value]) => [key, value.description])\n);\n\nexport const ACRONYM_LIST: string[] = Object.keys(ACRONYMS);\n"],"mappings":";;;;;;;AAwBA,MAAaA,WAGT;CACF,MAAM;EAAE,aAAa;EAAmB,SAAS;EAAM;CACvD,MAAM;EAAE,aAAa;EAAqB,SAAS;EAAM;CACzD,MAAM;EAAE,aAAa;EAAoB,SAAS;EAAM;CACxD,MAAM,EAAE,aAAa,sCAAsC;CAC3D,MAAM,EAAE,aAAa,sCAAsC;CAC3D,MAAM,EAAE,aAAa,wCAAwC;CAC7D,MAAM,EAAE,aAAa,uCAAuC;CAC5D,MAAM,EAAE,aAAa,iDAAiD;CACtE,MAAM,EAAE,aAAa,oBAAoB;CACzC,KAAK,EAAE,aAAa,gCAAgC;CACpD,IAAI,EAAE,aAAa,2BAA2B;CAC9C,MAAM,EAAE,aAAa,mCAAmC;CACxD,KAAK,EAAE,aAAa,qCAAqC;CACzD,IAAI,EAAE,aAAa,qBAAqB;CACxC,OAAO,EACL,aAAa,sDACd;CACD,KAAK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,"file":"acronyms.mjs","names":[],"sources":["../../../../../string-format/src/acronyms.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n/**\n * A running list of common acronyms and their meanings.\n *\n * @remarks\n * This list is not exhaustive and may be updated over time.\n */\nexport const ACRONYMS: Record<\n string,\n { description: string; display?: string }\n> = {\n \"2D\": { description: \"Two-Dimensional\", display: \"2d\" },\n \"3D\": { description: \"Three-Dimensional\", display: \"3d\" },\n \"4D\": { description: \"Four-Dimensional\", display: \"4d\" },\n \"5G\": { description: \"Fifth Generation (mobile networks)\" },\n \"6G\": { description: \"Sixth Generation (mobile networks)\" },\n \"7G\": { description: \"Seventh Generation (mobile networks)\" },\n \"8G\": { description: \"Eighth Generation (mobile networks)\" },\n ACID: { description: \"Atomicity, Consistency, Isolation, Durability\" },\n AITA: { description: \"Am I The Asshole\" },\n AES: { description: \"Advanced Encryption Standard\" },\n AI: { description: \"Artificial Intelligence\" },\n AJAX: { description: \"Asynchronous JavaScript and XML\" },\n API: { description: \"Application Programming Interface\" },\n AR: { description: \"Augmented Reality\" },\n ASCII: {\n description: \"American Standard Code for Information Interchange\"\n },\n ATF: { description: \"Bureau of Alcohol, Tobacco, Firearms and Explosives\" },\n ATM: { description: \"Automated Teller Machine\" },\n B2B: { description: \"Business to Business\" },\n B2C: { description: \"Business to Consumer\" },\n BATFE: {\n description: \"Bureau of Alcohol, Tobacco, Firearms and Explosives\"\n },\n BFF: { description: \"Best Friends Forever\" },\n BFFS: { description: \"Best Friends Forever (plural)\" },\n BI: { description: \"Business Intelligence\" },\n BIOS: { description: \"Basic Input/Output System\" },\n BGP: { description: \"Border Gateway Protocol\" },\n BOM: { description: \"Bill of Materials / Byte Order Mark\" },\n BSON: { description: \"Binary JSON\" },\n BYOD: { description: \"Bring Your Own Device\" },\n C2C: { description: \"Consumer to Consumer\" },\n CAGR: { description: \"Compound Annual Growth Rate\" },\n CAPTCHA: {\n description:\n \"Completely Automated Public Turing test to tell Computers and Humans Apart\"\n },\n CCTV: { description: \"Closed-Circuit Television\" },\n CD: { description: \"Continuous Delivery / Compact Disc\" },\n CDN: { description: \"Content Delivery Network\" },\n CDP: { description: \"Customer Data Platform\" },\n CDT: { description: \"Central Daylight Time\" },\n CIA: { description: \"Central Intelligence Agency\" },\n CI: { description: \"Continuous Integration\" },\n \"CI/CD\": { description: \"Continuous Integration/Continuous Delivery\" },\n CIAM: { description: \"Customer Identity and Access Management\" },\n CICD: {\n description: \"Continuous Integration Continuous Delivery\",\n display: \"CI/CD\"\n },\n CLI: { description: \"Command Line Interface\" },\n CMDB: { description: \"Configuration Management Database\" },\n CORS: { description: \"Cross-Origin Resource Sharing\" },\n CPA: { description: \"Certified Public Accountant\" },\n CPU: { description: \"Central Processing Unit\" },\n CRUD: { description: \"Create, Read, Update, Delete\" },\n CSR: {\n description: \"Certificate Signing Request / Corporate Social Responsibility\"\n },\n CSS: { description: \"Cascading Style Sheets\" },\n CST: { description: \"Central Standard Time\" },\n CTA: { description: \"Call To Action\" },\n CWD: { description: \"Current Working Directory\" },\n CX: { description: \"Customer Experience\" },\n DAG: { description: \"Directed Acyclic Graph\" },\n DBMS: { description: \"Database Management System\" },\n DDOS: { description: \"Distributed Denial of Service\", display: \"DDoS\" },\n DEA: { description: \"Drug Enforcement Administration\" },\n DEVENV: { description: \"Devenv\", display: \"Devenv\" },\n DEVOPS: { description: \"Development Operations\", display: \"DevOps\" },\n DHS: { description: \"Department of Homeland Security\" },\n DEST: { description: \"Destination\" },\n DESTDIR: { description: \"Destination Directory\" },\n DESTPATH: { description: \"Destination Path\" },\n DIRENV: { description: \"DirEnv\", display: \"DirEnv\" },\n DNC: { description: \"Democratic National Committee / Do Not Call\" },\n DNS: { description: \"Domain Name System\" },\n DNSSEC: { description: \"Domain Name System Security Extensions\" },\n DOD: { description: \"Department of Defense\", display: \"DoD\" },\n DOJ: { description: \"Department of Justice\", display: \"DoJ\" },\n DOM: { description: \"Document Object Model\" },\n DOT: { description: \"Department of Transportation\", display: \"DoT\" },\n DOTENV: { description: \"Dotenv (.env)\", display: \"Dotenv\" },\n DR: { description: \"Disaster Recovery\" },\n DRM: { description: \"Digital Rights Management\" },\n DSN: { description: \"Data Source Name\" },\n DWH: { description: \"Data Warehouse\" },\n E2E: { description: \"End to End\" },\n EAI: { description: \"Enterprise Application Integration\" },\n EDT: { description: \"Eastern Daylight Time\" },\n EEA: { description: \"European Economic Area\" },\n EKS: { description: \"Elastic Kubernetes Service\" },\n EOF: { description: \"End Of File\" },\n EOD: { description: \"End Of Day / Explosive Ordnance Disposal\" },\n EPA: { description: \"Environmental Protection Agency\" },\n ER: { description: \"Emergency Room / Entity Relationship\" },\n EST: { description: \"Eastern Standard Time\" },\n ETC: { description: \"Et Cetera\" },\n ETL: { description: \"Extract, Transform, Load\" },\n EULA: { description: \"End User License Agreement\" },\n FAAS: { description: \"Function as a Service\", display: \"FaaS\" },\n FAQ: { description: \"Frequently Asked Questions\", display: \"FAQs\" },\n FAQS: { description: \"Frequently Asked Questions\" },\n FBI: { description: \"Federal Bureau of Investigation\" },\n FCC: { description: \"Federal Communications Commission\" },\n FDA: { description: \"Food and Drug Administration\" },\n FIDO: { description: \"Fast IDentity Online\" },\n FLOTUS: { description: \"First Lady of the United States\" },\n FQDN: { description: \"Fully Qualified Domain Name\" },\n FTC: { description: \"Federal Trade Commission\" },\n FTP: { description: \"File Transfer Protocol\" },\n GC: { description: \"Garbage Collection\" },\n GCP: { description: \"Google Cloud Platform\" },\n GDPR: { description: \"General Data Protection Regulation\" },\n GMT: { description: \"Greenwich Mean Time\" },\n GOP: { description: \"Grand Old Party\" },\n GPU: { description: \"Graphics Processing Unit\" },\n GUID: { description: \"Globally Unique Identifier\" },\n GUI: { description: \"Graphical User Interface\" },\n GZIP: { description: \"GNU Zip\" },\n HCI: {\n description: \"Human Computer Interaction / Hyper-Converged Infrastructure\"\n },\n HDD: { description: \"Hard Disk Drive\" },\n HDFS: { description: \"Hadoop Distributed File System\" },\n HHS: { description: \"Health and Human Services\" },\n HIPAA: {\n description: \"Health Insurance Portability and Accountability Act\"\n },\n HMAC: { description: \"Hash-based Message Authentication Code\" },\n HOTP: { description: \"HMAC-based One-Time Password\" },\n HSM: { description: \"Hardware Security Module\" },\n HTML: { description: \"HyperText Markup Language\" },\n HTTP: { description: \"HyperText Transfer Protocol (HTTP)\" },\n \"HTTP/2\": { description: \"HyperText Transfer Protocol Version 2 (HTTP/2)\" },\n \"HTTP/2.0\": {\n description: \"HyperText Transfer Protocol Version 2 (HTTP/2)\",\n display: \"HTTP2\"\n },\n \"HTTP/3\": { description: \"HyperText Transfer Protocol Version 3 (HTTP/3)\" },\n \"HTTP/3.0\": {\n description: \"HyperText Transfer Protocol Version 3 (HTTP/3)\",\n display: \"HTTP3\"\n },\n HTTP2: {\n description: \"HyperText Transfer Protocol Version 2 (HTTP/2)\",\n display: \"HTTP2\"\n },\n \"HTTP2.0\": {\n description: \"HyperText Transfer Protocol Version 2 (HTTP/2)\",\n display: \"HTTP2\"\n },\n HTTP3: {\n description: \"HyperText Transfer Protocol Version 3 (HTTP/3)\",\n display: \"HTTP3\"\n },\n \"HTTP3.0\": {\n description: \"HyperText Transfer Protocol Version 3 (HTTP/3)\",\n display: \"HTTP3\"\n },\n HTTPS: { description: \"HyperText Transfer Protocol Secure (HTTPS)\" },\n \"HTTPS/2\": {\n description: \"HyperText Transfer Protocol Secure Version 2 (HTTPS/2)\"\n },\n \"HTTPS/2.0\": {\n description: \"HyperText Transfer Protocol Secure Version 2 (HTTPS/2)\",\n display: \"HTTPS2\"\n },\n \"HTTPS/3\": {\n description: \"HyperText Transfer Protocol Secure Version 3 (HTTPS/3)\"\n },\n \"HTTPS/3.0\": {\n description: \"HyperText Transfer Protocol Secure Version 3 (HTTPS/3)\",\n display: \"HTTPS3\"\n },\n HTTPS2: {\n description: \"HyperText Transfer Protocol Secure Version 2 (HTTPS/2)\",\n display: \"HTTPS2\"\n },\n \"HTTPS2.0\": {\n description: \"HyperText Transfer Protocol Secure Version 2 (HTTPS/2)\",\n display: \"HTTPS2\"\n },\n HTTPS3: {\n description: \"HyperText Transfer Protocol Secure Version 3 (HTTPS/3)\",\n display: \"HTTPS3\"\n },\n \"HTTPS3.0\": {\n description: \"HyperText Transfer Protocol Secure Version 3 (HTTPS/3)\",\n display: \"HTTPS3\"\n },\n IAAS: { description: \"Infrastructure as a Service\", display: \"IaaS\" },\n IAM: { description: \"Identity and Access Management\" },\n IAMM: { description: \"Identity and Access Management and Monitoring\" },\n IAMT: { description: \"Identity and Access Management Tool\" },\n ID: { description: \"Identifier\", display: \"Id\" },\n IFTTT: { description: \"If This Then That\" },\n IMAP: { description: \"Internet Message Access Protocol\" },\n IO: { description: \"Input/Output\" },\n IP: { description: \"Internet Protocol\" },\n IPFS: { description: \"InterPlanetary File System\" },\n IPS: { description: \"Intrusion Prevention System\" },\n ISO: { description: \"International Organization for Standardization\" },\n IQ: { description: \"Intelligence Quotient\", display: \"IQ\" },\n IOT: { description: \"Internet of Things\", display: \"IoT\" },\n JSON: { description: \"JavaScript Object Notation\" },\n JSONP: { description: \"JSON with Padding\" },\n JWT: { description: \"JSON Web Token\" },\n K8S: { description: \"Kubernetes\", display: \"K8s\" },\n KMS: { description: \"Key Management Service\" },\n KPI: { description: \"Key Performance Indicator\" },\n KV: { description: \"Key Value\" },\n LAN: { description: \"Local Area Network\" },\n LHS: { description: \"Left Hand Side\" },\n LPGA: { description: \"Ladies Professional Golf Association\" },\n LXC: { description: \"Linux Containers\" },\n MDT: { description: \"Mountain Daylight Time\" },\n MFA: { description: \"Multi-Factor Authentication\" },\n ML: { description: \"Machine Learning\" },\n MLB: { description: \"Major League Baseball\" },\n MLOps: { description: \"Machine Learning Operations\" },\n MPA: { description: \"Multi-Page Application\" },\n MST: { description: \"Mountain Standard Time\" },\n MVC: { description: \"Model View Controller\" },\n MVP: { description: \"Minimum Viable Product / Most Valuable Player\" },\n NAIA: { description: \"National Association of Intercollegiate Athletics\" },\n NAS: { description: \"Network Attached Storage\" },\n NASA: { description: \"National Aeronautics and Space Administration\" },\n NASCAR: { description: \"National Association for Stock Car Auto Racing\" },\n NAT: { description: \"Network Address Translation\" },\n NBA: { description: \"National Basketball Association\" },\n NCAA: { description: \"National Collegiate Athletic Association\" },\n NDA: { description: \"Non-Disclosure Agreement\" },\n NFS: { description: \"Network File System\" },\n NHL: { description: \"National Hockey League\" },\n NIST: { description: \"National Institute of Standards and Technology\" },\n NLP: { description: \"Natural Language Processing\" },\n NPS: { description: \"Net Promoter Score\" },\n NRA: { description: \"National Rifle Association\" },\n NSFW: { description: \"Not Safe For Work\" },\n NX: { description: \"Nx\", display: \"Nx\" },\n OCR: { description: \"Optical Character Recognition\" },\n OEM: { description: \"Original Equipment Manufacturer\" },\n OKR: { description: \"Objectives and Key Results\" },\n OLAP: { description: \"Online Analytical Processing\" },\n OLTP: { description: \"Online Transaction Processing\" },\n OOP: { description: \"Object Oriented Programming\" },\n ORM: { description: \"Object Relational Mapping\" },\n OS: { description: \"Operating System\" },\n OSINT: { description: \"Open Source Intelligence\" },\n OSS: { description: \"Open Source Software\" },\n OTP: { description: \"One-Time Password\" },\n P2P: { description: \"Peer to Peer\" },\n PAAS: { description: \"Platform as a Service\", display: \"PaaS\" },\n PCI: { description: \"Payment Card Industry\" },\n PDP: { description: \"Policy Decision Point / Product Detail Page\" },\n PDT: { description: \"Pacific Daylight Time\" },\n PGA: { description: \"Professional Golfers' Association\" },\n POTUS: { description: \"President of the United States\" },\n PP: { description: \"Pages / PayPal / Percentage Points\" },\n PST: { description: \"Pacific Standard Time\" },\n PTO: { description: \"Paid Time Off / Power Take-Off\" },\n PKI: { description: \"Public Key Infrastructure\" },\n PWA: { description: \"Progressive Web App\" },\n PX: { description: \"Pixel\" },\n QA: { description: \"Quality Assurance\" },\n R2: { description: \"R2\" },\n RAID: { description: \"Redundant Array of Independent Disks\" },\n RAM: { description: \"Random Access Memory\" },\n RDS: { description: \"Relational Database Service\" },\n REST: { description: \"Representational State Transfer\" },\n RHS: { description: \"Right Hand Side\" },\n ROI: { description: \"Return on Investment\" },\n RPC: { description: \"Remote Procedure Call\" },\n RPA: { description: \"Robotic Process Automation\" },\n RSC: { description: \"React Server Components\" },\n RSS: { description: \"Really Simple Syndication\" },\n RUM: { description: \"Real User Monitoring\" },\n S3: { description: \"Simple Storage Service (S3)\" },\n SAN: { description: \"Storage Area Network\" },\n SASE: { description: \"Secure Access Service Edge\" },\n SCOTUS: { description: \"Supreme Court of the United States\" },\n SDLC: { description: \"Software Development Life Cycle\" },\n SDK: { description: \"Software Development Kit\" },\n SEC: { description: \"Securities and Exchange Commission\" },\n SEO: { description: \"Search Engine Optimization\" },\n SFTP: {\n description: \"SSH File Transfer Protocol / Secure File Transfer Protocol\"\n },\n SIEM: { description: \"Security Information and Event Management\" },\n SLA: { description: \"Service Level Agreement\" },\n SMB: { description: \"Server Message Block / Small and Medium Business\" },\n SMTP: { description: \"Simple Mail Transfer Protocol\" },\n SOAP: { description: \"Simple Object Access Protocol\" },\n SOA: { description: \"Service Oriented Architecture\" },\n SOC: { description: \"Security Operations Center / System on Chip\" },\n SPA: { description: \"Single Page Application\" },\n SPDY: { description: 'Speedy (pronounced \"SPeeDY\")' },\n SPF: { description: \"Sender Policy Framework\" },\n SQL: { description: \"Structured Query Language\" },\n SRC: { description: \"Source\" },\n SRCDIR: { description: \"Source Directory\" },\n SRCPATH: { description: \"Source Path\" },\n SRV: { description: \"Service\" },\n SRE: { description: \"Site Reliability Engineering\" },\n SSH: { description: \"Secure Shell\" },\n SSDL: { description: \"Secure Software Development Lifecycle\" },\n SSG: { description: \"Static Site Generation\" },\n SSR: { description: \"Server Side Rendering\" },\n SSO: { description: \"Single Sign-On\" },\n SSL: { description: \"Secure Sockets Layer\" },\n TDD: { description: \"Test Driven Development\" },\n TLD: { description: \"Top Level Domain\" },\n TLS: { description: \"Transport Layer Security\" },\n \"TLS1.3\": { description: \"Transport Layer Security 1.3\" },\n TOR: { description: \"The Onion Router\" },\n TOTP: { description: \"Time-based One-Time Password\" },\n TRPC: { description: \"TypeScript Remote Procedure Call\" },\n TSA: { description: \"Transportation Security Administration\" },\n TSC: { description: \"TypeScript Compiler\" },\n TTL: { description: \"Time To Live\" },\n UDP: { description: \"User Datagram Protocol\" },\n UI: { description: \"User Interface\" },\n UID: { description: \"Unique Identifier\" },\n URI: { description: \"Uniform Resource Identifier\" },\n URL: { description: \"Uniform Resource Locator\" },\n USOPC: { description: \"United States Olympic & Paralympic Committee\" },\n USPS: { description: \"United States Postal Service\" },\n USTA: { description: \"United States Tennis Association\" },\n UTF: { description: \"Unicode Transformation Format\" },\n UTC: { description: \"Coordinated Universal Time\" },\n UUID: { description: \"Universally Unique Identifier\" },\n UX: { description: \"User Experience\" },\n VM: { description: \"Virtual Machine\" },\n VLAN: { description: \"Virtual Local Area Network\" },\n VPN: { description: \"Virtual Private Network\" },\n VPPA: { description: \"Video Privacy Protection Act\" },\n VR: { description: \"Virtual Reality\" },\n WAF: { description: \"Web Application Firewall\" },\n WAN: { description: \"Wide Area Network\" },\n WNBA: { description: \"Women's National Basketball Association\" },\n WLAN: { description: \"Wireless Local Area Network\" },\n WPA: { description: \"Wi-Fi Protected Access\" },\n WPA2: { description: \"Wi-Fi Protected Access II\" },\n WPA3: { description: \"Wi-Fi Protected Access III\" },\n WWW: { description: \"World Wide Web\" },\n WYSIWYG: { description: \"What You See Is What You Get\" },\n XACML: { description: \"eXtensible Access Control Markup Language\" },\n XDG: { description: \"Cross-Desktop Group\" },\n XML: { description: \"eXtensible Markup Language\" },\n XSRF: { description: \"Cross-Site Request Forgery\" },\n XSS: { description: \"Cross-Site Scripting\" },\n XR: { description: \"Extended Reality\" },\n YAML: { description: \"YAML Ain't Markup Language\" },\n YMCA: { description: \"Young Men's Christian Association\" },\n YWCA: { description: \"Young Women's Christian Association\" },\n ZTA: { description: \"Zero Trust Architecture\" }\n} as const;\n\nexport const ACRONYM_DISPLAY: Record<string, string> = Object.fromEntries(\n Object.entries(ACRONYMS).map(([key, value]) => [key, value.display ?? key])\n);\n\nexport const ACRONYM_DESCRIPTION: Record<string, string> = Object.fromEntries(\n Object.entries(ACRONYMS).map(([key, value]) => [key, value.description])\n);\n\nexport const ACRONYM_LIST: string[] = Object.keys(ACRONYMS);\n"],"mappings":";;;;;;;AAwBA,MAAa,WAGT;CACF,MAAM;EAAE,aAAa;EAAmB,SAAS;EAAM;CACvD,MAAM;EAAE,aAAa;EAAqB,SAAS;EAAM;CACzD,MAAM;EAAE,aAAa;EAAoB,SAAS;EAAM;CACxD,MAAM,EAAE,aAAa,sCAAsC;CAC3D,MAAM,EAAE,aAAa,sCAAsC;CAC3D,MAAM,EAAE,aAAa,wCAAwC;CAC7D,MAAM,EAAE,aAAa,uCAAuC;CAC5D,MAAM,EAAE,aAAa,iDAAiD;CACtE,MAAM,EAAE,aAAa,oBAAoB;CACzC,KAAK,EAAE,aAAa,gCAAgC;CACpD,IAAI,EAAE,aAAa,2BAA2B;CAC9C,MAAM,EAAE,aAAa,mCAAmC;CACxD,KAAK,EAAE,aAAa,qCAAqC;CACzD,IAAI,EAAE,aAAa,qBAAqB;CACxC,OAAO,EACL,aAAa,sDACd;CACD,KAAK,EAAE,aAAa,uDAAuD;CAC3E,KAAK,EAAE,aAAa,4BAA4B;CAChD,KAAK,EAAE,aAAa,wBAAwB;CAC5C,KAAK,EAAE,aAAa,wBAAwB;CAC5C,OAAO,EACL,aAAa,uDACd;CACD,KAAK,EAAE,aAAa,wBAAwB;CAC5C,MAAM,EAAE,aAAa,iCAAiC;CACtD,IAAI,EAAE,aAAa,yBAAy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C,MAAM,EAAE,aAAa,gCAAgC;CACrD,IAAI,EAAE,aAAa,mBAAmB;CACtC,KAAK,EAAE,aAAa,4BAA4B;CAChD,KAAK,EAAE,aAAa,qBAAqB;CACzC,MAAM,EAAE,aAAa,2CAA2C;CAChE,MAAM,EAAE,aAAa,+BAA+B;CACpD,KAAK,EAAE,aAAa,0BAA0B;CAC9C,MAAM,EAAE,aAAa,6BAA6B;CAClD,MAAM,EAAE,aAAa,8BAA8B;CACnD,KAAK,EAAE,aAAa,kBAAkB;CACtC,SAAS,EAAE,aAAa,gCAAgC;CACxD,OAAO,EAAE,aAAa,6CAA6C;CACnE,KAAK,EAAE,aAAa,uBAAuB;CAC3C,KAAK,EAAE,aAAa,8BAA8B;CAClD,MAAM,EAAE,aAAa,8BAA8B;CACnD,KAAK,EAAE,aAAa,wBAAwB;CAC5C,IAAI,EAAE,aAAa,oBAAoB;CACvC,MAAM,EAAE,aAAa,8BAA8B;CACnD,MAAM,EAAE,aAAa,qCAAqC;CAC1D,MAAM,EAAE,aAAa,uCAAuC;CAC5D,KAAK,EAAE,aAAa,2BAA2B;CAChD;AAED,MAAa,kBAA0C,OAAO,YAC5D,OAAO,QAAQ,SAAS,CAAC,KAAK,CAAC,KAAK,WAAW,CAAC,KAAK,MAAM,WAAW,IAAI,CAAC,CAC5E;AAED,MAAa,sBAA8C,OAAO,YAChE,OAAO,QAAQ,SAAS,CAAC,KAAK,CAAC,KAAK,WAAW,CAAC,KAAK,MAAM,YAAY,CAAC,CACzE"}
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
1
+ const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
2
2
  const require_lower_case_first = require('./packages/string-format/src/lower-case-first.cjs');
3
3
  const require_pluralize$1 = require('./node_modules/.pnpm/pluralize@8.0.0/node_modules/pluralize/pluralize.cjs');
4
4
  const require_config = require('./config.cjs');
@@ -11,14 +11,14 @@ const require_comments_helpers = require('./zod/comments-helpers.cjs');
11
11
  const require_transformer = require('./zod/transformer.cjs');
12
12
  const require_generator_helpers = require('./zod/generator-helpers.cjs');
13
13
  const require_helpers$1 = require('./zod/helpers.cjs');
14
- let __stryke_fs_exists = require("@stryke/fs/exists");
15
- let __stryke_fs_helpers = require("@stryke/fs/helpers");
16
- let __stryke_path_join_paths = require("@stryke/path/join-paths");
14
+ let _stryke_fs_exists = require("@stryke/fs/exists");
15
+ let _stryke_fs_helpers = require("@stryke/fs/helpers");
16
+ let _stryke_path_join_paths = require("@stryke/path/join-paths");
17
17
  let node_path = require("node:path");
18
- node_path = require_rolldown_runtime.__toESM(node_path);
18
+ node_path = require_runtime.__toESM(node_path, 1);
19
19
 
20
20
  //#region src/prisma-generator.ts
21
- var import_pluralize = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_pluralize$1.default, 1);
21
+ var import_pluralize = /* @__PURE__ */ require_runtime.__toESM(require_pluralize$1.default, 1);
22
22
  async function generate(options) {
23
23
  console.log("[STORM]: Running the Storm Software - Prisma tRPC generator \n");
24
24
  const internals = await require_get_prisma_internals.getPrismaInternals();
@@ -32,8 +32,8 @@ async function generate(options) {
32
32
  };
33
33
  consoleLog(`Using configuration parameters: \n${JSON.stringify(config)}`);
34
34
  consoleLog(`Preparing output directory: ${outputDir}`);
35
- await (0, __stryke_fs_helpers.removeDirectory)(outputDir);
36
- await (0, __stryke_fs_helpers.createDirectory)(outputDir);
35
+ await (0, _stryke_fs_helpers.removeDirectory)(outputDir);
36
+ await (0, _stryke_fs_helpers.createDirectory)(outputDir);
37
37
  consoleLog("Finding Prisma Client generator");
38
38
  const prismaClientProvider = options.otherGenerators.find((it) => internals.parseEnvValue(it.provider) === "prisma-client-js");
39
39
  if (!prismaClientProvider) throw new Error("No Prisma Client generator found. Please add `prisma-client-js` to your generator list.");
@@ -52,10 +52,10 @@ async function generate(options) {
52
52
  if (config.withZod !== false) {
53
53
  consoleLog("Generating Zod schemas");
54
54
  const zodOutputPath = internals.parseEnvValue(options.generator.output);
55
- await (0, __stryke_fs_helpers.createDirectory)(zodOutputPath);
55
+ await (0, _stryke_fs_helpers.createDirectory)(zodOutputPath);
56
56
  require_transformer.default.setOutputPath(zodOutputPath);
57
57
  if (prismaClientProvider?.isCustomOutput) require_transformer.default.setPrismaClientOutputPath(prismaClientProvider.output?.value);
58
- await require_helpers.constructZodModels(models, (0, __stryke_path_join_paths.joinPaths)(zodOutputPath, "schemas", "models"), config, options);
58
+ await require_helpers.constructZodModels(models, (0, _stryke_path_join_paths.joinPaths)(zodOutputPath, "schemas", "models"), config, options);
59
59
  require_comments_helpers.resolveZodModelsComments(models, modelOperations, enumTypes, hiddenModels, hiddenFields);
60
60
  await require_generator_helpers.generateZodEnumSchemas(enumTypes.prisma, enumTypes.model);
61
61
  const dataSource = options.datasources?.[0];
@@ -107,9 +107,9 @@ async function generate(options) {
107
107
  queries.sort();
108
108
  mutations.sort();
109
109
  subscriptions.sort();
110
- if (config.withShield && !(typeof config.withShield === "string" && ((0, __stryke_fs_exists.existsSync)((0, __stryke_path_join_paths.joinPaths)(outputDir, config.withShield)) || (0, __stryke_fs_exists.existsSync)((0, __stryke_path_join_paths.joinPaths)(outputDir, `./${config.withShield}.ts`)) || (0, __stryke_fs_exists.existsSync)((0, __stryke_path_join_paths.joinPaths)(outputDir, config.withShield, "./shield.ts"))))) {
110
+ if (config.withShield && !(typeof config.withShield === "string" && ((0, _stryke_fs_exists.existsSync)((0, _stryke_path_join_paths.joinPaths)(outputDir, config.withShield)) || (0, _stryke_fs_exists.existsSync)((0, _stryke_path_join_paths.joinPaths)(outputDir, `./${config.withShield}.ts`)) || (0, _stryke_fs_exists.existsSync)((0, _stryke_path_join_paths.joinPaths)(outputDir, config.withShield, "./shield.ts"))))) {
111
111
  consoleLog(`Generating tRPC Shield source file to ${outputDir}`);
112
- await require_write_file_safely.writeFileSafely((0, __stryke_path_join_paths.joinPaths)(outputDir, "./shield.ts"), await require_helpers.constructShield({
112
+ await require_write_file_safely.writeFileSafely((0, _stryke_path_join_paths.joinPaths)(outputDir, "./shield.ts"), await require_helpers.constructShield({
113
113
  queries,
114
114
  mutations,
115
115
  subscriptions
@@ -118,7 +118,7 @@ async function generate(options) {
118
118
  consoleLog(`Generating tRPC source code for ${models.length} models`);
119
119
  if (config.trpcOptions && typeof config.trpcOptions === "boolean") {
120
120
  consoleLog(`Generating tRPC options source file to ${outputDir}`);
121
- await require_write_file_safely.writeFileSafely((0, __stryke_path_join_paths.joinPaths)(outputDir, "./options.ts"), require_helpers.constructDefaultOptions(config, options, outputDir));
121
+ await require_write_file_safely.writeFileSafely((0, _stryke_path_join_paths.joinPaths)(outputDir, "./options.ts"), require_helpers.constructDefaultOptions(config, options, outputDir));
122
122
  }
123
123
  require_helpers.resolveModelsComments(models, hiddenModels);
124
124
  consoleLog("Generating tRPC export file");
@@ -1,4 +1,4 @@
1
- import { __toESM } from "./_virtual/rolldown_runtime.mjs";
1
+ import { __toESM } from "./_virtual/_rolldown/runtime.mjs";
2
2
  import { lowerCaseFirst } from "./packages/string-format/src/lower-case-first.mjs";
3
3
  import { require_pluralize } from "./node_modules/.pnpm/pluralize@8.0.0/node_modules/pluralize/pluralize.mjs";
4
4
  import { configSchema } from "./config.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"prisma-generator.mjs","names":["hiddenModels: string[]","hiddenFields: string[]","queries: RootType","mutations: RootType","subscriptions: RootType"],"sources":["../src/prisma-generator.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type {\n DMMF,\n EnvValue,\n GeneratorOptions\n} from \"@prisma/generator-helper\";\nimport { existsSync } from \"@stryke/fs/exists\";\nimport { createDirectory, removeDirectory } from \"@stryke/fs/helpers\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport { lowerCaseFirst } from \"@stryke/string-format/lower-case-first\";\nimport path from \"node:path\";\nimport pluralize from \"pluralize\";\nimport { configSchema } from \"./config\";\nimport {\n constructDefaultOptions,\n constructShield,\n constructZodModels,\n generateCreateRouterImport,\n generateProcedure,\n generateRouterImport,\n generateRouterSchemaImports,\n generateTRPCExports,\n getInputTypeByOpName,\n resolveModelsComments\n} from \"./helpers\";\nimport { project } from \"./project\";\nimport type { RootType, Writeable } from \"./types\";\nimport { getPrismaInternals } from \"./utils/get-prisma-internals\";\nimport { writeFileSafely } from \"./utils/write-file-safely\";\nimport { resolveZodAggregateOperationSupport } from \"./zod/aggregate-helpers\";\nimport {\n hideZodInputObjectTypesAndRelatedFields,\n resolveZodModelsComments\n} from \"./zod/comments-helpers\";\nimport {\n generateZodEnumSchemas,\n generateZodIndex,\n generateZodModelSchemas,\n generateZodObjectSchemas\n} from \"./zod/generator-helpers\";\nimport { addMissingZodInputObjectTypes } from \"./zod/helpers\";\nimport Transformer from \"./zod/transformer\";\n\nexport async function generate(options: GeneratorOptions) {\n // eslint-disable-next-line no-console\n console.log(\"[STORM]: Running the Storm Software - Prisma tRPC generator \\n\");\n\n const internals = await getPrismaInternals();\n\n // eslint-disable-next-line no-console\n console.log(`[STORM]: Validating configuration options \\n`);\n\n const outputDir = internals.parseEnvValue(\n options.generator.output as EnvValue\n );\n const results = await configSchema.safeParseAsync(options.generator.config);\n if (!results.success) {\n throw new Error(\"Invalid options passed\");\n }\n\n const config = results.data;\n const consoleLog = (message: string) => {\n if (config.debug) {\n // eslint-disable-next-line no-console\n console.log(`[STORM]: ${message} \\n`);\n }\n };\n\n consoleLog(`Using configuration parameters: \\n${JSON.stringify(config)}`);\n\n consoleLog(`Preparing output directory: ${outputDir}`);\n\n await removeDirectory(outputDir);\n await createDirectory(outputDir);\n\n consoleLog(\"Finding Prisma Client generator\");\n\n const prismaClientProvider = options.otherGenerators.find(\n it => internals.parseEnvValue(it.provider) === \"prisma-client-js\"\n );\n if (!prismaClientProvider) {\n throw new Error(\n \"No Prisma Client generator found. Please add `prisma-client-js` to your generator list.\"\n );\n }\n\n consoleLog(\"Generating Prisma Client DMMF\");\n\n const prismaClientDmmf = (await internals.getDMMF({\n datamodel: options.datamodel,\n previewFeatures: prismaClientProvider?.previewFeatures\n })) as Writeable<DMMF.Document>;\n\n const modelOperations = prismaClientDmmf.mappings\n .modelOperations as DMMF.ModelMapping[];\n const inputObjectTypes = prismaClientDmmf.schema.inputObjectTypes\n .prisma as DMMF.InputType[];\n const outputObjectTypes = prismaClientDmmf.schema.outputObjectTypes\n .prisma as DMMF.OutputType[];\n const enumTypes = prismaClientDmmf.schema.enumTypes;\n const models = prismaClientDmmf.datamodel.models as Writeable<DMMF.Model[]>;\n const hiddenModels: string[] = [];\n const hiddenFields: string[] = [];\n\n if (config.withZod !== false) {\n consoleLog(\"Generating Zod schemas\");\n\n const zodOutputPath = internals.parseEnvValue(options.generator.output!);\n\n await createDirectory(zodOutputPath);\n Transformer.setOutputPath(zodOutputPath);\n\n if (prismaClientProvider?.isCustomOutput) {\n Transformer.setPrismaClientOutputPath(\n prismaClientProvider.output?.value as string\n );\n }\n\n await constructZodModels(\n models,\n joinPaths(zodOutputPath, \"schemas\", \"models\"),\n config,\n options\n );\n\n resolveZodModelsComments(\n models,\n modelOperations,\n enumTypes,\n hiddenModels,\n hiddenFields\n );\n\n await generateZodEnumSchemas(enumTypes.prisma, enumTypes.model!);\n\n const dataSource = options.datasources?.[0];\n if (!dataSource) {\n throw new Error(\"No datasource found\");\n }\n\n const previewFeatures = prismaClientProvider?.previewFeatures;\n Transformer.provider = dataSource.provider;\n Transformer.previewFeatures = previewFeatures;\n\n addMissingZodInputObjectTypes(\n inputObjectTypes,\n outputObjectTypes,\n models,\n modelOperations,\n dataSource.provider,\n {\n isGenerateSelect: true,\n isGenerateInclude: true\n }\n );\n\n const aggregateOperationSupport =\n resolveZodAggregateOperationSupport(inputObjectTypes);\n\n hideZodInputObjectTypesAndRelatedFields(\n inputObjectTypes,\n hiddenModels,\n hiddenFields\n );\n\n await generateZodObjectSchemas(\n inputObjectTypes as Writeable<DMMF.InputType[]>\n );\n\n await generateZodModelSchemas(\n models,\n modelOperations,\n aggregateOperationSupport\n );\n await generateZodIndex();\n } else {\n consoleLog(\"Skipping Zod schemas generation\");\n }\n\n const queries: RootType = [];\n const mutations: RootType = [];\n const subscriptions: RootType = [];\n\n prismaClientDmmf.mappings.modelOperations.forEach(modelOperation => {\n const { model: _model, plural: _plural, ...operations } = modelOperation;\n for (const [opType, opNameWithModel] of Object.entries(operations)) {\n if (\n [\n \"findUnique\",\n \"findUniqueOrThrow\",\n \"findFirst\",\n \"findFirstOrThrow\",\n \"findRaw\",\n \"findMany\",\n \"aggregateRaw\",\n \"count\",\n \"aggregate\",\n \"groupBy\"\n ].includes(opType)\n ) {\n queries.push(opNameWithModel as string);\n }\n\n if (\n [\n \"createOne\",\n \"createMany\",\n \"createManyAndReturn\",\n \"deleteOne\",\n \"deleteMany\",\n \"updateOne\",\n \"updateMany\",\n \"updateManyAndReturn\",\n \"upsertOne\"\n ].includes(opType)\n ) {\n mutations.push(opNameWithModel as string);\n }\n }\n });\n\n queries.sort();\n mutations.sort();\n subscriptions.sort();\n\n if (\n config.withShield &&\n !(\n typeof config.withShield === \"string\" &&\n (existsSync(joinPaths(outputDir, config.withShield)) ||\n existsSync(joinPaths(outputDir, `./${config.withShield}.ts`)) ||\n existsSync(joinPaths(outputDir, config.withShield, \"./shield.ts\")))\n )\n ) {\n consoleLog(`Generating tRPC Shield source file to ${outputDir}`);\n await writeFileSafely(\n joinPaths(outputDir, \"./shield.ts\"),\n await constructShield(\n { queries, mutations, subscriptions },\n config,\n options,\n outputDir\n )\n );\n } else {\n consoleLog(\"Skipping tRPC Shield generation\");\n }\n\n consoleLog(`Generating tRPC source code for ${models.length} models`);\n\n if (config.trpcOptions && typeof config.trpcOptions === \"boolean\") {\n consoleLog(`Generating tRPC options source file to ${outputDir}`);\n\n await writeFileSafely(\n joinPaths(outputDir, \"./options.ts\"),\n constructDefaultOptions(config, options, outputDir)\n );\n }\n\n resolveModelsComments(models, hiddenModels);\n\n consoleLog(\"Generating tRPC export file\");\n const trpcExports = project.createSourceFile(\n path.resolve(outputDir, \"trpc.ts\"),\n undefined,\n { overwrite: true }\n );\n\n await generateTRPCExports(trpcExports, config, options, outputDir);\n\n consoleLog(\"Generating tRPC app router\");\n const appRouter = project.createSourceFile(\n path.resolve(outputDir, \"routers\", `index.ts`),\n undefined,\n { overwrite: true }\n );\n\n consoleLog(\"Generating tRPC router imports\");\n\n generateCreateRouterImport({\n sourceFile: appRouter\n });\n\n const routerStatements = [];\n\n for (const modelOperation of modelOperations) {\n const { model, ...operations } = modelOperation;\n if (hiddenModels.includes(model)) {\n consoleLog(`Skipping model ${model} as it is hidden`);\n continue;\n }\n if (!model) {\n consoleLog(`Skipping model ${model} as it is not defined`);\n continue;\n }\n\n const modelActions = Object.keys(operations).filter<DMMF.ModelAction>(\n (opType): opType is DMMF.ModelAction =>\n // eslint-disable-next-line unicorn/prefer-includes\n config.generateModelActions.some(\n generateModelAction =>\n generateModelAction === opType.replace(\"One\", \"\")\n )\n );\n if (!modelActions.length) {\n consoleLog(`Skipping model ${model} as it has no actions to generate`);\n continue;\n }\n\n const plural = pluralize(lowerCaseFirst(model));\n\n consoleLog(`Generating tRPC router for model ${model}`);\n\n generateRouterImport(appRouter, plural, model);\n const modelRouter = project.createSourceFile(\n path.resolve(outputDir, \"routers\", `${lowerCaseFirst(model)}.router.ts`),\n undefined,\n { overwrite: true }\n );\n\n generateCreateRouterImport({\n sourceFile: modelRouter,\n config\n });\n\n if (config.withZod) {\n consoleLog(\"Generating Zod schemas imports\");\n generateRouterSchemaImports(modelRouter, model, modelActions);\n }\n\n modelRouter.addStatements(/* ts */ `\n export const ${plural}Router = t.router({`);\n\n for (const opType of modelActions) {\n const opNameWithModel = operations[opType];\n if (opNameWithModel) {\n const baseOpType = opType.replace(\"OrThrow\", \"\");\n\n generateProcedure(\n modelRouter,\n opNameWithModel,\n getInputTypeByOpName(baseOpType, model)!,\n model,\n opType,\n baseOpType,\n config\n );\n }\n }\n\n modelRouter.addStatements(/* ts */ `\n })`);\n\n modelRouter.formatText({ indentSize: 2 });\n routerStatements.push(/* ts */ `\n ${lowerCaseFirst(model)}: ${plural}Router`);\n\n consoleLog(\n `Generated tRPC router for model ${model} with ${modelActions.length} actions`\n );\n }\n\n consoleLog(\"Generating tRPC app router\");\n\n appRouter.addStatements(/* ts */ `\nexport const appRouter = t.router({${routerStatements.join()}});\n\nexport type AppRouter = typeof appRouter;`);\n\n appRouter.formatText({ indentSize: 2 });\n\n consoleLog(\"Saving tRPC router source files to disk\");\n\n await project.save();\n\n consoleLog(\"Storm Software - Prisma tRPC generator completed successfully\");\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AA4DA,eAAsB,SAAS,SAA2B;AAExD,SAAQ,IAAI,iEAAiE;CAE7E,MAAM,YAAY,MAAM,oBAAoB;AAG5C,SAAQ,IAAI,+CAA+C;CAE3D,MAAM,YAAY,UAAU,cAC1B,QAAQ,UAAU,OACnB;CACD,MAAM,UAAU,MAAM,aAAa,eAAe,QAAQ,UAAU,OAAO;AAC3E,KAAI,CAAC,QAAQ,QACX,OAAM,IAAI,MAAM,yBAAyB;CAG3C,MAAM,SAAS,QAAQ;CACvB,MAAM,cAAc,YAAoB;AACtC,MAAI,OAAO,MAET,SAAQ,IAAI,YAAY,QAAQ,KAAK;;AAIzC,YAAW,qCAAqC,KAAK,UAAU,OAAO,GAAG;AAEzE,YAAW,+BAA+B,YAAY;AAEtD,OAAM,gBAAgB,UAAU;AAChC,OAAM,gBAAgB,UAAU;AAEhC,YAAW,kCAAkC;CAE7C,MAAM,uBAAuB,QAAQ,gBAAgB,MACnD,O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,cAAY,WAAW,EAAE,YAAY,GAAG,CAAC;AACzC,mBAAiB,KAAc;QAC3B,eAAe,MAAM,CAAC,IAAI,OAAO,QAAQ;AAE7C,aACE,mCAAmC,MAAM,QAAQ,aAAa,OAAO,UACtE;;AAGH,YAAW,6BAA6B;AAExC,WAAU,cAAuB;qCACE,iBAAiB,MAAM,CAAC;;2CAElB;AAEzC,WAAU,WAAW,EAAE,YAAY,GAAG,CAAC;AAEvC,YAAW,0CAA0C;AAErD,OAAM,QAAQ,MAAM;AAEpB,YAAW,gEAAgE"}
1
+ {"version":3,"file":"prisma-generator.mjs","names":[],"sources":["../src/prisma-generator.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type {\n DMMF,\n EnvValue,\n GeneratorOptions\n} from \"@prisma/generator-helper\";\nimport { existsSync } from \"@stryke/fs/exists\";\nimport { createDirectory, removeDirectory } from \"@stryke/fs/helpers\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport { lowerCaseFirst } from \"@stryke/string-format/lower-case-first\";\nimport path from \"node:path\";\nimport pluralize from \"pluralize\";\nimport { configSchema } from \"./config\";\nimport {\n constructDefaultOptions,\n constructShield,\n constructZodModels,\n generateCreateRouterImport,\n generateProcedure,\n generateRouterImport,\n generateRouterSchemaImports,\n generateTRPCExports,\n getInputTypeByOpName,\n resolveModelsComments\n} from \"./helpers\";\nimport { project } from \"./project\";\nimport type { RootType, Writeable } from \"./types\";\nimport { getPrismaInternals } from \"./utils/get-prisma-internals\";\nimport { writeFileSafely } from \"./utils/write-file-safely\";\nimport { resolveZodAggregateOperationSupport } from \"./zod/aggregate-helpers\";\nimport {\n hideZodInputObjectTypesAndRelatedFields,\n resolveZodModelsComments\n} from \"./zod/comments-helpers\";\nimport {\n generateZodEnumSchemas,\n generateZodIndex,\n generateZodModelSchemas,\n generateZodObjectSchemas\n} from \"./zod/generator-helpers\";\nimport { addMissingZodInputObjectTypes } from \"./zod/helpers\";\nimport Transformer from \"./zod/transformer\";\n\nexport async function generate(options: GeneratorOptions) {\n // eslint-disable-next-line no-console\n console.log(\"[STORM]: Running the Storm Software - Prisma tRPC generator \\n\");\n\n const internals = await getPrismaInternals();\n\n // eslint-disable-next-line no-console\n console.log(`[STORM]: Validating configuration options \\n`);\n\n const outputDir = internals.parseEnvValue(\n options.generator.output as EnvValue\n );\n const results = await configSchema.safeParseAsync(options.generator.config);\n if (!results.success) {\n throw new Error(\"Invalid options passed\");\n }\n\n const config = results.data;\n const consoleLog = (message: string) => {\n if (config.debug) {\n // eslint-disable-next-line no-console\n console.log(`[STORM]: ${message} \\n`);\n }\n };\n\n consoleLog(`Using configuration parameters: \\n${JSON.stringify(config)}`);\n\n consoleLog(`Preparing output directory: ${outputDir}`);\n\n await removeDirectory(outputDir);\n await createDirectory(outputDir);\n\n consoleLog(\"Finding Prisma Client generator\");\n\n const prismaClientProvider = options.otherGenerators.find(\n it => internals.parseEnvValue(it.provider) === \"prisma-client-js\"\n );\n if (!prismaClientProvider) {\n throw new Error(\n \"No Prisma Client generator found. Please add `prisma-client-js` to your generator list.\"\n );\n }\n\n consoleLog(\"Generating Prisma Client DMMF\");\n\n const prismaClientDmmf = (await internals.getDMMF({\n datamodel: options.datamodel,\n previewFeatures: prismaClientProvider?.previewFeatures\n })) as Writeable<DMMF.Document>;\n\n const modelOperations = prismaClientDmmf.mappings\n .modelOperations as DMMF.ModelMapping[];\n const inputObjectTypes = prismaClientDmmf.schema.inputObjectTypes\n .prisma as DMMF.InputType[];\n const outputObjectTypes = prismaClientDmmf.schema.outputObjectTypes\n .prisma as DMMF.OutputType[];\n const enumTypes = prismaClientDmmf.schema.enumTypes;\n const models = prismaClientDmmf.datamodel.models as Writeable<DMMF.Model[]>;\n const hiddenModels: string[] = [];\n const hiddenFields: string[] = [];\n\n if (config.withZod !== false) {\n consoleLog(\"Generating Zod schemas\");\n\n const zodOutputPath = internals.parseEnvValue(options.generator.output!);\n\n await createDirectory(zodOutputPath);\n Transformer.setOutputPath(zodOutputPath);\n\n if (prismaClientProvider?.isCustomOutput) {\n Transformer.setPrismaClientOutputPath(\n prismaClientProvider.output?.value as string\n );\n }\n\n await constructZodModels(\n models,\n joinPaths(zodOutputPath, \"schemas\", \"models\"),\n config,\n options\n );\n\n resolveZodModelsComments(\n models,\n modelOperations,\n enumTypes,\n hiddenModels,\n hiddenFields\n );\n\n await generateZodEnumSchemas(enumTypes.prisma, enumTypes.model!);\n\n const dataSource = options.datasources?.[0];\n if (!dataSource) {\n throw new Error(\"No datasource found\");\n }\n\n const previewFeatures = prismaClientProvider?.previewFeatures;\n Transformer.provider = dataSource.provider;\n Transformer.previewFeatures = previewFeatures;\n\n addMissingZodInputObjectTypes(\n inputObjectTypes,\n outputObjectTypes,\n models,\n modelOperations,\n dataSource.provider,\n {\n isGenerateSelect: true,\n isGenerateInclude: true\n }\n );\n\n const aggregateOperationSupport =\n resolveZodAggregateOperationSupport(inputObjectTypes);\n\n hideZodInputObjectTypesAndRelatedFields(\n inputObjectTypes,\n hiddenModels,\n hiddenFields\n );\n\n await generateZodObjectSchemas(\n inputObjectTypes as Writeable<DMMF.InputType[]>\n );\n\n await generateZodModelSchemas(\n models,\n modelOperations,\n aggregateOperationSupport\n );\n await generateZodIndex();\n } else {\n consoleLog(\"Skipping Zod schemas generation\");\n }\n\n const queries: RootType = [];\n const mutations: RootType = [];\n const subscriptions: RootType = [];\n\n prismaClientDmmf.mappings.modelOperations.forEach(modelOperation => {\n const { model: _model, plural: _plural, ...operations } = modelOperation;\n for (const [opType, opNameWithModel] of Object.entries(operations)) {\n if (\n [\n \"findUnique\",\n \"findUniqueOrThrow\",\n \"findFirst\",\n \"findFirstOrThrow\",\n \"findRaw\",\n \"findMany\",\n \"aggregateRaw\",\n \"count\",\n \"aggregate\",\n \"groupBy\"\n ].includes(opType)\n ) {\n queries.push(opNameWithModel as string);\n }\n\n if (\n [\n \"createOne\",\n \"createMany\",\n \"createManyAndReturn\",\n \"deleteOne\",\n \"deleteMany\",\n \"updateOne\",\n \"updateMany\",\n \"updateManyAndReturn\",\n \"upsertOne\"\n ].includes(opType)\n ) {\n mutations.push(opNameWithModel as string);\n }\n }\n });\n\n queries.sort();\n mutations.sort();\n subscriptions.sort();\n\n if (\n config.withShield &&\n !(\n typeof config.withShield === \"string\" &&\n (existsSync(joinPaths(outputDir, config.withShield)) ||\n existsSync(joinPaths(outputDir, `./${config.withShield}.ts`)) ||\n existsSync(joinPaths(outputDir, config.withShield, \"./shield.ts\")))\n )\n ) {\n consoleLog(`Generating tRPC Shield source file to ${outputDir}`);\n await writeFileSafely(\n joinPaths(outputDir, \"./shield.ts\"),\n await constructShield(\n { queries, mutations, subscriptions },\n config,\n options,\n outputDir\n )\n );\n } else {\n consoleLog(\"Skipping tRPC Shield generation\");\n }\n\n consoleLog(`Generating tRPC source code for ${models.length} models`);\n\n if (config.trpcOptions && typeof config.trpcOptions === \"boolean\") {\n consoleLog(`Generating tRPC options source file to ${outputDir}`);\n\n await writeFileSafely(\n joinPaths(outputDir, \"./options.ts\"),\n constructDefaultOptions(config, options, outputDir)\n );\n }\n\n resolveModelsComments(models, hiddenModels);\n\n consoleLog(\"Generating tRPC export file\");\n const trpcExports = project.createSourceFile(\n path.resolve(outputDir, \"trpc.ts\"),\n undefined,\n { overwrite: true }\n );\n\n await generateTRPCExports(trpcExports, config, options, outputDir);\n\n consoleLog(\"Generating tRPC app router\");\n const appRouter = project.createSourceFile(\n path.resolve(outputDir, \"routers\", `index.ts`),\n undefined,\n { overwrite: true }\n );\n\n consoleLog(\"Generating tRPC router imports\");\n\n generateCreateRouterImport({\n sourceFile: appRouter\n });\n\n const routerStatements = [];\n\n for (const modelOperation of modelOperations) {\n const { model, ...operations } = modelOperation;\n if (hiddenModels.includes(model)) {\n consoleLog(`Skipping model ${model} as it is hidden`);\n continue;\n }\n if (!model) {\n consoleLog(`Skipping model ${model} as it is not defined`);\n continue;\n }\n\n const modelActions = Object.keys(operations).filter<DMMF.ModelAction>(\n (opType): opType is DMMF.ModelAction =>\n // eslint-disable-next-line unicorn/prefer-includes\n config.generateModelActions.some(\n generateModelAction =>\n generateModelAction === opType.replace(\"One\", \"\")\n )\n );\n if (!modelActions.length) {\n consoleLog(`Skipping model ${model} as it has no actions to generate`);\n continue;\n }\n\n const plural = pluralize(lowerCaseFirst(model));\n\n consoleLog(`Generating tRPC router for model ${model}`);\n\n generateRouterImport(appRouter, plural, model);\n const modelRouter = project.createSourceFile(\n path.resolve(outputDir, \"routers\", `${lowerCaseFirst(model)}.router.ts`),\n undefined,\n { overwrite: true }\n );\n\n generateCreateRouterImport({\n sourceFile: modelRouter,\n config\n });\n\n if (config.withZod) {\n consoleLog(\"Generating Zod schemas imports\");\n generateRouterSchemaImports(modelRouter, model, modelActions);\n }\n\n modelRouter.addStatements(/* ts */ `\n export const ${plural}Router = t.router({`);\n\n for (const opType of modelActions) {\n const opNameWithModel = operations[opType];\n if (opNameWithModel) {\n const baseOpType = opType.replace(\"OrThrow\", \"\");\n\n generateProcedure(\n modelRouter,\n opNameWithModel,\n getInputTypeByOpName(baseOpType, model)!,\n model,\n opType,\n baseOpType,\n config\n );\n }\n }\n\n modelRouter.addStatements(/* ts */ `\n })`);\n\n modelRouter.formatText({ indentSize: 2 });\n routerStatements.push(/* ts */ `\n ${lowerCaseFirst(model)}: ${plural}Router`);\n\n consoleLog(\n `Generated tRPC router for model ${model} with ${modelActions.length} actions`\n );\n }\n\n consoleLog(\"Generating tRPC app router\");\n\n appRouter.addStatements(/* ts */ `\nexport const appRouter = t.router({${routerStatements.join()}});\n\nexport type AppRouter = typeof appRouter;`);\n\n appRouter.formatText({ indentSize: 2 });\n\n consoleLog(\"Saving tRPC router source files to disk\");\n\n await project.save();\n\n consoleLog(\"Storm Software - Prisma tRPC generator completed successfully\");\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AA4DA,eAAsB,SAAS,SAA2B;AAExD,SAAQ,IAAI,iEAAiE;CAE7E,MAAM,YAAY,MAAM,oBAAoB;AAG5C,SAAQ,IAAI,+CAA+C;CAE3D,MAAM,YAAY,UAAU,cAC1B,QAAQ,UAAU,OACnB;CACD,MAAM,UAAU,MAAM,aAAa,eAAe,QAAQ,UAAU,OAAO;AAC3E,KAAI,CAAC,QAAQ,QACX,OAAM,IAAI,MAAM,yBAAyB;CAG3C,MAAM,SAAS,QAAQ;CACvB,MAAM,cAAc,YAAoB;AACtC,MAAI,OAAO,MAET,SAAQ,IAAI,YAAY,QAAQ,KAAK;;AAIzC,YAAW,qCAAqC,KAAK,UAAU,OAAO,GAAG;AAEzE,YAAW,+BAA+B,YAAY;AAEtD,OAAM,gBAAgB,UAAU;AAChC,OAAM,gBAAgB,UAAU;AAEhC,YAAW,kCAAkC;CAE7C,MAAM,uBAAuB,QAAQ,gBAAgB,MACnD,OAAM,UAAU,cAAc,GAAG,SAAS,KAAK,mBAChD;AACD,KAAI,CAAC,qBACH,OAAM,IAAI,MACR,0FACD;AAGH,YAAW,gCAAgC;CAE3C,MAAM,mBAAoB,MAAM,UAAU,QAAQ;EAChD,WAAW,QAAQ;EACnB,iBAAiB,sBAAsB;EACxC,CAAC;CAEF,MAAM,kBAAkB,iBAAiB,SACtC;CACH,MAAM,mBAAmB,iBAAiB,OAAO,iBAC9C;CACH,MAAM,oBAAoB,iBAAiB,OAAO,kBAC/C;CACH,MAAM,YAAY,iBAAiB,OAAO;CAC1C,MAAM,SAAS,iBAAiB,UAAU;CAC1C,MAAM,eAAyB,EAAE;CACjC,MAAM,eAAyB,EAAE;AAEjC,KAAI,OAAO,YAAY,OAAO;AAC5B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B,MAC1B,wBACE,wBAAwB,OAAO,QAAQ,OAAO,GAAG,CACpD,CACJ;AACD,MAAI,CAAC,aAAa,QAAQ;AACxB,cAAW,kBAAkB,MAAM,mCAAmC;AACtE;;EAGF,MAAM,uCAAmB,eAAe,MAAM,CAAC;AAE/C,aAAW,oCAAoC,QAAQ;AAEvD,uBAAqB,WAAW,QAAQ,MAAM;EAC9C,MAAM,cAAc,QAAQ,iBAC1B,KAAK,QAAQ,WAAW,WAAW,GAAG,eAAe,MAAM,CAAC,YAAY,EACxE,QACA,EAAE,WAAW,MAAM,CACpB;AAED,6BAA2B;GACzB,YAAY;GACZ;GACD,CAAC;AAEF,MAAI,OAAO,SAAS;AAClB,cAAW,iCAAiC;AAC5C,+BAA4B,aAAa,OAAO,aAAa;;AAG/D,cAAY,cAAuB;qBAClB,OAAO,qBAAqB;AAE7C,OAAK,MAAM,UAAU,cAAc;GACjC,MAAM,kBAAkB,WAAW;AACnC,OAAI,iBAAiB;IACnB,MAAM,aAAa,OAAO,QAAQ,WAAW,GAAG;AAEhD,sBACE,aACA,iBACA,qBAAqB,YAAY,MAAM,EACvC,OACA,QACA,YACA,OACD;;;AAIL,cAAY,cAAuB;QAC/B;AAEJ,cAAY,WAAW,EAAE,YAAY,GAAG,CAAC;AACzC,mBAAiB,KAAc;QAC3B,eAAe,MAAM,CAAC,IAAI,OAAO,QAAQ;AAE7C,aACE,mCAAmC,MAAM,QAAQ,aAAa,OAAO,UACtE;;AAGH,YAAW,6BAA6B;AAExC,WAAU,cAAuB;qCACE,iBAAiB,MAAM,CAAC;;2CAElB;AAEzC,WAAU,WAAW,EAAE,YAAY,GAAG,CAAC;AAEvC,YAAW,0CAA0C;AAErD,OAAM,QAAQ,MAAM;AAEpB,YAAW,gEAAgE"}
package/dist/project.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
1
+ const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
2
2
  let ts_morph = require("ts-morph");
3
3
 
4
4
  //#region src/project.ts
@@ -1 +1 @@
1
- {"version":3,"file":"project.mjs","names":["compilerOptions: CompilerOptions"],"sources":["../src/project.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { CompilerOptions } from \"ts-morph\";\nimport { ModuleKind, Project, ScriptTarget } from \"ts-morph\";\n\nconst compilerOptions: CompilerOptions = {\n target: ScriptTarget.ESNext,\n module: ModuleKind.ESNext,\n emitDecoratorMetadata: true,\n experimentalDecorators: true,\n esModuleInterop: true\n};\n\nexport const project = new Project({\n compilerOptions: {\n ...compilerOptions\n }\n});\n"],"mappings":";;;AAqBA,MAAMA,kBAAmC;CACvC,QAAQ,aAAa;CACrB,QAAQ,WAAW;CACnB,uBAAuB;CACvB,wBAAwB;CACxB,iBAAiB;CAClB;AAED,MAAa,UAAU,IAAI,QAAQ,EACjC,iBAAiB,EACf,GAAG,iBACJ,EACF,CAAC"}
1
+ {"version":3,"file":"project.mjs","names":[],"sources":["../src/project.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { CompilerOptions } from \"ts-morph\";\nimport { ModuleKind, Project, ScriptTarget } from \"ts-morph\";\n\nconst compilerOptions: CompilerOptions = {\n target: ScriptTarget.ESNext,\n module: ModuleKind.ESNext,\n emitDecoratorMetadata: true,\n experimentalDecorators: true,\n esModuleInterop: true\n};\n\nexport const project = new Project({\n compilerOptions: {\n ...compilerOptions\n }\n});\n"],"mappings":";;;AAqBA,MAAM,kBAAmC;CACvC,QAAQ,aAAa;CACrB,QAAQ,WAAW;CACnB,uBAAuB;CACvB,wBAAwB;CACxB,iBAAiB;CAClB;AAED,MAAa,UAAU,IAAI,QAAQ,EACjC,iBAAiB,EACf,GAAG,iBACJ,EACF,CAAC"}
@@ -1,6 +1,6 @@
1
- const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
1
+ const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
2
2
  let prettier = require("prettier");
3
- prettier = require_rolldown_runtime.__toESM(prettier);
3
+ prettier = require_runtime.__toESM(prettier, 1);
4
4
 
5
5
  //#region src/utils/format-file.ts
6
6
  async function formatFile(content) {
@@ -1 +1 @@
1
- {"version":3,"file":"format-file.mjs","names":[],"sources":["../../src/utils/format-file.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport prettier from \"prettier\";\n\nexport async function formatFile(content: string): Promise<string> {\n const options = await prettier.resolveConfig(process.cwd());\n\n let formatOptions = options;\n if (!options) {\n formatOptions = {\n trailingComma: \"all\",\n tabWidth: 2,\n printWidth: 80,\n bracketSpacing: true,\n semi: true,\n singleQuote: true,\n useTabs: false\n };\n }\n\n const formatted = await prettier.format(content, {\n ...formatOptions,\n parser: \"typescript\"\n });\n\n return formatted;\n}\n"],"mappings":";;;AAoBA,eAAsB,WAAW,SAAkC;CACjE,MAAM,UAAU,MAAM,SAAS,cAAc,QAAQ,KAAK,CAAC;CAE3D,IAAI,gBAAgB;AACpB,KAAI,CAAC,QACH,iBAAgB;EACd,eAAe;EACf,UAAU;EACV,YAAY;EACZ,gBAAgB;EAChB,MAAM;EACN,aAAa;EACb,SAAS;EACV;AAQH,QALkB,MAAM,SAAS,OAAO,SAAS;EAC/C,GAAG;EACH,QAAQ;EACT,CAAC"}
1
+ {"version":3,"file":"format-file.mjs","names":[],"sources":["../../src/utils/format-file.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport prettier from \"prettier\";\n\nexport async function formatFile(content: string): Promise<string> {\n const options = await prettier.resolveConfig(process.cwd());\n\n let formatOptions = options;\n if (!options) {\n formatOptions = {\n trailingComma: \"all\",\n tabWidth: 2,\n printWidth: 80,\n bracketSpacing: true,\n semi: true,\n singleQuote: true,\n useTabs: false\n };\n }\n\n const formatted = await prettier.format(content, {\n ...formatOptions,\n parser: \"typescript\"\n });\n\n return formatted;\n}\n"],"mappings":";;;AAoBA,eAAsB,WAAW,SAAkC;CACjE,MAAM,UAAU,MAAM,SAAS,cAAc,QAAQ,KAAK,CAAC;CAE3D,IAAI,gBAAgB;AACpB,KAAI,CAAC,QACH,iBAAgB;EACd,eAAe;EACf,UAAU;EACV,YAAY;EACZ,gBAAgB;EAChB,MAAM;EACN,aAAa;EACb,SAAS;EACV;AAQH,QAAO,MALiB,SAAS,OAAO,SAAS;EAC/C,GAAG;EACH,QAAQ;EACT,CAAC"}
@@ -1,7 +1,7 @@
1
- const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
1
+ const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
2
2
  const require_get_env_paths = require('../packages/env/src/get-env-paths.cjs');
3
- let __stryke_path_join_paths = require("@stryke/path/join-paths");
4
- let __stryke_fs_get_workspace_root = require("@stryke/fs/get-workspace-root");
3
+ let _stryke_path_join_paths = require("@stryke/path/join-paths");
4
+ let _stryke_fs_get_workspace_root = require("@stryke/fs/get-workspace-root");
5
5
  let jiti = require("jiti");
6
6
 
7
7
  //#region src/utils/get-jiti.ts
@@ -9,8 +9,8 @@ let jiti$1;
9
9
  function getJiti() {
10
10
  if (!jiti$1) {
11
11
  const envPaths = require_get_env_paths.getEnvPaths();
12
- jiti$1 = (0, jiti.createJiti)((0, __stryke_fs_get_workspace_root.getWorkspaceRoot)(), {
13
- fsCache: (0, __stryke_path_join_paths.joinPaths)(envPaths.cache, "jiti"),
12
+ jiti$1 = (0, jiti.createJiti)((0, _stryke_fs_get_workspace_root.getWorkspaceRoot)(), {
13
+ fsCache: (0, _stryke_path_join_paths.joinPaths)(envPaths.cache, "jiti"),
14
14
  interopDefault: true
15
15
  });
16
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"get-jiti.mjs","names":["jiti!: Jiti"],"sources":["../../src/utils/get-jiti.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { getEnvPaths } from \"@stryke/env/get-env-paths\";\nimport { getWorkspaceRoot } from \"@stryke/fs/get-workspace-root\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport type { Jiti } from \"jiti\";\nimport { createJiti } from \"jiti\";\n\nlet jiti!: Jiti;\n\nexport function getJiti() {\n if (!jiti) {\n const envPaths = getEnvPaths();\n\n jiti = createJiti(getWorkspaceRoot(), {\n fsCache: joinPaths(envPaths.cache, \"jiti\"),\n interopDefault: true\n });\n }\n\n return jiti;\n}\n"],"mappings":";;;;;;AAwBA,IAAIA;AAEJ,SAAgB,UAAU;AACxB,KAAI,CAAC,MAAM;EACT,MAAM,WAAW,aAAa;AAE9B,SAAO,WAAW,kBAAkB,EAAE;GACpC,SAAS,UAAU,SAAS,OAAO,OAAO;GAC1C,gBAAgB;GACjB,CAAC;;AAGJ,QAAO"}
1
+ {"version":3,"file":"get-jiti.mjs","names":[],"sources":["../../src/utils/get-jiti.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { getEnvPaths } from \"@stryke/env/get-env-paths\";\nimport { getWorkspaceRoot } from \"@stryke/fs/get-workspace-root\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport type { Jiti } from \"jiti\";\nimport { createJiti } from \"jiti\";\n\nlet jiti!: Jiti;\n\nexport function getJiti() {\n if (!jiti) {\n const envPaths = getEnvPaths();\n\n jiti = createJiti(getWorkspaceRoot(), {\n fsCache: joinPaths(envPaths.cache, \"jiti\"),\n interopDefault: true\n });\n }\n\n return jiti;\n}\n"],"mappings":";;;;;;AAwBA,IAAI;AAEJ,SAAgB,UAAU;AACxB,KAAI,CAAC,MAAM;EACT,MAAM,WAAW,aAAa;AAE9B,SAAO,WAAW,kBAAkB,EAAE;GACpC,SAAS,UAAU,SAAS,OAAO,OAAO;GAC1C,gBAAgB;GACjB,CAAC;;AAGJ,QAAO"}
@@ -1,11 +1,11 @@
1
- const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
1
+ const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
2
2
  const require_format_file = require('./format-file.cjs');
3
- let __stryke_fs_helpers = require("@stryke/fs/helpers");
3
+ let _stryke_fs_helpers = require("@stryke/fs/helpers");
4
4
  let node_path = require("node:path");
5
- node_path = require_rolldown_runtime.__toESM(node_path);
6
- let __stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
7
- let __stryke_fs_write_file = require("@stryke/fs/write-file");
8
- let __stryke_path_correct_path = require("@stryke/path/correct-path");
5
+ node_path = require_runtime.__toESM(node_path, 1);
6
+ let _stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
7
+ let _stryke_fs_write_file = require("@stryke/fs/write-file");
8
+ let _stryke_path_correct_path = require("@stryke/path/correct-path");
9
9
 
10
10
  //#region src/utils/write-file-safely.ts
11
11
  const indexExports = /* @__PURE__ */ new Set();
@@ -13,15 +13,15 @@ const addIndexExport = (filePath) => {
13
13
  indexExports.add(filePath);
14
14
  };
15
15
  const writeFileSafely = async (writeLocation, content, addToIndex = true) => {
16
- const [fileContent] = await Promise.all([require_format_file.formatFile(content), (0, __stryke_fs_helpers.createDirectory)((0, __stryke_path_file_path_fns.findFilePath)(writeLocation))]);
17
- await (0, __stryke_fs_write_file.writeFile)(writeLocation, fileContent);
16
+ const [fileContent] = await Promise.all([require_format_file.formatFile(content), (0, _stryke_fs_helpers.createDirectory)((0, _stryke_path_file_path_fns.findFilePath)(writeLocation))]);
17
+ await (0, _stryke_fs_write_file.writeFile)(writeLocation, fileContent);
18
18
  if (addToIndex) addIndexExport(writeLocation);
19
19
  };
20
20
  const writeIndexFile = async (indexPath) => {
21
21
  const rows = Array.from(indexExports).map((filePath) => {
22
22
  let relativePath = node_path.default.relative(node_path.default.dirname(indexPath), filePath);
23
23
  if (relativePath.endsWith(".ts")) relativePath = relativePath.slice(0, relativePath.lastIndexOf(".ts"));
24
- return `export * from './${(0, __stryke_path_correct_path.correctPath)(relativePath)}';`;
24
+ return `export * from './${(0, _stryke_path_correct_path.correctPath)(relativePath)}';`;
25
25
  });
26
26
  rows.push("export * from './models';");
27
27
  await writeFileSafely(indexPath, rows.join("\n"), false);
@@ -17,9 +17,9 @@ const writeFileSafely = async (writeLocation, content, addToIndex = true) => {
17
17
  };
18
18
  const writeIndexFile = async (indexPath) => {
19
19
  const rows = Array.from(indexExports).map((filePath) => {
20
- let relativePath$1 = path.relative(path.dirname(indexPath), filePath);
21
- if (relativePath$1.endsWith(".ts")) relativePath$1 = relativePath$1.slice(0, relativePath$1.lastIndexOf(".ts"));
22
- return `export * from './${correctPath(relativePath$1)}';`;
20
+ let relativePath = path.relative(path.dirname(indexPath), filePath);
21
+ if (relativePath.endsWith(".ts")) relativePath = relativePath.slice(0, relativePath.lastIndexOf(".ts"));
22
+ return `export * from './${correctPath(relativePath)}';`;
23
23
  });
24
24
  rows.push("export * from './models';");
25
25
  await writeFileSafely(indexPath, rows.join("\n"), false);
@@ -1 +1 @@
1
- {"version":3,"file":"write-file-safely.mjs","names":["relativePath"],"sources":["../../src/utils/write-file-safely.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { createDirectory } from \"@stryke/fs/helpers\";\nimport { writeFile } from \"@stryke/fs/write-file\";\nimport { correctPath } from \"@stryke/path/correct-path\";\nimport { findFilePath } from \"@stryke/path/file-path-fns\";\nimport path from \"node:path\";\nimport { formatFile } from \"./format-file\";\n\nconst indexExports = new Set<string>();\n\nexport const addIndexExport = (filePath: string) => {\n indexExports.add(filePath);\n};\n\nexport const writeFileSafely = async (\n writeLocation: string,\n content: any,\n addToIndex = true\n) => {\n const [fileContent] = await Promise.all([\n formatFile(content),\n createDirectory(findFilePath(writeLocation))\n ]);\n\n await writeFile(writeLocation, fileContent);\n if (addToIndex) {\n addIndexExport(writeLocation);\n }\n};\n\nexport const writeIndexFile = async (indexPath: string) => {\n const rows = Array.from(indexExports).map(filePath => {\n let relativePath = path.relative(path.dirname(indexPath), filePath);\n if (relativePath.endsWith(\".ts\")) {\n relativePath = relativePath.slice(0, relativePath.lastIndexOf(\".ts\"));\n }\n const normalized = correctPath(relativePath);\n\n return `export * from './${normalized}';`;\n });\n\n rows.push(\"export * from './models';\");\n\n await writeFileSafely(indexPath, rows.join(\"\\n\"), false);\n};\n"],"mappings":";;;;;;;;AAyBA,MAAM,+BAAe,IAAI,KAAa;AAEtC,MAAa,kBAAkB,aAAqB;AAClD,cAAa,IAAI,SAAS;;AAG5B,MAAa,kBAAkB,OAC7B,eACA,SACA,aAAa,SACV;CACH,MAAM,CAAC,eAAe,MAAM,QAAQ,IAAI,CACtC,WAAW,QAAQ,EACnB,gBAAgB,aAAa,cAAc,CAAC,CAC7C,CAAC;AAEF,OAAM,UAAU,eAAe,YAAY;AAC3C,KAAI,WACF,gBAAe,cAAc;;AAIjC,MAAa,iBAAiB,OAAO,cAAsB;CACzD,MAAM,OAAO,MAAM,KAAK,aAAa,CAAC,KAAI,aAAY;EACpD,IAAIA,iBAAe,KAAK,SAAS,KAAK,QAAQ,UAAU,EAAE,SAAS;AACnE,MAAIA,eAAa,SAAS,MAAM,CAC9B,kBAAeA,eAAa,MAAM,GAAGA,eAAa,YAAY,MAAM,CAAC;AAIvE,SAAO,oBAFY,YAAYA,eAAa,CAEN;GACtC;AAEF,MAAK,KAAK,4BAA4B;AAEtC,OAAM,gBAAgB,WAAW,KAAK,KAAK,KAAK,EAAE,MAAM"}
1
+ {"version":3,"file":"write-file-safely.mjs","names":[],"sources":["../../src/utils/write-file-safely.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { createDirectory } from \"@stryke/fs/helpers\";\nimport { writeFile } from \"@stryke/fs/write-file\";\nimport { correctPath } from \"@stryke/path/correct-path\";\nimport { findFilePath } from \"@stryke/path/file-path-fns\";\nimport path from \"node:path\";\nimport { formatFile } from \"./format-file\";\n\nconst indexExports = new Set<string>();\n\nexport const addIndexExport = (filePath: string) => {\n indexExports.add(filePath);\n};\n\nexport const writeFileSafely = async (\n writeLocation: string,\n content: any,\n addToIndex = true\n) => {\n const [fileContent] = await Promise.all([\n formatFile(content),\n createDirectory(findFilePath(writeLocation))\n ]);\n\n await writeFile(writeLocation, fileContent);\n if (addToIndex) {\n addIndexExport(writeLocation);\n }\n};\n\nexport const writeIndexFile = async (indexPath: string) => {\n const rows = Array.from(indexExports).map(filePath => {\n let relativePath = path.relative(path.dirname(indexPath), filePath);\n if (relativePath.endsWith(\".ts\")) {\n relativePath = relativePath.slice(0, relativePath.lastIndexOf(\".ts\"));\n }\n const normalized = correctPath(relativePath);\n\n return `export * from './${normalized}';`;\n });\n\n rows.push(\"export * from './models';\");\n\n await writeFileSafely(indexPath, rows.join(\"\\n\"), false);\n};\n"],"mappings":";;;;;;;;AAyBA,MAAM,+BAAe,IAAI,KAAa;AAEtC,MAAa,kBAAkB,aAAqB;AAClD,cAAa,IAAI,SAAS;;AAG5B,MAAa,kBAAkB,OAC7B,eACA,SACA,aAAa,SACV;CACH,MAAM,CAAC,eAAe,MAAM,QAAQ,IAAI,CACtC,WAAW,QAAQ,EACnB,gBAAgB,aAAa,cAAc,CAAC,CAC7C,CAAC;AAEF,OAAM,UAAU,eAAe,YAAY;AAC3C,KAAI,WACF,gBAAe,cAAc;;AAIjC,MAAa,iBAAiB,OAAO,cAAsB;CACzD,MAAM,OAAO,MAAM,KAAK,aAAa,CAAC,KAAI,aAAY;EACpD,IAAI,eAAe,KAAK,SAAS,KAAK,QAAQ,UAAU,EAAE,SAAS;AACnE,MAAI,aAAa,SAAS,MAAM,CAC9B,gBAAe,aAAa,MAAM,GAAG,aAAa,YAAY,MAAM,CAAC;AAIvE,SAAO,oBAFY,YAAY,aAEM,CAAC;GACtC;AAEF,MAAK,KAAK,4BAA4B;AAEtC,OAAM,gBAAgB,WAAW,KAAK,KAAK,KAAK,EAAE,MAAM"}
@@ -1 +1 @@
1
- {"version":3,"file":"aggregate-helpers.mjs","names":["aggregateOperationSupport: AggregateOperationSupport"],"sources":["../../src/zod/aggregate-helpers.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { DMMF } from \"@prisma/generator-helper\";\nimport type { AggregateOperationSupport } from \"../types\";\n\nconst isAggregateOutputType = (name: string) =>\n /(?:Count|Avg|Sum|Min|Max)AggregateOutputType$/.test(name);\n\nexport const isAggregateInputType = (name: string) =>\n name.endsWith(\"CountAggregateInput\") ||\n name.endsWith(\"SumAggregateInput\") ||\n name.endsWith(\"AvgAggregateInput\") ||\n name.endsWith(\"MinAggregateInput\") ||\n name.endsWith(\"MaxAggregateInput\");\n\nexport function addMissingInputObjectTypesForAggregate(\n inputObjectTypes: DMMF.InputType[],\n outputObjectTypes: DMMF.OutputType[]\n) {\n const aggregateOutputTypes = outputObjectTypes.filter(({ name }) =>\n isAggregateOutputType(name)\n );\n for (const aggregateOutputType of aggregateOutputTypes) {\n const name = aggregateOutputType.name.replace(/(?:OutputType|Output)$/, \"\");\n inputObjectTypes.push({\n constraints: { maxNumFields: null, minNumFields: null },\n name: `${name}Input`,\n fields: aggregateOutputType.fields.map(field => ({\n name: field.name,\n isNullable: false,\n isRequired: false,\n inputTypes: [\n {\n isList: false,\n type: \"True\",\n location: \"scalar\"\n }\n ]\n }))\n });\n }\n}\n\nexport function resolveZodAggregateOperationSupport(\n inputObjectTypes: DMMF.InputType[]\n) {\n const aggregateOperationSupport: AggregateOperationSupport = {};\n for (const inputType of inputObjectTypes) {\n if (isAggregateInputType(inputType.name)) {\n const name = inputType.name.replace(\"AggregateInput\", \"\");\n if (name.endsWith(\"Count\")) {\n const model = name.replace(\"Count\", \"\");\n aggregateOperationSupport[model] = {\n ...aggregateOperationSupport[model],\n count: true\n };\n } else if (name.endsWith(\"Min\")) {\n const model = name.replace(\"Min\", \"\");\n aggregateOperationSupport[model] = {\n ...aggregateOperationSupport[model],\n min: true\n };\n } else if (name.endsWith(\"Max\")) {\n const model = name.replace(\"Max\", \"\");\n aggregateOperationSupport[model] = {\n ...aggregateOperationSupport[model],\n max: true\n };\n } else if (name.endsWith(\"Sum\")) {\n const model = name.replace(\"Sum\", \"\");\n aggregateOperationSupport[model] = {\n ...aggregateOperationSupport[model],\n sum: true\n };\n } else if (name.endsWith(\"Avg\")) {\n const model = name.replace(\"Avg\", \"\");\n aggregateOperationSupport[model] = {\n ...aggregateOperationSupport[model],\n avg: true\n };\n }\n }\n }\n return aggregateOperationSupport;\n}\n"],"mappings":";AAqBA,MAAM,yBAAyB,SAC7B,gDAAgD,KAAK,KAAK;AAE5D,MAAa,wBAAwB,SACnC,KAAK,SAAS,sBAAsB,IACpC,KAAK,SAAS,oBAAoB,IAClC,KAAK,SAAS,oBAAoB,IAClC,KAAK,SAAS,oBAAoB,IAClC,KAAK,SAAS,oBAAoB;AAEpC,SAAgB,uCACd,kBACA,mBACA;CACA,MAAM,uBAAuB,kBAAkB,QAAQ,EAAE,WACvD,sBAAsB,KAAK,CAC5B;AACD,MAAK,MAAM,uBAAuB,sBAAsB;EACtD,MAAM,OAAO,oBAAoB,KAAK,QAAQ,0BAA0B,GAAG;AAC3E,mBAAiB,KAAK;GACpB,aAAa;IAAE,cAAc;IAAM,cAAc;IAAM;GACvD,MAAM,GAAG,KAAK;GACd,QAAQ,oBAAoB,OAAO,KAAI,WAAU;IAC/C,MAAM,MAAM;IACZ,YAAY;IACZ,YAAY;IACZ,YAAY,CACV;KACE,QAAQ;KACR,MAAM;KACN,UAAU;KACX,CACF;IACF,EAAE;GACJ,CAAC;;;AAIN,SAAgB,oCACd,kBACA;CACA,MAAMA,4BAAuD,EAAE;AAC/D,MAAK,MAAM,aAAa,iBACtB,KAAI,qBAAqB,UAAU,KAAK,EAAE;EACxC,MAAM,OAAO,UAAU,KAAK,QAAQ,kBAAkB,GAAG;AACzD,MAAI,KAAK,SAAS,QAAQ,EAAE;GAC1B,MAAM,QAAQ,KAAK,QAAQ,SAAS,GAAG;AACvC,6BAA0B,SAAS;IACjC,GAAG,0BAA0B;IAC7B,OAAO;IACR;aACQ,KAAK,SAAS,MAAM,EAAE;GAC/B,MAAM,QAAQ,KAAK,QAAQ,OAAO,GAAG;AACrC,6BAA0B,SAAS;IACjC,GAAG,0BAA0B;IAC7B,KAAK;IACN;aACQ,KAAK,SAAS,MAAM,EAAE;GAC/B,MAAM,QAAQ,KAAK,QAAQ,OAAO,GAAG;AACrC,6BAA0B,SAAS;IACjC,GAAG,0BAA0B;IAC7B,KAAK;IACN;aACQ,KAAK,SAAS,MAAM,EAAE;GAC/B,MAAM,QAAQ,KAAK,QAAQ,OAAO,GAAG;AACrC,6BAA0B,SAAS;IACjC,GAAG,0BAA0B;IAC7B,KAAK;IACN;aACQ,KAAK,SAAS,MAAM,EAAE;GAC/B,MAAM,QAAQ,KAAK,QAAQ,OAAO,GAAG;AACrC,6BAA0B,SAAS;IACjC,GAAG,0BAA0B;IAC7B,KAAK;IACN;;;AAIP,QAAO"}
1
+ {"version":3,"file":"aggregate-helpers.mjs","names":[],"sources":["../../src/zod/aggregate-helpers.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { DMMF } from \"@prisma/generator-helper\";\nimport type { AggregateOperationSupport } from \"../types\";\n\nconst isAggregateOutputType = (name: string) =>\n /(?:Count|Avg|Sum|Min|Max)AggregateOutputType$/.test(name);\n\nexport const isAggregateInputType = (name: string) =>\n name.endsWith(\"CountAggregateInput\") ||\n name.endsWith(\"SumAggregateInput\") ||\n name.endsWith(\"AvgAggregateInput\") ||\n name.endsWith(\"MinAggregateInput\") ||\n name.endsWith(\"MaxAggregateInput\");\n\nexport function addMissingInputObjectTypesForAggregate(\n inputObjectTypes: DMMF.InputType[],\n outputObjectTypes: DMMF.OutputType[]\n) {\n const aggregateOutputTypes = outputObjectTypes.filter(({ name }) =>\n isAggregateOutputType(name)\n );\n for (const aggregateOutputType of aggregateOutputTypes) {\n const name = aggregateOutputType.name.replace(/(?:OutputType|Output)$/, \"\");\n inputObjectTypes.push({\n constraints: { maxNumFields: null, minNumFields: null },\n name: `${name}Input`,\n fields: aggregateOutputType.fields.map(field => ({\n name: field.name,\n isNullable: false,\n isRequired: false,\n inputTypes: [\n {\n isList: false,\n type: \"True\",\n location: \"scalar\"\n }\n ]\n }))\n });\n }\n}\n\nexport function resolveZodAggregateOperationSupport(\n inputObjectTypes: DMMF.InputType[]\n) {\n const aggregateOperationSupport: AggregateOperationSupport = {};\n for (const inputType of inputObjectTypes) {\n if (isAggregateInputType(inputType.name)) {\n const name = inputType.name.replace(\"AggregateInput\", \"\");\n if (name.endsWith(\"Count\")) {\n const model = name.replace(\"Count\", \"\");\n aggregateOperationSupport[model] = {\n ...aggregateOperationSupport[model],\n count: true\n };\n } else if (name.endsWith(\"Min\")) {\n const model = name.replace(\"Min\", \"\");\n aggregateOperationSupport[model] = {\n ...aggregateOperationSupport[model],\n min: true\n };\n } else if (name.endsWith(\"Max\")) {\n const model = name.replace(\"Max\", \"\");\n aggregateOperationSupport[model] = {\n ...aggregateOperationSupport[model],\n max: true\n };\n } else if (name.endsWith(\"Sum\")) {\n const model = name.replace(\"Sum\", \"\");\n aggregateOperationSupport[model] = {\n ...aggregateOperationSupport[model],\n sum: true\n };\n } else if (name.endsWith(\"Avg\")) {\n const model = name.replace(\"Avg\", \"\");\n aggregateOperationSupport[model] = {\n ...aggregateOperationSupport[model],\n avg: true\n };\n }\n }\n }\n return aggregateOperationSupport;\n}\n"],"mappings":";AAqBA,MAAM,yBAAyB,SAC7B,gDAAgD,KAAK,KAAK;AAE5D,MAAa,wBAAwB,SACnC,KAAK,SAAS,sBAAsB,IACpC,KAAK,SAAS,oBAAoB,IAClC,KAAK,SAAS,oBAAoB,IAClC,KAAK,SAAS,oBAAoB,IAClC,KAAK,SAA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OAAO,GAAG;AACrC,6BAA0B,SAAS;IACjC,GAAG,0BAA0B;IAC7B,KAAK;IACN;;;AAIP,QAAO"}
@@ -1 +1 @@
1
- {"version":3,"file":"comments-helpers.mjs","names":["parsedAttributeArgs: Record<string, unknown>"],"sources":["../../src/zod/comments-helpers.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { DMMF } from \"@prisma/generator-helper\";\n\n// eslint-disable-next-line regexp/no-obscure-range\nconst modelAttributeRegex = /(?:@@Gen\\.)+[A-z]+\\(.+\\)/;\nconst attributeNameRegex = /\\.+[A-Z]+\\(+/i;\nconst attributeArgsRegex = /\\(+[A-Z]+:.+\\)/i;\n\nexport function resolveZodModelsComments(\n models: DMMF.Model[],\n modelOperations: DMMF.ModelMapping[],\n enumTypes: { model?: DMMF.SchemaEnum[]; prisma: DMMF.SchemaEnum[] },\n hiddenModels: string[],\n hiddenFields: string[]\n) {\n models = collectHiddenModels(models, hiddenModels);\n collectHiddenFields(models, hiddenModels, hiddenFields);\n hideModelOperations(models, modelOperations);\n hideEnums(enumTypes, hiddenModels);\n}\n\nfunction collectHiddenModels(models: DMMF.Model[], hiddenModels: string[]) {\n return models\n .map(model => {\n if (model.documentation) {\n const attribute = model.documentation?.match(modelAttributeRegex)?.[0];\n const attributeName = attribute\n ?.match(attributeNameRegex)?.[0]\n ?.slice(1, -1);\n if (attributeName !== \"model\") {\n return model;\n }\n\n const rawAttributeArgs = attribute\n ?.match(attributeArgsRegex)?.[0]\n ?.slice(1, -1);\n\n const parsedAttributeArgs: Record<string, unknown> = {};\n if (rawAttributeArgs) {\n const rawAttributeArgsParts = rawAttributeArgs\n .split(\":\")\n .map(it => it.trim())\n .map(part => (part.startsWith(\"[\") ? part : part.split(\",\")))\n .flat()\n .map(it => it.trim());\n\n for (let i = 0; i < rawAttributeArgsParts.length; i += 2) {\n const key = rawAttributeArgsParts[i];\n const value = rawAttributeArgsParts[i + 1];\n parsedAttributeArgs[key!] = JSON.parse(value!);\n }\n }\n if (parsedAttributeArgs.hide) {\n hiddenModels.push(model.name);\n return null as unknown as DMMF.Model;\n }\n }\n\n return model;\n })\n .filter(Boolean);\n}\n\nfunction collectHiddenFields(\n models: DMMF.Model[],\n hiddenModels: string[],\n hiddenFields: string[]\n) {\n models.forEach(model => {\n model.fields.forEach(field => {\n if (hiddenModels.includes(field.type)) {\n hiddenFields.push(field.name);\n if (field.relationFromFields) {\n field.relationFromFields.forEach(item => hiddenFields.push(item));\n }\n }\n });\n });\n}\nfunction hideEnums(\n enumTypes: { model?: DMMF.SchemaEnum[]; prisma: DMMF.SchemaEnum[] },\n hiddenModels: string[]\n) {\n enumTypes.prisma = enumTypes.prisma.filter(\n item => !hiddenModels.find(model => item.name.startsWith(model))\n );\n}\n\nfunction hideModelOperations(\n models: DMMF.Model[],\n modelOperations: DMMF.ModelMapping[]\n) {\n let i = modelOperations.length;\n while (i >= 0) {\n --i;\n const modelOperation = modelOperations[i];\n if (\n modelOperation &&\n !models.find(model => {\n return model.name === modelOperation.model;\n })\n ) {\n modelOperations.splice(i, 1);\n }\n }\n}\n\nexport function hideZodInputObjectTypesAndRelatedFields(\n inputObjectTypes: DMMF.InputType[],\n hiddenModels: string[],\n hiddenFields: string[]\n) {\n let j = inputObjectTypes.length;\n while (j >= 0) {\n --j;\n const inputType = inputObjectTypes[j];\n if (\n inputType &&\n (hiddenModels.includes(inputType?.meta?.source as string) ||\n hiddenModels.find(model => inputType.name.startsWith(model)))\n ) {\n inputObjectTypes.splice(j, 1);\n } else {\n let k = inputType?.fields?.length ?? 0;\n while (k >= 0) {\n --k;\n const field = inputType?.fields?.[k];\n if (field && hiddenFields.includes(field.name)) {\n inputObjectTypes[j]!.fields.slice(k, 1);\n }\n }\n }\n }\n}\n"],"mappings":";AAqBA,MAAM,sBAAsB;AAC5B,MAAM,qBAAqB;AAC3B,MAAM,qBAAqB;AAE3B,SAAgB,yBACd,QACA,iBACA,WACA,cACA,cACA;AACA,UAAS,oBAAoB,QAAQ,aAAa;AAClD,qBAAoB,QAAQ,cAAc,aAAa;AACvD,qBAAoB,QAAQ,gBAAgB;AAC5C,WAAU,WAAW,aAAa;;AAGpC,SAAS,oBAAoB,QAAsB,cAAwB;AACzE,QAAO,OACJ,KAAI,UAAS;AACZ,MAAI,MAAM,eAAe;GACvB,MAAM,YAAY,MAAM,eAAe,MAAM,oBAAoB,GAAG;AAIpE,OAHsB,WAClB,MAAM,mBAAmB,GAAG,IAC5B,MAAM,GAAG,GAAG,KACM,QACpB,QAAO;GAGT,MAAM,mBAAmB,WACrB,MAAM,mBAAmB,GAAG,IAC5B,MAAM,GAAG,GAAG;GAEhB,MAAMA,sBAA+C,EAAE;AACvD,OAAI,kBAAkB;IACpB,MAAM,wBAAwB,iBAC3B,MAAM,IAAI,CACV,KAAI,OAAM,GAAG,MAAM,CAAC,CACpB,KAAI,SAAS,KAAK,WAAW,IAAI,GAAG,OAAO,KAAK,MAAM,IAAI,CAAE,CAC5D,MAAM,CACN,KAAI,OAAM,GAAG,MAAM,CAAC;AAEvB,SAAK,IAAI,IAAI,GAAG,IAAI,sBAAsB,QAAQ,KAAK,GAAG;KACxD,MAAM,MAAM,sBAAsB;KAClC,MAAM,QAAQ,sBAAsB,IAAI;AACxC,yBAAoB,OAAQ,KAAK,MAAM,MAAO;;;AAGlD,OAAI,oBAAoB,MAAM;AAC5B,iBAAa,KAAK,MAAM,KAAK;AAC7B,WAAO;;;AAIX,SAAO;GACP,CACD,OAAO,QAAQ;;AAGpB,SAAS,oBACP,QACA,cACA,cACA;AACA,QAAO,SAAQ,UAAS;AACtB,QAAM,OAAO,SAAQ,UAAS;AAC5B,OAAI,aAAa,SAAS,MAAM,KAAK,EAAE;AACrC,iBAAa,KAAK,MAAM,KAAK;AAC7B,QAAI,MAAM,mBACR,OAAM,mBAAmB,SAAQ,SAAQ,aAAa,KAAK,KAAK,CAAC;;IAGrE;GACF;;AAEJ,SAAS,UACP,WACA,cACA;AACA,WAAU,SAAS,UAAU,OAAO,QAClC,SAAQ,CAAC,aAAa,MAAK,UAAS,KAAK,KAAK,WAAW,MAAM,CAAC,CACjE;;AAGH,SAAS,oBACP,QACA,iBACA;CACA,IAAI,IAAI,gBAAgB;AACxB,QAAO,KAAK,GAAG;AACb,IAAE;EACF,MAAM,iBAAiB,gBAAgB;AACvC,MACE,kBACA,CAAC,OAAO,MAAK,UAAS;AACpB,UAAO,MAAM,SAAS,eAAe;IACrC,CAEF,iBAAgB,OAAO,GAAG,EAAE;;;AAKlC,SAAgB,wCACd,kBACA,cACA,cACA;CACA,IAAI,IAAI,iBAAiB;AACzB,QAAO,KAAK,GAAG;AACb,IAAE;EACF,MAAM,YAAY,iBAAiB;AACnC,MACE,cACC,aAAa,SAAS,WAAW,MAAM,OAAiB,IACvD,aAAa,MAAK,UAAS,UAAU,KAAK,WAAW,MAAM,CAAC,EAE9D,kBAAiB,OAAO,GAAG,EAAE;OACxB;GACL,IAAI,IAAI,WAAW,QAAQ,UAAU;AACrC,UAAO,KAAK,GAAG;AACb,MAAE;IACF,MAAM,QAAQ,WAAW,SAAS;AAClC,QAAI,SAAS,aAAa,SAAS,MAAM,KAAK,CAC5C,kBAAiB,GAAI,OAAO,MAAM,GAAG,EAAE"}
1
+ {"version":3,"file":"comments-helpers.mjs","names":[],"sources":["../../src/zod/comments-helpers.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { DMMF } from \"@prisma/generator-helper\";\n\n// eslint-disable-next-line regexp/no-obscure-range\nconst modelAttributeRegex = /(?:@@Gen\\.)+[A-z]+\\(.+\\)/;\nconst attributeNameRegex = /\\.+[A-Z]+\\(+/i;\nconst attributeArgsRegex = /\\(+[A-Z]+:.+\\)/i;\n\nexport function resolveZodModelsComments(\n models: DMMF.Model[],\n modelOperations: DMMF.ModelMapping[],\n enumTypes: { model?: DMMF.SchemaEnum[]; prisma: DMMF.SchemaEnum[] },\n hiddenModels: string[],\n hiddenFields: string[]\n) {\n models = collectHiddenModels(models, hiddenModels);\n collectHiddenFields(models, hiddenModels, hiddenFields);\n hideModelOperations(models, modelOperations);\n hideEnums(enumTypes, hiddenModels);\n}\n\nfunction collectHiddenModels(models: DMMF.Model[], hiddenModels: string[]) {\n return models\n .map(model => {\n if (model.documentation) {\n const attribute = model.documentation?.match(modelAttributeRegex)?.[0];\n const attributeName = attribute\n ?.match(attributeNameRegex)?.[0]\n ?.slice(1, -1);\n if (attributeName !== \"model\") {\n return model;\n }\n\n const rawAttributeArgs = attribute\n ?.match(attributeArgsRegex)?.[0]\n ?.slice(1, -1);\n\n const parsedAttributeArgs: Record<string, unknown> = {};\n if (rawAttributeArgs) {\n const rawAttributeArgsParts = rawAttributeArgs\n .split(\":\")\n .map(it => it.trim())\n .map(part => (part.startsWith(\"[\") ? part : part.split(\",\")))\n .flat()\n .map(it => it.trim());\n\n for (let i = 0; i < rawAttributeArgsParts.length; i += 2) {\n const key = rawAttributeArgsParts[i];\n const value = rawAttributeArgsParts[i + 1];\n parsedAttributeArgs[key!] = JSON.parse(value!);\n }\n }\n if (parsedAttributeArgs.hide) {\n hiddenModels.push(model.name);\n return null as unknown as DMMF.Model;\n }\n }\n\n return model;\n })\n .filter(Boolean);\n}\n\nfunction collectHiddenFields(\n models: DMMF.Model[],\n hiddenModels: string[],\n hiddenFields: string[]\n) {\n models.forEach(model => {\n model.fields.forEach(field => {\n if (hiddenModels.includes(field.type)) {\n hiddenFields.push(field.name);\n if (field.relationFromFields) {\n field.relationFromFields.forEach(item => hiddenFields.push(item));\n }\n }\n });\n });\n}\nfunction hideEnums(\n enumTypes: { model?: DMMF.SchemaEnum[]; prisma: DMMF.SchemaEnum[] },\n hiddenModels: string[]\n) {\n enumTypes.prisma = enumTypes.prisma.filter(\n item => !hiddenModels.find(model => item.name.startsWith(model))\n );\n}\n\nfunction hideModelOperations(\n models: DMMF.Model[],\n modelOperations: DMMF.ModelMapping[]\n) {\n let i = modelOperations.length;\n while (i >= 0) {\n --i;\n const modelOperation = modelOperations[i];\n if (\n modelOperation &&\n !models.find(model => {\n return model.name === modelOperation.model;\n })\n ) {\n modelOperations.splice(i, 1);\n }\n }\n}\n\nexport function hideZodInputObjectTypesAndRelatedFields(\n inputObjectTypes: DMMF.InputType[],\n hiddenModels: string[],\n hiddenFields: string[]\n) {\n let j = inputObjectTypes.length;\n while (j >= 0) {\n --j;\n const inputType = inputObjectTypes[j];\n if (\n inputType &&\n (hiddenModels.includes(inputType?.meta?.source as string) ||\n hiddenModels.find(model => inputType.name.startsWith(model)))\n ) {\n inputObjectTypes.splice(j, 1);\n } else {\n let k = inputType?.fields?.length ?? 0;\n while (k >= 0) {\n --k;\n const field = inputType?.fields?.[k];\n if (field && hiddenFields.includes(field.name)) {\n inputObjectTypes[j]!.fields.slice(k, 1);\n }\n }\n }\n }\n}\n"],"mappings":";AAqBA,MAAM,sBAAsB;AAC5B,MAAM,qBAAqB;AAC3B,MAAM,qBAAqB;AAE3B,SAAgB,yBACd,QACA,iBACA,WACA,cACA,cACA;AACA,UAAS,oBAAoB,QAAQ,aAAa;AAClD,qBAAoB,QAAQ,cAAc,aAAa;A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AAK,WAAW,MAAM,CAAC,CACjE;;AAGH,SAAS,oBACP,QACA,iBACA;CACA,IAAI,IAAI,gBAAgB;AACxB,QAAO,KAAK,GAAG;AACb,IAAE;EACF,MAAM,iBAAiB,gBAAgB;AACvC,MACE,kBACA,CAAC,OAAO,MAAK,UAAS;AACpB,UAAO,MAAM,SAAS,eAAe;IACrC,CAEF,iBAAgB,OAAO,GAAG,EAAE;;;AAKlC,SAAgB,wCACd,kBACA,cACA,cACA;CACA,IAAI,IAAI,iBAAiB;AACzB,QAAO,KAAK,GAAG;AACb,IAAE;EACF,MAAM,YAAY,iBAAiB;AACnC,MACE,cACC,aAAa,SAAS,WAAW,MAAM,OAAiB,IACvD,aAAa,MAAK,UAAS,UAAU,KAAK,WAAW,MAAM,CAAC,EAE9D,kBAAiB,OAAO,GAAG,EAAE;OACxB;GACL,IAAI,IAAI,WAAW,QAAQ,UAAU;AACrC,UAAO,KAAK,GAAG;AACb,MAAE;IACF,MAAM,QAAQ,WAAW,SAAS;AAClC,QAAI,SAAS,aAAa,SAAS,MAAM,KAAK,CAC5C,kBAAiB,GAAI,OAAO,MAAM,GAAG,EAAE"}
@@ -1,7 +1,7 @@
1
- const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
1
+ const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
2
2
  const require_model_helpers = require('./model-helpers.cjs');
3
3
  let parenthesis = require("parenthesis");
4
- parenthesis = require_rolldown_runtime.__toESM(parenthesis);
4
+ parenthesis = require_runtime.__toESM(parenthesis, 1);
5
5
 
6
6
  //#region src/zod/docs-helpers.ts
7
7
  const getJSDocs = (docString) => {
@@ -1 +1 @@
1
- {"version":3,"file":"docs-helpers.mjs","names":["lines: string[]"],"sources":["../../src/zod/docs-helpers.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { ArrayTree } from \"parenthesis\";\nimport parenthesis from \"parenthesis\";\nimport { chunk } from \"./model-helpers\";\n\nexport const getJSDocs = (docString?: string) => {\n const lines: string[] = [];\n\n if (docString) {\n const docLines = docString\n .split(\"\\n\")\n .filter(dL => !dL.trimStart().startsWith(\"@zod\"));\n\n if (docLines.length) {\n lines.push(\"/**\");\n docLines.forEach(dL => lines.push(` * ${dL}`));\n lines.push(\" */\");\n }\n }\n\n return lines;\n};\n\nexport const getZodDocElements = (docString: string) =>\n docString\n .split(\"\\n\")\n .filter(line => line.trimStart().startsWith(\"@zod\"))\n .map(line => line.trimStart().slice(4))\n .flatMap(line =>\n // Array.from(line.matchAll(/\\.([^().]+\\(.*?\\))/g), (m) => m.slice(1)).flat()\n chunk(parenthesis.parse(line), 2)\n .slice(0, -1)\n .map(\n ([each, contents]) =>\n `${(each as string).replace(\n /\\)?\\./,\n \"\"\n )}${parenthesis.stringify(contents as ArrayTree)})`\n )\n );\n"],"mappings":";;;;AAsBA,MAAa,aAAa,cAAuB;CAC/C,MAAMA,QAAkB,EAAE;AAE1B,KAAI,WAAW;EACb,MAAM,WAAW,UACd,MAAM,KAAK,CACX,QAAO,OAAM,CAAC,GAAG,WAAW,CAAC,WAAW,OAAO,CAAC;AAEnD,MAAI,SAAS,QAAQ;AACnB,SAAM,KAAK,MAAM;AACjB,YAAS,SAAQ,OAAM,MAAM,KAAK,MAAM,KAAK,CAAC;AAC9C,SAAM,KAAK,MAAM;;;AAIrB,QAAO;;AAGT,MAAa,qBAAqB,cAChC,UACG,MAAM,KAAK,CACX,QAAO,SAAQ,KAAK,WAAW,CAAC,WAAW,OAAO,CAAC,CACnD,KAAI,SAAQ,KAAK,WAAW,CAAC,MAAM,EAAE,CAAC,CACtC,SAAQ,SAEP,MAAM,YAAY,MAAM,KAAK,EAAE,EAAE,CAC9B,MAAM,GAAG,GAAG,CACZ,KACE,CAAC,MAAM,cACN,GAAI,KAAgB,QAClB,SACA,GACD,GAAG,YAAY,UAAU,SAAsB,CAAC,GACpD,CACJ"}
1
+ {"version":3,"file":"docs-helpers.mjs","names":[],"sources":["../../src/zod/docs-helpers.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { ArrayTree } from \"parenthesis\";\nimport parenthesis from \"parenthesis\";\nimport { chunk } from \"./model-helpers\";\n\nexport const getJSDocs = (docString?: string) => {\n const lines: string[] = [];\n\n if (docString) {\n const docLines = docString\n .split(\"\\n\")\n .filter(dL => !dL.trimStart().startsWith(\"@zod\"));\n\n if (docLines.length) {\n lines.push(\"/**\");\n docLines.forEach(dL => lines.push(` * ${dL}`));\n lines.push(\" */\");\n }\n }\n\n return lines;\n};\n\nexport const getZodDocElements = (docString: string) =>\n docString\n .split(\"\\n\")\n .filter(line => line.trimStart().startsWith(\"@zod\"))\n .map(line => line.trimStart().slice(4))\n .flatMap(line =>\n // Array.from(line.matchAll(/\\.([^().]+\\(.*?\\))/g), (m) => m.slice(1)).flat()\n chunk(parenthesis.parse(line), 2)\n .slice(0, -1)\n .map(\n ([each, contents]) =>\n `${(each as string).replace(\n /\\)?\\./,\n \"\"\n )}${parenthesis.stringify(contents as ArrayTree)})`\n )\n );\n"],"mappings":";;;;AAsBA,MAAa,aAAa,cAAuB;CAC/C,MAAM,QAAkB,EAAE;AAE1B,KAAI,WAAW;EACb,MAAM,WAAW,UACd,MAAM,KAAK,CACX,QAAO,OAAM,CAAC,GAAG,WAAW,CAAC,WAAW,OAAO,CAAC;AAEnD,MAAI,SAAS,QAAQ;AACnB,SAAM,KAAK,MAAM;AACjB,YAAS,SAAQ,OAAM,MAAM,KAAK,MAAM,KAAK,CAAC;AAC9C,SAAM,KAAK,MAAM;;;AAIrB,QAAO;;AAGT,MAAa,qBAAqB,cAChC,UACG,MAAM,KAAK,CACX,QAAO,SAAQ,KAAK,WAAW,CAAC,WAAW,OAAO,CAAC,CACnD,KAAI,SAAQ,KAAK,WAAW,CAAC,MAAM,EAAE,CAAC,CACtC,SAAQ,SAEP,MAAM,YAAY,MAAM,KAAK,EAAE,EAAE,CAC9B,MAAM,GAAG,GAAG,CACZ,KACE,CAAC,MAAM,cACN,GAAI,KAAgB,QAClB,SACA,GACD,GAAG,YAAY,UAAU,SAAsB,CAAC,GACpD,CACJ"}
@@ -1 +1 @@
1
- {"version":3,"file":"generator-helpers.mjs","names":[],"sources":["../../src/zod/generator-helpers.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { DMMF } from \"@prisma/generator-helper\";\nimport type { AggregateOperationSupport, Writeable } from \"../types\";\nimport Transformer from \"./transformer\";\n\nexport async function generateZodEnumSchemas(\n prismaSchemaEnum: Writeable<DMMF.SchemaEnum[]>,\n modelSchemaEnum: Writeable<DMMF.SchemaEnum[]>\n) {\n const enumTypes = [...prismaSchemaEnum, ...modelSchemaEnum];\n const enumNames = enumTypes.map(enumItem => enumItem.name);\n Transformer.enumNames = enumNames ?? [];\n const transformer = new Transformer({\n enumTypes\n });\n await transformer.generateEnumSchemas();\n}\n\nexport async function generateZodObjectSchemas(\n inputObjectTypes: Writeable<DMMF.InputType[]>\n) {\n for (let i = 0; i < inputObjectTypes.length; i += 1) {\n const fields = inputObjectTypes[i]?.fields;\n const name = inputObjectTypes[i]?.name;\n const transformer = new Transformer({ name, fields });\n await transformer.generateObjectSchema();\n }\n}\n\nexport async function generateZodModelSchemas(\n models: Writeable<DMMF.Model[]>,\n modelOperations: Writeable<DMMF.ModelMapping[]>,\n aggregateOperationSupport: AggregateOperationSupport\n) {\n const transformer = new Transformer({\n models,\n modelOperations,\n aggregateOperationSupport\n });\n await transformer.generateModelSchemas();\n}\n\nexport async function generateZodIndex() {\n await Transformer.generateIndex();\n}\n"],"mappings":";;;AAsBA,eAAsB,uBACpB,kBACA,iBACA;CACA,MAAM,YAAY,CAAC,GAAG,kBAAkB,GAAG,gBAAgB;AAE3D,aAAY,YADM,UAAU,KAAI,aAAY,SAAS,KAAK,IACrB,EAAE;AAIvC,OAHoB,IAAI,YAAY,EAClC,WACD,CAAC,CACgB,qBAAqB;;AAGzC,eAAsB,yBACpB,kBACA;AACA,MAAK,IAAI,IAAI,GAAG,IAAI,iBAAiB,QAAQ,KAAK,GAAG;EACnD,MAAM,SAAS,iBAAiB,IAAI;EACpC,MAAM,OAAO,iBAAiB,IAAI;AAElC,QADoB,IAAI,YAAY;GAAE;GAAM;GAAQ,CAAC,CACnC,sBAAsB;;;AAI5C,eAAsB,wBACpB,QACA,iBACA,2BACA;AAMA,OALoB,IAAI,YAAY;EAClC;EACA;EACA;EACD,CAAC,CACgB,sBAAsB;;AAG1C,eAAsB,mBAAmB;AACvC,OAAM,YAAY,eAAe"}
1
+ {"version":3,"file":"generator-helpers.mjs","names":[],"sources":["../../src/zod/generator-helpers.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { DMMF } from \"@prisma/generator-helper\";\nimport type { AggregateOperationSupport, Writeable } from \"../types\";\nimport Transformer from \"./transformer\";\n\nexport async function generateZodEnumSchemas(\n prismaSchemaEnum: Writeable<DMMF.SchemaEnum[]>,\n modelSchemaEnum: Writeable<DMMF.SchemaEnum[]>\n) {\n const enumTypes = [...prismaSchemaEnum, ...modelSchemaEnum];\n const enumNames = enumTypes.map(enumItem => enumItem.name);\n Transformer.enumNames = enumNames ?? [];\n const transformer = new Transformer({\n enumTypes\n });\n await transformer.generateEnumSchemas();\n}\n\nexport async function generateZodObjectSchemas(\n inputObjectTypes: Writeable<DMMF.InputType[]>\n) {\n for (let i = 0; i < inputObjectTypes.length; i += 1) {\n const fields = inputObjectTypes[i]?.fields;\n const name = inputObjectTypes[i]?.name;\n const transformer = new Transformer({ name, fields });\n await transformer.generateObjectSchema();\n }\n}\n\nexport async function generateZodModelSchemas(\n models: Writeable<DMMF.Model[]>,\n modelOperations: Writeable<DMMF.ModelMapping[]>,\n aggregateOperationSupport: AggregateOperationSupport\n) {\n const transformer = new Transformer({\n models,\n modelOperations,\n aggregateOperationSupport\n });\n await transformer.generateModelSchemas();\n}\n\nexport async function generateZodIndex() {\n await Transformer.generateIndex();\n}\n"],"mappings":";;;AAsBA,eAAsB,uBACpB,kBACA,iBACA;CACA,MAAM,YAAY,CAAC,GAAG,kBAAkB,GAAG,gBAAgB;AAE3D,aAAY,YADM,UAAU,KAAI,aAAY,SAAS,KACpB,IAAI,EAAE;AAIvC,OAAM,IAHkB,YAAY,EAClC,WACD,CACgB,CAAC,qBAAqB;;AAGzC,eAAsB,yBACpB,kBACA;AACA,MAAK,IAAI,IAAI,GAAG,IAAI,iBAAiB,QAAQ,KAAK,GAAG;EACnD,MAAM,SAAS,iBAAiB,IAAI;EACpC,MAAM,OAAO,iBAAiB,IAAI;AAElC,QAAM,IADkB,YAAY;GAAE;GAAM;GAAQ,CACnC,CAAC,sBAAsB;;;AAI5C,eAAsB,wBACpB,QACA,iBACA,2BACA;AAMA,OAAM,IALkB,YAAY;EAClC;EACA;EACA;EACD,CACgB,CAAC,sBAAsB;;AAG1C,eAAsB,mBAAmB;AACvC,OAAM,YAAY,eAAe"}